ParabolicSAR scan from a short to long


Category:
0
0

Hello Pete

Could you help me do a Parabolic SAR scan on a daily time frame… I’m trying to scan for stocks that the SAR have gone from long/short or short/long on the SAR…Trying to catch the stocks o the first bar…

 

Thanks

Marked as spam
Posted by (Questions: 49, Answers: 42)
Asked on October 21, 2019 3:57 pm
388 views
0
Private answer

You can use the code you posted in a previous request:

https://www.hahn-tech.com/ans/alert-for-sar-crossover/

Simply remove all the lines after the plot signal statement. Then modify the CrossingType as needed.

Alerts and Scans are nearly identical. Both are generated by a true/false statement and can be used interchangeably. You just need to resolve the code down to a single plot statement that evaluate true/false and remove any style statements that set the default attributes of the plot.

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on October 21, 2019 5:22 pm
0
Is this correct..Its come back with no results input accelerationFactor = 0.02; input accelerationLimit = 0.2; input crossingType = {default Bearish, Bullish}; def sar = ParabolicSAR(accelerationFactor=accelerationFactor, accelerationLimit=accelerationLimit); plot signal = crosses(sar, close, CrossingType == CrossingType.Bullish);
( at October 21, 2019 5:32 pm)
0
I just copy/pasted that code you included in your comment and it works perfectly.
( at October 21, 2019 7:09 pm)