//PRC_FlatTrend | indicator
//26.03.2018
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
PADX=DIplus[14](close)
NADX=DIminus[14](close)
PSAR = SAR[0.02,0.02,0.2]
ExtMapBuffer1=0
ExtMapBuffer2=0
ExtMapBuffer3=0
ExtMapBuffer4=0
if (Psar < Close AND PADX > NADX) then
ExtMapBuffer2=1
R=50
G=205
B=50
DrawCandle(Open,High,Low,Close) Coloured(R,G,B)
endif
if (Psar < Close AND NADX > PADX) then
ExtMapBuffer4=1
R=144
G=238
B=144
DrawCandle(Open,High,Low,Close) Coloured(R,G,B)
endif
if (Psar > Close AND NADX > PADX) then
ExtMapBuffer1=1
R=255
G=0
B=0
DrawCandle(Open,High,Low,Close) Coloured(R,G,B)
endif
if (Psar > Close AND PADX > NADX) then
ExtMapBuffer3=1
R=250
G=128
B=114
DrawCandle(Open,High,Low,Close) Coloured(R,G,B)
endif
return