I need an expert adviser to open a position soon after a cross of two EMA (default 5 ema and 13 ema) BUT with a little twist.
If I manually open a buy position of 1.00 lot size the EA will not open a Buy position if 5 ema crosses above 13 ema, Instead the EA will wait to open a sell position of lot size 1.00 (same currency hedge) when 5 ema crosses bellow 13 ema.
If I manually open Sell position, the EA will only Open Buy position with same lot size as the existing manually opened Sell position.
If Buy and Sell (currently being hedged) already exist, EA to take no action on EMA crosses.
If No Position exist, then again EA to take no action.
EA will not close any position.
EA will just open exactly the opposite position of an existing opened position on the EMA crosses.
The current bar has to close on the cross of EMA to open position. Not soon after it crosses before the bar closes (it could be a false alarm or cross).
Let me know if you have any questions.