Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Indicator executed on future bars
Collapse
X
-
Indicator executed on future bars
Hi, when debugging single-timeframe indicator on historical data, it usually calls OnBarUpdate() only on visible bars. OnBarUpdate() for the bars behind the right side is executed after I scroll the chart to see them. One question is why this does not happen always...I have not found a consitency. Sometimes it waits, sometimes OnBarUpdate() is called for all the bars, even the hidden on the right. Second question, why it never waits in multi-timeframe indicator? I cannot check the output bar by bar, OnBarUpdate() is called for every bar, regardless if it's hidden or not. Is there a way how can I control this behavior and switch it off? Thank you.Tags: None
-
Hello mantak007,
Single series indicators will process all bars up to the last visible bar on the chart until you scroll to the right to see more bars, then it will also process those as well.
Multiseries indicators however will process all bars all the way to the last bar loaded on the chart regardless of where you have the chart scrolled to.
This is expected and how the bars are referenced in NinjaTrader and there are no settings to overirde the behavior.JoydeepNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
71 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
4 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
Comment