I am trying to backtest a strategy and no trades are showing up on the chart and no trades are listed when I open up historical performance. I just downloaded the latest update to NT8 but that didn't help.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Unable to get Backtest to work
Collapse
X
-
Hello rexsole,
Thanks for your post.
Does your strategy skip historical processing? For example, are you checking if (State == State.Realtime) before calling your order entry methods? Or, are you calling if (State == State.Historical) return; within your strategy?
If so, this would prevent the strategy from being able to be used in the Strategy Analyzer since historical processing is skipped.
If this is not the case, please test running a backtest on the SampleMACrossOver strategy that comes default with NinjaTrader in the Strategy Analyzer.
If you see no issues when running the SampleMACrossOver strategy, it is likely that there is an issue with the code of your strategy that is preventing orders from being placed. Debugging using prints would need to be done to determine what exactly in your strategy is causing the issue.
Below is a link to a forum post that demonstrates how to use prints to understand behavior.
https://ninjatrader.com/support/foru...121#post791121
Let us know if we may assist further.Brandon H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
9 responses
36 views
0 likes
|
Last Post Today, 11:02 AM | ||
Started by DayTradingDEMON, Today, 09:28 AM
|
4 responses
24 views
0 likes
|
Last Post Today, 10:47 AM | ||
Started by geddyisodin, Yesterday, 05:20 AM
|
9 responses
50 views
0 likes
|
Last Post Today, 10:45 AM | ||
Started by George21, Today, 10:07 AM
|
1 response
15 views
0 likes
|
Last Post Today, 10:43 AM | ||
Started by Stanfillirenfro, Today, 07:23 AM
|
9 responses
24 views
0 likes
|
Last Post Today, 10:16 AM |
Comment