PHP Code:
//@version=5

a1=ta.sar(0.,0.043,0.34)
a2=ta.sar(0.1,0.,0.34)
a3=ta.sar(0.1,0.01,0.5)
a4=ta.sar(0.01,0.,0.1)
a5=ta.sar(0.,0.04,0.4)
a6=ta.sar(0.,0.03,0.3)
a7=ta.sar(0.,0.02,0.2)
a8=ta.sar(0.,0.01,0.1)


//plot(a1, title='6', style=plot.style_stepline, color=renk ? a1 > close ? color.rgb(247, 3, 3, 00) : color.rgb(24, 250, 4, 00) : color.silver, linewidth=1)
//plot(a2, title='4', style=plot.style_stepline, color=renk ? a2 > close ? color.rgb(247, 3, 3, 00) : color.rgb(24, 250, 4, 00) : color.silver, linewidth=1)
plot(a3title='1'style=plot.style_steplinecolor=renk a3 close color.rgb(24733100) : color.rgb(24250400) : color.silverlinewidth=1)
//plot(a4, title='7', style=plot.style_stepline, color=renk ? a4 > close ? color.rgb(247, 3, 3, 00) : color.rgb(24, 250, 4, 00) : color.silver, linewidth=1)
plot(a5title='2'style=plot.style_steplinecolor=renk a5 close color.rgb(24733100) : color.rgb(24250400) : color.silverlinewidth=1)
//plot(a6, title='2', style=plot.style_stepline, color=renk ? a6 > close ? color.rgb(247, 3, 3, 00) : color.rgb(24, 250, 4, 00) : color.silver, linewidth=1)
plot(a7title='3'style=plot.style_steplinecolor=renk a7 close color.rgb(24733100) : color.rgb(24250400) : color.silverlinewidth=1)
//plot(a8, title='0', style=plot.style_stepline, color=renk ? a8 > close ? color.rgb(247, 3, 3, 00) : color.rgb(24, 250, 4, 00) : color.silver, linewidth=1)