Could you please help me to create an EA using 2 MA Crossover strategy? One of my friend created an EA based on the crossover of 2 MA lines that gives him profit. The backtest is like picture below. The EA opens buy or sell trades based on the crossover of 2 Moving Average lines.
Please kindly create similar EA. All functions (Trade Setup, Volumen, Take Profit, Stop Loss, Breakeven, Trailing Stop, Trading Session, and Notification) are similar to other EAs on this site, such as XB4_EA.
However, the Grid Setup is a little bit different, please do the following:
1. The EA opens buy or sell trade based on signals (not without signals) and the new trade will be opened when gap between orders (pips) exceeds the target. Example: a new buy trade will be opened when there's a signal and gap between orders is more than xx pips.
2. Any trade (buy or sell) can be opened without having to wait for the previous trades (buy or sell) to close.
3. Take Profit Grid ($) criteria can be selected based on two conditions:
- - Based on profit target value ($). Example: all buy trades will be closed when all buy trades exceed profit target value ($) without caring about the sell trades.
- Based on profit target value ($) and opposite trade is appeared. Example: all buy trades will be closed when all buy trades exceed profit target value ($) and one sell trade is appeared.
Please also add another MA for filter and the option (true/false) to use it.
All MA (for signal and filter) settings offer inputs to modify the MA parameters, such as Period, Shift, Method and applied price.
Thank you