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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
213 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
126 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
145 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
229 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
190 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment