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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
64 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
35 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
59 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment