Can someone help me with this: I want to buy as soon as the current price is 3 pips higher than the high of the previous candlestick. How can I can access the current price in the middle of the current candlestick.
IF CLOSE>HIGH+0.0003 THEN
BUY AT MARKET
ENDIF
The best you can do is to set a pending order at the price you want your order to be launched at market:
if mycondition then
BUY 1 SHARE AT HIGH+3*pipsize STOP
endif
Pending “stop” or “limit” orders need to be set at each new candle, because they expire after one candle, so you have to be sure that your “mycondition” in my example if still true if your are still not on market.
Thank you Nicolas. It works perfectly.