PDA

View Full Version : parabolic SAR stop strategy


winja
11-13-2007, 01:10 AM
Hi,

I would like to test using pSAR as a stop in the Strategy Analyzer but not sure how to do that. Is it possible to use a pSAR stop using the Strategy Wizard? Thanks

NinjaTrader_Josh
11-13-2007, 02:39 AM
Hi winja,

You can do this with the SetStopLoss() method. http://www.ninjatrader-support.com/HelpGuideV6/SetStopLoss.html

Please also check out this reference sample. http://www.ninjatrader-support.com/vb/showthread.php?t=3222

In the OnBarUpdate() method...
SetStopLoss(CalculationMode.Price, ParabolicSAR(0.02, 0.2, 0.02)[0]);