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
Adding instrument and controlling the # of its bars
Collapse
X
-
savekad,
Unfortunately there isn't any way to force a number of bars to load currently. Essentially the bars will start with the first one on your chart and iterate forward from there.
If you ensure that you have historical data saved for the instruments you are loading you should have access to it depending on the time frame.Adam P.NinjaTrader Customer Service
-
But AFAIK, added Bars object gets the same number of bars as the base chart Bars object only when "Load data based on" property is set to 'Bars'.
And one other thing, is there maybe a way to condition an indicator to execute its logic only if "Load data based on" is set to 'Bars' and has at least a certain number of bars?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by proptradingshop, 03-21-2024, 09:50 AM
|
6 responses
27 views
0 likes
|
Last Post Today, 12:02 AM | ||
Started by mly916, Yesterday, 09:48 PM
|
1 response
11 views
0 likes
|
Last Post Yesterday, 11:54 PM | ||
Started by Mikey_, Yesterday, 09:21 PM
|
0 responses
11 views
0 likes
|
Last Post
by Mikey_
Yesterday, 09:21 PM
|
||
Started by cre8able, Yesterday, 05:53 PM
|
3 responses
14 views
0 likes
|
Last Post
by cre8able
Yesterday, 09:20 PM
|
||
Started by Aryan Kumar, Yesterday, 09:04 PM
|
0 responses
4 views
0 likes
|
Last Post
by Aryan Kumar
Yesterday, 09:04 PM
|
Comment