![]() |
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 |
|
Member
Join Date: Aug 2009
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
|
I have a strategy which enters the market with market order and has target limit order and stop loss order. I want to enter a trailing stop order and cancel stop loss order if profit touched 18 ticks.
Is it something to possible to do in NT both for backtests? In live I can use tick updates but for backtests the logic needs to be built using MFE. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Hmm, I guess you MFE should read MIT, correct? Those orders are unfortunately not supported by NT.
For stoploss trailing aspect, you could code this out yourself with the concept demonstrated here - http://www.ninjatrader-support2.com/...ead.php?t=3222
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Aug 2009
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
|
I meant MFE. So during backtest you track mfe and exit poistion at certain offset below MFE instead of bar close price. Like you do for SetTrailStop but only difference is that TrailStop should trigger after Pnl touches x points.
I have implemented this strategy in live using tickupdate just need to set it up for backtests. |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Unfortunately backtesting just doesn't have tick granularity. I am not sure how you actually have the logic programmed though.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Aug 2009
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
|
Same as SetTrailStop but the only difference is trailstop will activate only after MFE crossed above certain level.
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
To simulate this is backtesting, you would need to work then with lower granular data (fast tickcharts) and then simulate your higher time frame conditions on this chart as a replacement for the unknown intrabar tick formation of your higher frame.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Market if touched? | Mike_32 | Miscellaneous Support | 13 | 05-06-2012 05:15 AM |
| Market if Touched | msms88 | SuperDOM and other Order Entry Windows | 2 | 01-07-2009 06:59 AM |
| market if touched | gdargento | SuperDOM and other Order Entry Windows | 14 | 06-22-2008 05:56 PM |
| Market if Touched ? | tradingkevin | ATM Strategies (Discretionary Trading) | 2 | 05-11-2007 03:31 AM |
| Market if Touched and Limit if Touched orders | eminimethods_com | Miscellaneous Support | 7 | 07-18-2006 04:35 AM |