Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Question about implementing Parabolic SAR as a profit target
Collapse
X
-
Question about implementing Parabolic SAR as a profit target
I’ve got a quick question. I’m working on a strategy and I need to take profits when the PSAR switches sides but I can’t get it to work with strategy builder. I’ve looked at the code, but I’m a bit lost. I would appreciate any help I can get.Tags: None
-
Hello zachdasher,
Thanks for your post and welcome to the NinjaTrader Forums!
The ParabolicSar, with standard settings, will either be greater than the High of the candle or Less than the low of the candle when it switches. You can compare the indicators plot value to the High or Low of the current bar compared to the previous bar. For example:
If the previous bar shows the ParabolicSar is greater than the High of the previous bar and the current bar shows the ParabolicSar is less than the Low of the current bar then the ParabolicSar has switch sides. If the previous bar shows the ParabolicSar is less than the Low of the previous bar and the current bar shows the ParabolicSar is greater than the High of the current bar then the ParabolicSar has switch sides.
If that doesn't resolve, please post screenshots of your strategy sets that show your exit conditions.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
79 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment