Announcement

Collapse
No announcement yet.

Is building indicator updated every tick ?

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

  • Is building indicator updated every tick ?

    If in a script, which itself is set to compute on close, a built-in study is called like

    var sma50 = sma(50);

    My question is whether sma50 is updated every tick thereafter or it is only calculated at the end of the bar since the main function is only called at the close of the bar.

    Clearpicks

  • #2
    Re: Is building indicator updated every tick ?

    Hi Clearpicks,

    My understanding is that ' built-in study functions that create a series object within a formula that is using setComputeOnClose() will update on close only, not tick by tick' . Here are a couple of links where Jason answered some related questions.

    http://forum.esignalcentral.com/show...%2A#post112015

    http://forum.esignalcentral.com/show...%2A#post111549



    Originally posted by clearpicks
    If in a script, which itself is set to compute on close, a built-in study is called like

    var sma50 = sma(50);

    My question is whether sma50 is updated every tick thereafter or it is only calculated at the end of the bar since the main function is only called at the close of the bar.

    Clearpicks

    Comment

    Working...
    X