Thanks, Steven
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Maximum Bars Lookback problem
Collapse
X
-
Maximum Bars Lookback problem
I have a strategy that uses an indicator that has a lookback value of 500. As a result it does not work. If I change it to a value of 256 or less it works. I have tried to set the strategy general tab Maximum Bars Lookback to 'infinite' but it still does not work. Has anybody else come across this problem and if so how did you fix it.
Thanks, StevenTags: None
-
Hi Steve,
There is not a general issue with 500 bar lookbacks in a strategy. I checked the provided SampleMACrossOver strategy with a lookback of 500 and have no problem generating orders in the backtest.
As we discussed by email you will need to simplify and debug your strategy. This requires using Print() statements to confirm values and track your code flow, as well as TraceOrders output to monitor for messages related to order submission. The following link can help you use these tools in order to track what your strategy is doing.
Ryan M.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
656 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
371 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
579 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment