Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Backtest is not running with most futures and forex
Collapse
X
-
Backtest is not running with most futures and forex
My back-testing wont run on most futures and forex instruments, I have TD connection and have Ninja trade data plan. I can load the instrument chart from the control center (So im getting the data) but when running a backtest on a strategy it wont even start it, the strategy will work with any stock but not on futures and forex. any ideas on how to solve this?
Tags: None
-
Hello vmauvalencia,
Welcome to the NinjaTrader forums!
If the strategy is in the Strategy Analyzer, is there data appearing on the Chart Display of the Strategy Analyzer?
Importantly, are there errors appearing on the Log tab of the Control Center?
Try testing the Sample MA Crossover strategy included with NinjaTrader on the same chart or Strategy Analyzer using the same instrument, bar type, interval, and date range.
Do you see results with this strategy? (This would confirm for us data is available and the issue is with the logic in the custom script)
If the strategy is getting data and the strategy is enabled or a backtest is run with no errors in the Log tab of the Control Center, then would likely indicate the logic conditions did not evaluate as true or orders are being ignored or cancelled.
In order to better understand how the code is working, it will be necessary to use Print to see how the conditions are evaluating and enable TraceOrders to see if orders are being submitted, ignored, rejected, or cancelled.
Below is a link to a forum post that demonstrates using prints to understand behavior and includes a link to a video recorded using the Strategy Builder to add prints.
https://ninjatrader.com/support/foru...121#post791121
Enable TraceOrders, print the time of the bar and all values used in the conditions that submit entry orders. Include labels for all values and comparison operators.
Let me know if you need any assistance creating a print or enabling TraceOrders.
Save the output from the output window to a text file and provide this with your reply.
I'll be happy to assist with analyzing the output.Chelsea B.NinjaTrader Customer Service
-
Hello,
There is no chart being displayed on the strategy Analyzer tab after I run the backtest, however I can load the NQ graph from the control panel.
I also tried the sample MA strategy but is doing the same, there is no errors on the log, nothing happens when I click run, and again this doesnt happen for some reason on ES futures and all stocks, only with NQ, gold and most other futures and minis.
Victor,.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johnMoss, Yesterday, 08:56 PM
|
2 responses
20 views
0 likes
|
Last Post
![]()
by johnMoss
Today, 11:33 AM
|
||
Started by michelz, Yesterday, 08:30 AM
|
5 responses
44 views
0 likes
|
Last Post
![]()
by MiCe1999
Today, 11:02 AM
|
||
Started by ntbone, Yesterday, 01:50 AM
|
13 responses
55 views
0 likes
|
Last Post
![]()
by MiCe1999
Today, 10:45 AM
|
||
Started by gyilaoliver, Today, 10:30 AM
|
1 response
10 views
0 likes
|
Last Post
|
||
Started by Irukandji, Yesterday, 04:24 PM
|
2 responses
27 views
0 likes
|
Last Post
|
Comment