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 yertle, Yesterday, 08:38 AM
|
7 responses
28 views
0 likes
|
Last Post
by yertle
Today, 12:15 AM
|
||
Started by bmartz, 03-12-2024, 06:12 AM
|
2 responses
19 views
0 likes
|
Last Post
by bmartz
Today, 12:11 AM
|
||
Started by funk10101, Today, 12:02 AM
|
0 responses
3 views
0 likes
|
Last Post
by funk10101
Today, 12:02 AM
|
||
Started by gravdigaz6, Yesterday, 11:40 PM
|
1 response
8 views
0 likes
|
Last Post Yesterday, 11:49 PM | ||
Started by MarianApalaghiei, Yesterday, 10:49 PM
|
3 responses
10 views
0 likes
|
Last Post Yesterday, 11:33 PM |
Comment