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 benmarkal, Yesterday, 12:52 PM
      3 responses
      23 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by helpwanted, Today, 03:06 AM
      1 response
      19 views
      0 likes
      Last Post sarafuenonly123  
      Started by Brevo, Today, 01:45 AM
      0 responses
      11 views
      0 likes
      Last Post Brevo
      by Brevo
       
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      244 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      388 views
      1 like
      Last Post Gavini
      by Gavini
       
      Working...
      X