Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Today/now Value of indicator in 1 day data

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

    Today/now Value of indicator in 1 day data

    Hey,

    do i understand correctly: Indicators calculate [i-1] value.I mean ,now [0] value is not calculated until we have 1 more bar. Is it true?

    I use 1day data. So when in US Stocks , Exchange is till closed, there is no TODAY data yet. i need to calculate yestarday values. And i have Price of yesterday , but indicators do not calculate that value.
    What should i do to make my custom indicators and ninja indicators calculate now(for them) and yesterday (for me)
    value .

    #2
    Hello margandi,

    Thanks for your post.

    If the indicator is using Calculate.OnBarClose, its values/plot would not update until the bar closes. In this mode, calculations are performed on bars that do not change (as they are closed).

    You can use Calculate.OnPriceChange or Calculate.OnEachTick and this will allow the indicator to calculate to the right edge bar.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by tradebot, Yesterday, 01:25 PM
      3 responses
      17 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by manueldecastro, Yesterday, 10:26 AM
      5 responses
      24 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by memonic, 05-01-2024, 01:23 PM
      5 responses
      31 views
      0 likes
      Last Post memonic
      by memonic
       
      Started by dcriador, Yesterday, 10:45 AM
      2 responses
      20 views
      0 likes
      Last Post dcriador  
      Started by SnailHorn, Yesterday, 10:49 PM
      1 response
      12 views
      0 likes
      Last Post SnailHorn  
      Working...
      X