![]() |
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2012
Posts: 27
Thanks: 10
Thanked 1 time in 1 post
|
When I set stop losses for a strategy I am backtesting, for some reason Ninjatrader is not reading them.
I set 'simulated' to true, set calculation mode as percent and place the percentage I wish to use as a stop loss. Is there any sort of default I have to change before Ninjatrader will accept my stop loss inputs? Thanks in advance. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
|
Hello,
What is the exact Percent value you are using for your stop? For example, if you are using 5%, you would want to make sure you're using a double value of 0.05 - as opposed to 5.00 which would be 500%. If you're sure that is correct, do the stops work if you switch to CalculationMode.Ticks?
Matthew
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2012
Posts: 27
Thanks: 10
Thanked 1 time in 1 post
|
Thanks Matthew.
I am making sure my percentages are correct. I want a 10% stop loss, i.e. 0.1, and my largest loss is coming out as 98%. How can I set a 10% stop loss using ticks? Thanks. |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,858
Thanks: 162
Thanked 579 times in 570 posts
|
You would need to calculate it yourself if you used ticks, however the CalculationMode.Percent should do that for you.
I was not asking you to use ticks for your strategy per se, just curious if the stop is submitted and executed if you do use ticks. I would also suggest enabling the TraceOrders property in your strategy to see if the stops are actually being submitted when you expect: http://www.ninjatrader.com/support/f...ead.php?t=3627
Matthew
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| three targets ,three stop losses ? | blazer | Miscellaneous Support | 4 | 03-23-2010 01:51 PM |
| Moving Stop Losses | BigDog008 | Strategy Development | 1 | 07-09-2009 05:07 AM |
| Stop Losses | stefy | Strategy Development | 2 | 05-13-2008 07:15 PM |
| Stop losses | lgarcia3 | Strategy Development | 1 | 04-12-2008 08:00 AM |
| Stop Losses not working? | zoltran | General Programming | 2 | 11-08-2007 04:00 AM |