NinjaTrader Support Forum  
X

Attention!

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


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 03-04-2010, 06:51 PM   #1
morphtrade
Member
 
Join Date: Aug 2009
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default TrailStop on Market if Touched

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.
morphtrade is offline  
Reply With Quote
Old 03-05-2010, 02:51 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
Default

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
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 03-05-2010, 12:52 PM   #3
morphtrade
Member
 
Join Date: Aug 2009
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
morphtrade is offline  
Reply With Quote
Old 03-05-2010, 01:43 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Unfortunately backtesting just doesn't have tick granularity. I am not sure how you actually have the logic programmed though.
NinjaTrader_Josh is offline  
Reply With Quote
Old 03-08-2010, 07:25 AM   #5
morphtrade
Member
 
Join Date: Aug 2009
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Same as SetTrailStop but the only difference is trailstop will activate only after MFE crossed above certain level.
morphtrade is offline  
Reply With Quote
Old 03-08-2010, 07:31 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
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
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


All times are GMT -6. The time now is 12:26 AM.