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
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
parabolic SAR stop strategy
Collapse
X
-
Hi winja,
You can do this with the SetStopLoss() method. http://www.ninjatrader-support.com/H...tStopLoss.html
Please also check out this reference sample. http://www.ninjatrader-support.com/v...ead.php?t=3222
In the OnBarUpdate() method...
Code:SetStopLoss(CalculationMode.Price, ParabolicSAR(0.02, 0.2, 0.02)[0]);
Josh P.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johnMoss, 03-04-2024, 01:53 PM
|
3 responses
46 views
0 likes
|
Last Post
by AndyM
Today, 06:13 PM
|
||
Started by algospoke, Today, 06:01 PM
|
0 responses
8 views
0 likes
|
Last Post
by algospoke
Today, 06:01 PM
|
||
Started by cre8able, Today, 05:53 PM
|
0 responses
8 views
0 likes
|
Last Post
by cre8able
Today, 05:53 PM
|
||
Started by Wessel, 03-23-2024, 02:37 PM
|
3 responses
24 views
0 likes
|
Last Post Today, 04:58 PM | ||
Started by martini, Yesterday, 04:45 PM
|
4 responses
32 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
Comment