Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
not enough bars for strategy
Collapse
X
-
not enough bars for strategy
if i use a very long oscillator like 500 period stochastic on a chart it will not plot correctly until i set "maximum bars loopback" to "infinite". now if i want to use the same 500 period oscillator in a strategy, i can't figure out how to set this parameter in the condition builder (in the strategy wizard) and my strategy doesn't work.Tags: None
-
Hello tubular2000,
Thank you for your post.
When enabling the strategy on your chart or the Strategies tab you will have a MaximumBarsLookBack option in the Strategy settings, this is where you will set this property.
For information on using NinjaScript Strategies and their settings please visit the following link: http://www.ninjatrader.com/support/h...strategies.htm
Please let me know if you have any questions.
-
Originally posted by tubular2000 View Postif i use a very long oscillator like 500 period stochastic on a chart it will not plot correctly until i set "maximum bars loopback" to "infinite". now if i want to use the same 500 period oscillator in a strategy, i can't figure out how to set this parameter in the condition builder (in the strategy wizard) and my strategy doesn't work.Code:protected override void Initialize() { MaximumBarsLookBack = MaximumBarsLookBack.Infinite; }
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by AnnBarnes, Today, 12:17 PM
|
0 responses
1 view
0 likes
|
Last Post
by AnnBarnes
Today, 12:17 PM
|
||
Started by Lopat, 03-05-2023, 01:19 PM
|
4 responses
166 views
0 likes
|
Last Post
by Sam2515
Today, 12:15 PM
|
||
Started by f.saeidi, Today, 12:14 PM
|
0 responses
2 views
0 likes
|
Last Post
by f.saeidi
Today, 12:14 PM
|
||
Started by giulyko00, Today, 12:03 PM
|
0 responses
4 views
0 likes
|
Last Post
by giulyko00
Today, 12:03 PM
|
||
Started by AttiM, 02-14-2024, 05:20 PM
|
12 responses
213 views
0 likes
|
Last Post
by DrakeiJosh
Today, 11:17 AM
|
Comment