Price of new candle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #64149 quote
    st0rm0r
    Participant
    New

    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 quote
    robertogozzi
    Moderator
    Master

    …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 quote
    Nicolas
    Keymaster
    Master

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

    robertogozzi thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Price of new candle


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
st0rm0r @st0rm0r Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Nicolas
7 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/28/2018
Status: Active
Attachments: No files
Logo Logo
Loading...