![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Jan 2009
Posts: 415
Thanks: 0
Thanked 21 times in 21 posts
|
Hi,
I am trying to find a way around an issue I have with back testing vs. live trading. If I am short and get a long signal, I want to exit at the market. Because I am using Unmanaged orders, I just change the profit order to a price well above the market and it effectively becomes a market order. While this is true in live trading; I noticed in back testing, I am actually getting a fill at the limit price (almost 20 ticks above the market) which is above even the high of the bar. I move my profit target from 1.4120 (6E) to 1.4164 and I get an execution at 1.4164 even though the high of that bar is 1.4148. In live trading I would get a fill at the close of the signal bar plus a tick or so; this constitues almost 20 ticks slippage. I am looking for the following answers a) do I have a setting or something basic set wrong that could cause this b) is there a simple way around this? I have already thought of lots of ways around the issue but they all involve changing code that works in live trading to accomodate a back test. Any suggestions will be appreciated. Best Regards, Scott |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Mar 2009
Posts: 442
Thanks: 0
Thanked 25 times in 16 posts
|
Fill type=Liberal
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2009
Posts: 415
Thanks: 0
Thanked 21 times in 21 posts
|
Thanks that fixed it. Are there other implications to using fill type = liberal such as limit orders getting filled if the market traded at the price, etc?
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jan 2009
Posts: 415
Thanks: 0
Thanked 21 times in 21 posts
|
It seems I have a special case and I am going to have to create my own fill algorithm to combine the two different types to get what I want.
Thanks. |
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,499
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Thanks for the assist Baruch! Yes you can do this if it is needed. However you are able to do so however it is largly unsupported and is a sandbox for you to "play" in. Let me know if I can be of further assistance.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jan 2009
Posts: 415
Thanks: 0
Thanked 21 times in 21 posts
|
Brett, thanks for the information and offer.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strategy Back Testing | mjc4118 | Version 7 Beta General Questions & Bug Reports | 3 | 12-09-2009 09:35 AM |
| Back Testing Data | pistolpete | Automated Trading | 5 | 04-29-2009 07:37 AM |
| Back Testing With The TICK | heyligerb | Strategy Analyzer | 1 | 02-01-2009 10:39 AM |
| back testing | mary reed | Strategy Analyzer | 1 | 01-13-2008 07:23 PM |
| Re Back testing | John_Aus | Miscellaneous Support | 6 | 03-15-2005 01:54 AM |