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.

    Comment


      #3
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      101 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      52 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      32 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      36 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      73 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X