// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// pyro88
//@version=4
study("路昭MA+EMA",overlay=true)
e0=sma(close,10)
c0=ema(close,10)
e1=sma(close,30)
c1=ema(close,30)
e2=sma(close,60)
c2=ema(close,60)
e3=sma(close,90)
c3=ema(close,90)
e4=sma(close,120)
c4=ema(close,120)
e5=sma(close,256)
c5=ema(close,256)
plot(e0,"ma10",color=color.white,linewidth=1)
plot(c0,"ema10",color=#474747)
plot(e1,"ma30",color=color.yellow,linewidth=1)
plot(c1,"ema30",color=#6a621a)
plot(e2,"ma60",color=color.green,linewidth=1)
plot(c2,"ema60",color=#3c5b37)
plot(e3,"ma90",color=color.red,linewidth=1)
plot(c3,"ema90",color=#583f3b)
plot(e4,"ma120",color=color.blue,linewidth=1)
plot(c4,"ema120",color=#38525e)
plot(e5,"ma256",color=#855d4a,linewidth=1)
plot(c5,"ema256",color=#443128)
//DKJ
cond=barstate.islast
moveBar=input(0)
x10=input(10)+moveBar
x30=input(30)+moveBar
x60=input(60)+moveBar
x90=input(90)+moveBar
x120=input(120)+moveBar
plot(cond?low[30]:na,color=#ffd615,linewidth=5,offset=-x30,style=plot.style_circles,transp=0)
plot(cond?low[60]:na,color=#ffd615,linewidth=5,offset=-x60,style=plot.style_circles,transp=0)
plot(cond?low[90]:na,color=#ffd615,linewidth=5,offset=-x90,style=plot.style_circles,transp=0)
//plot(cond?low[120]:na,color=#ffd615,linewidth=5,offset=-x120,style=plot.style_circles,transp=0)