just one of the 12 indicators used by the strobot trading robot
study(title="Strobot Buy sell Zonesh", shorttitle="strobot", overlay=true) src = close len = 25 out = sma(src, len) // plot(out, color=blue, title="MA") p1=plot(out-0.0035) p2=plot(out-0.0015) p3=plot(out+0.0035) p4=plot(out+0.0015) fill(p1,p2, color=green) fill(p3,p4, color=red) len2 = 100 outf = sma(src, len2) p5=plot(outf-0.0005) p6=plot(outf+0.0005) fill(p5,p6,color=white)