I'm a complete coding noob. But i want to create a simple EA that does the following.
1: Closes all current pending or open orders.
2: Opens two pending orders at candle close (current open chart TimeFrame) X pips away from candle closing price.
X: Pips away from close price of candle to place buy and sell pending orders. Buy is (close Price + X) and Sell is (close Price - X).
SL: Pips stop loss will be on pending orders
TP: Pips stop loss will be on pending orders.
Lot size: Trade lot size
Could anyone help me?