PDA

View Full Version : Incorrect StopLoss being triggered.


strategy1
07-26-2008, 06:28 PM
I created a strategy using the strategy wizard and it seems to Exit via a StopLoss at the exact same time and same price as it enters.

The entry times and prices are all correct.

My stop loss code when I unlock it is:
SetStopLoss("", CalculationMode.Price,0.15, false);

I checked if the price actually moved .15 intrabar and it didn't.

Am I doing something wrong?

Thanks

NinjaTrader_Josh
07-26-2008, 07:10 PM
Using CalculationMode.Price is incorrect for a 0.15 move. Price mode means actual price. Your instrument at 0.15. If you wanted 15 ticks you want to use CalculationMode.Ticks and then submit 15 as the number not 0.15.

strategy1
07-26-2008, 09:42 PM
That explains it.

Thanks a lot.