Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CalculateOnBarClose

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

    CalculateOnBarClose

    Hello,

    when CalculateOnBarClose is set to false I understand that indicators are calculated on every tick. But what about Close[0]?

    If I have a minute bars and CalculateOnBarClose== false I have to suppose that the value of Close[0] is set on every tick or only at the end of the minute?

    #2
    Hello guillembm,
    Close[0] is updated on every tick if Calculate on bar close is set to false.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      So,

      I need for a minute bar time frame to calculate indicators on every tick but I need Close[0] to be updated at the end of the bar, not on every tick. How can I do it?

      Comment


        #4
        Hello guillembm,
        You can use the FirstTickOfBar property to separate the logic to calculate the values of the indicator once or tick by tick. Please refer to this sample code which further demonstrates it.
        http://ninjatrader.com/support/forum...ad.php?t=19387
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mattdowns1234, Today, 06:57 PM
        0 responses
        9 views
        0 likes
        Last Post mattdowns1234  
        Started by dgee949, Today, 06:26 PM
        0 responses
        12 views
        0 likes
        Last Post dgee949
        by dgee949
         
        Started by dgee949, Today, 05:58 PM
        0 responses
        18 views
        0 likes
        Last Post dgee949
        by dgee949
         
        Started by thepcmd, Today, 05:14 PM
        0 responses
        28 views
        0 likes
        Last Post thepcmd
        by thepcmd
         
        Started by xmess777, Today, 04:58 PM
        0 responses
        21 views
        0 likes
        Last Post xmess777  
        Working...
        X