It is a simple trading system based on EMA.
Place SL Buy order Above the High of a Bullish Candle if a 6 EMA Crosses/Touches the Bullish candle.
Place SL Sell order Below the Low of a Bearish Candle if a 6 EMA Crosses/Touches the Bearish candle.
Only one order should be present, either Buy or Sell, at any given time.
If a Buy order is executed then the EA should only check for a Bearish Candle that Touches/Crosses the 6 EMA to place SL Sell order below the Low of that Bearish Candle. Vice versa for Short.
If a Pending Order does not get executed and the next or another candle meets the condtion then Modify the Pending order to the next or another candle values.
If a pending order does not get executed on the same trading day then cancel that order at the end of the trading day and place a Separate order next day based on the opening candle if conditions are met.
Parameters: Stop Loss, Target, Trailing Stop, Basis Point (if SL Buy value is 12200 then I need an option of adding Basis Point of 2 or 5 with the value .i.e., 12202), the AFL can be plotted on both Candlestick or HeikenAshi Chart this should be an option, and EMA Period.