Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why do I have to set indicator value at every tick?

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

    Why do I have to set indicator value at every tick?

    Hello,

    In my ninjascript, I use Add(Plot) to draw indicators on chart. However I found I have to set indicator series value at every tick. If only do it at FirstTickOfBar == true, the plot is not drawn correctly. The chart update interval has been set to 0. And actually I saw the indicator value was set at the beginning every new bar including those realtime bars. Why the indicator is not shown on realtime bars in my testing script? The attached testing script should be run on YM M8 1min chart so that the bold red line is visible.

    - Clearpicks
    Attached Files

    #2
    Our logic requires that a value must be set or not set on each call to OnBarUpdate. If you skip setting it, it will not hold a value and thus not plot.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    581 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    338 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X