protected override void OnStateChange() { if (State == State.SetDefaults) { DaysToLoad = 15; } }
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
How to set the number of days to load into the chart from an Indicator
Collapse
X
-
How to set the number of days to load into the chart from an Indicator
Is it possible for an Indicator to set the number of Days To Load in the Data Series UI? I have tried this but it gives an error that DaysToLoad does not exist in the current context:
Code:Tags: None
-
Hello swcooke,
You can use the following property for that purpose:
Code:Print(ChartBars.Properties.DaysBack);
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by DayTradingDEMON, Today, 09:28 AM
|
1 response
10 views
0 likes
|
Last Post Today, 09:40 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
8 responses
31 views
0 likes
|
Last Post Today, 09:34 AM | ||
Started by helpwanted, Today, 03:06 AM
|
2 responses
21 views
0 likes
|
Last Post Today, 09:30 AM | ||
Started by navyguy06, Today, 09:28 AM
|
0 responses
2 views
0 likes
|
Last Post
by navyguy06
Today, 09:28 AM
|
||
Started by rjbtrade1, 11-30-2023, 04:38 PM
|
2 responses
77 views
0 likes
|
Last Post
by DavidHP
Today, 08:12 AM
|
Comment