The turnaround time is next 16 hours or earlier. Code should be simple since no trend or oscillators are being used.
1) Code the EA
2) Add comments in the code to show how the logic is written. Very detailed comments are expected.
3) Divide code into 2 cases for easier understanding. Cases will be provided.
4) UP means close is > open and DOWN is Close < open
5) Put words T0, T1 on the candles (Visually) when such a scenario occurs (similar to indicator).
6) Create a file for T0, T1, T2 (where buy or sell occurs) along with Trade details such as time/type/size/price/Sl/T/P,Time,Price, Profit/Loss
Basic idea:
Look at candles in the past (input variable) and when a condition is met, put a buy or a sell. There are only 2 conditions.
T0,T1 are the candle numbers . previous candle would be T0 and current candle would be T1
Input variables to the EA:
Look Back number of candles excluding current candle (T0): "Y"
Number of pips before closing : X
Martingale : Y/N ...if Y then yes, else no
Stop Loss : "Z" in pips
Close on current candle -Y/N. Means close the order by end of the T2 (current candle where the order was placed)