Price of new candle

Forums ProRealTime English forum ProBuilder support Price of new candle

Viewing 3 posts - 1 through 3 (of 3 total)
  • #64149

    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.

    #64167

    …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).

     

    #64185

    Are you talking about  coding an  automatic trading  strategy or an indicator? Because what Roberto said is only true in ProOrder (automatic trading).

    1 user thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login