Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Best Practice for updating indicator Plot
Collapse
X
-
Hello Itachi,
Based on the description it sounds like the indicator works normally when processing historical data but does not work the same when processing realtime data. That could be due to the indicator settings being used, for example historically it will calculate OnBarClose but in realtime you have the three options including OnEachTick and OnPriceChange as well.
The best way to address this would be to print out the bar time and values you are using in your calculations and compare how the values are in historical vs in realtime when the plot goes flat. You would specifically want to do the realtime test first and collect the output slightly before and during when the plot goes flat. Then reload the chart and check the values for the same times. That will let you step through the chart to see exactly why that is happening.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
593 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
554 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment