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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
47 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
33 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment