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.
The best you can do is to set a pending order at the price you want your order to be launched at market:
1
2
3
ifmyconditionthen
BUY1SHAREATHIGH+3*pipsizeSTOP
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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue