Hello,
Can anyone advise how I can get the open price of the new (current) candle when executing some code? If I use the command “open” then I get the open of the previous (old) candle.
Thank you.
…then I get the open of the previous (old) candle…
As of this version of PRT and before the new MTF one is available what you call OLD candle is indeed the CURRENT closed candle, since ALL strategies are executed when a candle closes, just before the next one opens (actually, since it may take some microseconds, the new candle is likely to be already opened when a strategy is still being processed, but cannot be accessed until it closes).
Are you talking about coding an automatic trading strategy or an indicator? Because what Roberto said is only true in ProOrder (automatic trading).