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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    619 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    420 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    293 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    414 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    367 views
    0 likes
    Last Post CarlTrading  
    Working...
    X