![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2009
Posts: 124
Thanks: 0
Thanked 1 time in 1 post
|
Hi,
I have a strategy that I've created and runs perfectly on MR, resulting in multiple trades per day. However, when I run the strategy in the Strategy Analyzer (Backtest), I get 0 trades. I have no idea why this is occurring. Any insight would be appreciated. Thanks! jon |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 977 times in 960 posts
|
Jon, which CalculateOnBarClose setting are you working with, are you relying on getting the intrabar formation for the code to work as expected?
Thanks
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2009
Posts: 124
Thanks: 0
Thanked 1 time in 1 post
|
Bertrand,
COBC = true. I am working with 1-minute bars and am only concerned with OnBarUpdate being called at the close of each bar. thanks- |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 977 times in 960 posts
|
Ok Jon, what order types and backtest fill algorithms are you using?
http://www.ninjatrader-support.com/H...sBacktest.html Have you tried adding a visual check to confirm that your conditions to enter is triggered as expected? Are you perhaps running MultiSeries and historical data would not be present as needed for the calcs?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2009
Posts: 124
Thanks: 0
Thanked 1 time in 1 post
|
Bertrand,
I'm using EnterLong and EnterShort - so I believe I'm submitting market orders. As for the fill type, I'm using the Default setting in the Strategy Analyzer. This strategy is not a multi-series based strategy. I simply compare the current close to some previous close prices before entering for 1 instrument. I am using the Bollinger indicator for some of the exit criterion. However my problem is really concerned with why my strategy isn't entering the market at all on backtest, but enters about 5 times per day on MR. Obviously, I'd like the backtest engine to work properly so I can test the performance over the course of many days without having to run MR on each day individually. |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 977 times in 960 posts
|
Correct, those are just market orders, so you would need to debug what's different in your signal triggering / evaluation in backtest vs. replay, have you tried adding a visual check like a dot to the strategy to see when the conditions are triggering as per your rules?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#7 | |
|
Senior Member
Join Date: Jan 2009
Posts: 124
Thanks: 0
Thanked 1 time in 1 post
|
Quote:
Bertrand, that's my point. Nothing seems to get triggered via the Strategy Analyzer. However the all the triggers work properly on MR. |
|
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 977 times in 960 posts
|
Jon, can you please post or email a sample of the condition you attempt to trigger in the SA?
Thanks
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Jan 2009
Posts: 124
Thanks: 0
Thanked 1 time in 1 post
|
email sent, Bertrand.
thanks |
|
|
|
|
|
#10 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 977 times in 960 posts
|
Thanks, got it - will reply now.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Sep 2010
Posts: 23
Thanks: 0
Thanked 0 times in 0 posts
|
I have developed a strategy which works perfectly in the Strategy Analyser Backtest and Walkforward environment. However, when I run the Strategy live on my Simulator Account, it does NOT fire any orders to market. I have checked all connected (internet, data feed, logs) all fine.
|
|
|
|
|
|
#12 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 977 times in 960 posts
|
If you're working with NT7 please first of all ensure the strategy is properly enabled, so it could generate orders as needed.
Next, please add a print or visual check via a drawing object to see if your triggers are evaluating to 'true' as needed in real time operation.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#13 |
|
Junior Member
Join Date: Sep 2010
Posts: 23
Thanks: 0
Thanked 0 times in 0 posts
|
I am using 6.5 and I have already done this. It shows up on Print check without a problem. It just doesn't trade..!
|
|
|
|
|
|
#14 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 977 times in 960 posts
|
What order type do you issue then exactly? What is the trace orders output telling you at the point of order triggering / submission? Do they perhaps expire unfilled?
http://www.ninjatrader.com/support/f...ead.php?t=3627
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#15 |
|
Junior Member
Join Date: Sep 2010
Posts: 23
Thanks: 0
Thanked 0 times in 0 posts
|
I am using "Liberal Setting" with the default "Enter Short" code. Out of interest, how would I check the trace orders output ?
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Backtest results inconsistent | rightcoast | Miscellaneous Support | 1 | 06-08-2010 06:17 AM |
| Export Backtest results | Franzl | Strategy Analyzer | 3 | 11-13-2009 04:58 AM |
| Where are backtest results saved | verge | Market Analyzer | 3 | 05-18-2009 11:06 AM |
| Wierd Backtest Results | darckeen | Strategy Analyzer | 2 | 04-15-2009 08:32 AM |
| Inconsistent backtest results | ctrlbrk | Strategy Development | 11 | 11-27-2008 11:53 AM |