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 02-03-2010, 01:37 AM   #1
Eddy-2d
Junior Member
 
Join Date: Apr 2009
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
Default backtesting trailing stoplosses

I want to backtest a trailing stop loss level. How do I create one/add it my current strategy?

I have 1 minute data. T once heard this was not possible but it should be.
(If my PnL is up by 2% or more NT6.5/7 should be able to calculate this in a backtest and Exit me)

It should even be possible by the strategy wizard.


Thank you,
Eddy-2d is offline  
Reply With Quote
Old 02-03-2010, 07:23 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

Eddy, in the strategy as well as the wizard you could work with SetTrailStop for this -

http://www.ninjatrader-support.com/H...TrailStop.html

If you like to start with a static stoploss and then move it as the trade progresses at a later point, please custom code this with the help of this sample -

http://www.ninjatrader-support2.com/...ead.php?t=3222
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 02-03-2010, 08:13 AM   #3
Eddy-2d
Junior Member
 
Join Date: Apr 2009
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
Default

OK but is it possible to backtest your strategy with a trailing stoploss?
Eddy-2d is offline  
Reply With Quote
Old 02-03-2010, 08:27 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

Eddy, yes this is possible.
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
Backtesting strategies with trailing stops betcashrun Strategy Development 5 06-18-2009 02:26 PM
Trailing Profits - How to Reverse a Trailing Stop? jeremymgp Strategy Development 1 05-05-2009 10:47 AM
Trailing Stops snaphook ATM Strategies (Discretionary Trading) 4 01-06-2009 04:03 PM
Trailing stop jonbig04 ATM Strategies (Discretionary Trading) 2 07-24-2008 11:40 AM
NT 6.5 - Trailing stop not trailing PocoDiablo Miscellaneous Support 3 03-19-2008 01:46 PM


All times are GMT -6. The time now is 02:49 PM.