its meant for the M5 on EUR/USD
*10 period EMA
*15 period EMA
*buy when the 10 crosses above the 15, close when cross back
*sell when the 10 crosses below the 15, close when cross back
*SL of 10 and TP of 20
*trailing stop of 10
the idea is that it would always be in a trade; when the 10 crosses below, close long trade and trade short
until hit TP or another cross.
any help in understanding the creation of EA’s will be appreciated
try this first Expert Advisor Builder for MetaTrader 4
you may need to modify the code that places the orders. if you can make an example that works with no stops its pretty easy fix to get the stops working. most brokers now require 2 orders to set up a trade with stops, first the order then its modified with the stops. this generator will set the code up the other way with one order that includes the stops this probably will not work with most brokers.
If you can get it started I will help you get it working
teach a man to fish and all