NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 06-06-2012, 10:31 PM   #1
er111222
Member
 
Join Date: Mar 2011
Posts: 53
Thanks: 7
Thanked 0 times in 0 posts
Default strategy slippage

Hi,

Attached is a screen snap short within 1 second of slippage in ES 2-7-2009 in a Strategy Analyzer chart report. Does anyone has any idea what would actually happen in live trading when the same happen?
Attached Images
File Type: png 6-06-2012 11-24-26 PM.png (197.3 KB, 14 views)
er111222 is offline  
Reply With Quote
Old 06-06-2012, 10:52 PM   #2
Radical
Senior Member
 
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
Default

It's kind of hard to tell what is being shown in that chart.
Radical is offline  
Reply With Quote
Old 06-06-2012, 11:15 PM   #3
er111222
Member
 
Join Date: Mar 2011
Posts: 53
Thanks: 7
Thanked 0 times in 0 posts
Default

Let me explain, the strategy triggers many buy and sell orders within the blue levels within 32 ticks in 1 second.
er111222 is offline  
Reply With Quote
Old 06-07-2012, 02:00 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

It would depend largely upon the order type being used...for you the next step would be running this script in Market Replay or realtime simulation to get a feel for it's non backtesting behavior.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 06-07-2012, 03:38 AM   #5
er111222
Member
 
Join Date: Mar 2011
Posts: 53
Thanks: 7
Thanked 0 times in 0 posts
Default

The order type is limit order, I assume the replay would be the same as it just get the same data. For live simulation, I cannot sit in front of the computer and wait a year before this will happen again.

Any insight into what actually happened during that second and will a live strategy react just like the image... is being asked here.

I would appreciate any one share opinion on his/her experience in auto trade strategy in live trade. I have experience this a number of time in live trading but have no idea what would happen when run in strategy live. Is it just corrupted data? But I have seen similar slippage data happen in real life when trading. If this is true data, then until this issue being minimize or protected, a big drawdown is waiting to fire any time.
er111222 is offline  
Reply With Quote
Old 06-07-2012, 03:44 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

No, the replay would not use the same data, it's a fundamentally different concept than back-testing, so this would be your best approach to deeper understand your strategy reaction to this set of data.

Looks to me like a news event unfolding?
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 06-07-2012, 02:57 PM   #7
arbuthnot
Senior Member
 
Join Date: Feb 2012
Posts: 181
Thanks: 44
Thanked 13 times in 11 posts
Default

Quote:
Originally Posted by er111222 View Post
The order type is limit order, I assume the replay would be the same as it just get the same data. For live simulation, I cannot sit in front of the computer and wait a year before this will happen again.

Any insight into what actually happened during that second and will a live strategy react just like the image... is being asked here.

I would appreciate any one share opinion on his/her experience in auto trade strategy in live trade. I have experience this a number of time in live trading but have no idea what would happen when run in strategy live. Is it just corrupted data? But I have seen similar slippage data happen in real life when trading. If this is true data, then until this issue being minimize or protected, a big drawdown is waiting to fire any time.
I've seen seen similar things on my own charts, before I found out the reason for the problem.

I think one of your problems is that you're using tick charts with a small number of ticks (maybe you're suing say 5 tick bars, rather than the usual 200 or 300 tick bars)..

Secondly, and this is the problem I had, I was working with rising/falling conditions that were valid over many bars. (I guess your conditions are valid over many small tick bars.) I found that the solution to this was to introduce "if ... else if" conditions. Basically, in the if condition, you state the negative of your main conditions applied to the previous bar. In the else if, you state the (positive) conditions for the current bar. In this way, for orders valid over a number of bars, the only order entered is one for the very first bay for which the conditions are valid.

Another approach is to use 'boolean flags', but this makes the logic of the strategy much more complex.

I hope this makes sense, but it certainly works for me and completely solved the problem. But I'd also look at greatly increasing the 'tick size'.
arbuthnot is offline  
Reply With Quote
The following 2 users say thank you to arbuthnot for this post:
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slippage and commission applied to Percent Profitable in Strategy Analyzer results? adamus Version 7 Beta General Questions & Bug Reports 3 08-09-2010 09:08 AM
Slippage in backtesting / optimization Strategy Analyzer adamus Version 7 Beta General Questions & Bug Reports 19 06-04-2010 04:53 PM
Slippage dowhk Strategy Analyzer 3 02-19-2010 04:08 AM
Strategy Management & Slippage P51 ATM Strategies (Discretionary Trading) 1 12-06-2006 03:03 AM
Strategy Management & Slippage P51 ATM Strategies (Discretionary Trading) 0 12-06-2006 02:57 AM


All times are GMT -6. The time now is 05:54 PM.