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 jonelusiya, Today, 01:36 AM
|
0 responses
0 views
0 likes
|
Last Post
![]()
by jonelusiya
Today, 01:36 AM
|
||
Started by Stevenastleberry, Today, 01:13 AM
|
0 responses
5 views
0 likes
|
Last Post
![]() |
||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
95 responses
1,129 views
0 likes
|
Last Post
![]()
by sidlercom80
Today, 12:44 AM
|
||
Started by kevinenergy, 02-17-2023, 12:42 PM
|
48 responses
1,205 views
1 like
|
Last Post
![]()
by TradeSaber
Today, 12:44 AM
|
||
Started by FatCanary, 06-11-2021, 09:11 AM
|
17 responses
1,043 views
0 likes
|
Last Post
![]()
by Laurentvan
Yesterday, 11:43 PM
|
Comment