Return value of the SAR parabolic indicator.
SAR points are calculated from both prices and time.
The parameters are the initial acceleration factor (typically 0.02), the addition factor (typ. 0.02) and the acceleration factor limit (typ. 0.2).
‘Stop And Reverse’ points are useful to detect trends as they follow the price direction.
SAR direction is always the same during a trend. The trend continues while the points stay above or below the prices. When prices penetrate a ‘stop and reverse’ point, a signal is given for you to liquidate your current position and maybe take the opposite position.
i1 = SAR[0.02,0.02,0.2]
if(close<i1 AND close>i1) THEN
signal = 1
signal = 0