lancaustudy("Serangkai", overlay=true)
msr = input(title="MSR" , type=input.bool, defval=false)
milo = input(title="MILO", type=input.bool, defval=false)
m3 = input(title="3M", type=input.bool, defval=true)
sma10 = sma(close,10)
sma20 = sma(close,20)
sma50 = sma(close,50)
sma200 = sma(close,200)
msrbar = open= open and sma10 <= close and msr==true
barcolor(color=msrbar ? color.blue : na, show_last=3)
plot(msr ? sma10 : na, title="MA10", color=color.blue, transp=0, linewidth=2)
plot(milo ? sma50 : na, title="MA50_milo", color=color.orange, transp=0, linewidth=2)
plot(m3 ? sma50 : na, title="MA50", color=color.orange, transp=0, linewidth=2)
plot(m3 ? sma20 : na, title="MA20", color=color.green, transp=0, linewidth=2)
plot(m3 ? sma200 : na, title="MA200", color=color.red, transp=0, linewidth=2)
// ichimoku ///