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 algospoke, 04-17-2024, 06:40 PM
|
3 responses
26 views
0 likes
|
Last Post Today, 07:41 AM | ||
Started by bmartz, 03-12-2024, 06:12 AM
|
3 responses
27 views
0 likes
|
Last Post Today, 07:38 AM | ||
Started by Aviram Y, Today, 05:29 AM
|
2 responses
8 views
0 likes
|
Last Post
by Aviram Y
Today, 07:38 AM
|
||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
1 response
8 views
0 likes
|
Last Post Today, 07:30 AM | ||
Started by cls71, Today, 04:45 AM
|
1 response
7 views
0 likes
|
Last Post Today, 07:25 AM |
Comment