PSAR = SAR[x,y,z] IF close crosses under PSAR then a= PSAR endif If close crosses over PSAR then b = PSAR endif if close