The reason that works on the chart and not in the analyzer is because the analyzer can only display the most recent value. In general it should work for both the chart and analyzer so long as you are setting a value to the plot from BarsInprogress 0 so each update you have a value. The chart can continue to display old values so setting it infrequently from a secondary series will also technically be displayed but any scripts that may try to access that plot data would also have the same issue as the analyzer.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Ind OnPriceChange in MA with Alert OnConditionReversed Rearm
Collapse
X
-
Hello ToNovy,
The reason that works on the chart and not in the analyzer is because the analyzer can only display the most recent value. In general it should work for both the chart and analyzer so long as you are setting a value to the plot from BarsInprogress 0 so each update you have a value. The chart can continue to display old values so setting it infrequently from a secondary series will also technically be displayed but any scripts that may try to access that plot data would also have the same issue as the analyzer.
JesseNinjaTrader Customer Service
-
Hi Jesse,
it took me some time, but it looks like i successfully rewrite the logic of the indicator. I also added IsFirstTickOfBar to copy the previous values until the new ones are available.. and they are only available after the OnPriceChange event on BIP 1
if I understood correctly MA has a tick update so I saw 0 right after the first tick on a new candle typically the first second of a new candle but the new value was available sometimes up to 10 seconds after
Probably, I basically did, what you just described as the difference between chart and MA.
and once again the previous question, is it possible to somehow recognize whether the indicator is running in the chart or in the MA? personally, for example, in MA I would limit the calculation to realtime only, but in chart I want to have an overview of the values retrospectively
so is there a way to set the indicator automatically depending on where it runs?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Pabulon, Yesterday, 03:42 PM
|
3 responses
30 views
0 likes
|
Last Post
by Pabulon
Today, 04:30 AM
|
||
Started by giogio1, Yesterday, 03:18 AM
|
2 responses
14 views
0 likes
|
Last Post
by giogio1
Today, 04:21 AM
|
||
Started by MikM45, Today, 03:13 AM
|
0 responses
6 views
0 likes
|
Last Post
by MikM45
Today, 03:13 AM
|
||
Started by MikM45, Today, 03:10 AM
|
0 responses
4 views
0 likes
|
Last Post
by MikM45
Today, 03:10 AM
|
||
Started by cls71, Today, 12:29 AM
|
0 responses
5 views
0 likes
|
Last Post
by cls71
Today, 12:29 AM
|
Comment