//----------------------------------------//
//PRC_Parabolic SAR Zone
//version = 0
//09.10.24
//Iván González @ www.prorealcode.com
//Sharing ProRealTime knowledge
//----------------------------------------//
//-------------Inputs---------------------//
//----------------------------------------//
start=0.02
inc=0.02
maxvalue=0.02
width=1
//----------------------------------------//
//-------Average True Range---------------//
//----------------------------------------//
atrs = averagetruerange[100](close)*width
//----------------------------------------//
//-------Parabolic SAR 1------------------//
//----------------------------------------//
psar1 = SAR[start,inc,maxvalue]
//----------------------------------------//
//-------Parabolic Zone-------------------//
//----------------------------------------//
if close > psar1 then
psarzone = psar1+atrs
red=41
green=98
blue=255
elsif close < psar1 then
psarzone = psar1-atrs
red=233
green=30
blue=99
endif
colorbetween(psar1,psarzone,red,green,blue,35)
//----------------------------------------//
//-------Parabolic SAR 2------------------//
//----------------------------------------//
psar2 = sar[start/2,inc/2,maxvalue/2]
if close>psar2 then
red2=41
green2=98
blue2=255
else
red2=233
green2=30
blue2=99
endif
//----------------------------------------//
return psar1 as "PSAR 1" coloured(red,green,blue) style(point,2), psar2 as "PSAR 2" coloured(red2,green2,blue2), psarzone as "Zone line" coloured(red,green,blue) style(point,2)