Announcement

Collapse
No announcement yet.

True vaslues on "NERWBAR"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • True vaslues on "NERWBAR"

    Hi,

    I asked this question elsewhere but got no answer for more than a week.

    Does anyone know what is the values we get when executing on "NEWBAR" candition?

    For example,

    a/ close() gets the close of previous bar, or of the first tick of the new bar "that is being formed" as they say in the brief definitions they give?

    b/ Is BarIndex "zero" referring to this new bar, or to the previous that just ended?

    c/ getValue.AnyStudy(0) will bring the value of previous bar that just ended or of the first tick in the new bar?

    Note: In case "NEWBAR" actually means first tick of the new bar, is there a way to emulate "ComputeOnClose" (I need this for parts of the code that are not critical to trading. I am sure you understand what I am talking about).

    Any help is greatly appreciated.
    Thank you,

    Mihai
    Mihai Buta

  • #2
    Mihai
    Jason posted two replies to your message the day after you posted it. You can find them here
    Alex

    Comment

    Working...
    X