ParabolicSAR Indicator – Display Current Day Only


Category:
0
0

Good Morning Pete,

I was wondering if you can help me modify the ParabolicSAR indicator on TOS to display the dots on the chart for the current day only. Thank you so much for helping the trading community and happy holidays!

Marked as spam
Posted by (Questions: 9, Answers: 4)
Asked on November 13, 2022 9:00 am
50 views
0
Private answer

You did not specifically state what time frame you want to use for this. So I am guessing this is meant to be used only on a daily time frame. However this solution will also work on a daily time frame:

input accelerationFactor = 0.02;
input accelerationLimit = 0.2;
def okToPlot = GetDay() == GetLastDay();
plot trailStop = if okToPlot then ParabolicSAR(accelerationFactor, accelerationLimit).parSAR else Double.NaN;
trailStop.SetPaintingStrategy(PaintingStrategy.POINTS);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on November 17, 2022 1:35 pm