Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=4
- study('WM', overlay=true)
- sma10_m = security(syminfo.tickerid, '1M', sma(close, 10))
- plot(sma10_m,title='10 M',style=plot.style_circles, linewidth=2, color=color.red, show_last=1, offset=8, trackprice=true)
- plotshape(sma10_m, style=shape.diamond, location=location.absolute, show_last=1, color=color.red, transp=0, text='10 M', offset=8)
- ema21_w = security(syminfo.tickerid, '1W', ema(close, 21))
- plot(ema21_w,title='21 W',style=plot.style_circles, linewidth=2, color=color.yellow, show_last=1, offset=8, trackprice=true)
- plotshape(ema21_w, style=shape.diamond, location=location.absolute, show_last=1, color=color.yellow, transp=0, text='21 W', offset=8)
- ema21_m = security(syminfo.tickerid, '1M', ema(close, 21))
- plot(ema21_m,title='21 M',style=plot.style_circles, linewidth=2, color=color.yellow, show_last=1, offset=8, trackprice=true)
- plotshape(ema21_m, style=shape.diamond, location=location.absolute, show_last=1, color=color.yellow, transp=0, text='21 M', offset=8)
- ema50_w = security(syminfo.tickerid, '1W', ema(close, 50))
- plot(ema50_w,title='50 W',style=plot.style_circles, linewidth=2, color=color.lime, show_last=1, offset=8, trackprice=true)
- plotshape(ema50_w, style=shape.diamond, location=location.absolute, show_last=1, color=color.lime, transp=0, text='50 W', offset=8)
- ema89_w = security(syminfo.tickerid, '1W', ema(close, 89))
- plot(ema89_w,title='89 W',style=plot.style_circles, linewidth=2, color=color.white, show_last=1, offset=8, trackprice=true)
- plotshape(ema89_w, style=shape.diamond, location=location.absolute, show_last=1, color=color.white, transp=0, text='89 W', offset=8)
- sma200_m = security(syminfo.tickerid, '1W', sma(close, 200))
- plot(sma200_m,title='200 W',style=plot.style_circles, linewidth=2, color=color.red, show_last=1, offset=8, trackprice=true)
- plotshape(sma200_m, style=shape.diamond, location=location.absolute, show_last=1, color=color.red, transp=0, text='200 W', offset=8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement