Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. //@version=4
  2. study('WM', overlay=true)
  3.  
  4. sma10_m = security(syminfo.tickerid, '1M', sma(close, 10))
  5. plot(sma10_m,title='10 M',style=plot.style_circles, linewidth=2, color=color.red, show_last=1, offset=8, trackprice=true)
  6. plotshape(sma10_m, style=shape.diamond, location=location.absolute, show_last=1, color=color.red, transp=0, text='10 M', offset=8)
  7.  
  8. ema21_w = security(syminfo.tickerid, '1W', ema(close, 21))
  9. plot(ema21_w,title='21 W',style=plot.style_circles, linewidth=2, color=color.yellow, show_last=1, offset=8, trackprice=true)
  10. plotshape(ema21_w, style=shape.diamond, location=location.absolute, show_last=1, color=color.yellow, transp=0, text='21 W', offset=8)
  11.  
  12. ema21_m = security(syminfo.tickerid, '1M', ema(close, 21))
  13. plot(ema21_m,title='21 M',style=plot.style_circles, linewidth=2, color=color.yellow, show_last=1, offset=8, trackprice=true)
  14. plotshape(ema21_m, style=shape.diamond, location=location.absolute, show_last=1, color=color.yellow, transp=0, text='21 M', offset=8)
  15.  
  16. ema50_w = security(syminfo.tickerid, '1W', ema(close, 50))
  17. plot(ema50_w,title='50 W',style=plot.style_circles, linewidth=2, color=color.lime, show_last=1, offset=8, trackprice=true)
  18. plotshape(ema50_w, style=shape.diamond, location=location.absolute, show_last=1, color=color.lime, transp=0, text='50 W', offset=8)
  19.  
  20. ema89_w = security(syminfo.tickerid, '1W', ema(close, 89))
  21. plot(ema89_w,title='89 W',style=plot.style_circles, linewidth=2, color=color.white, show_last=1, offset=8, trackprice=true)
  22. plotshape(ema89_w, style=shape.diamond, location=location.absolute, show_last=1, color=color.white, transp=0, text='89 W', offset=8)
  23.  
  24. sma200_m = security(syminfo.tickerid, '1W', sma(close, 200))
  25. plot(sma200_m,title='200 W',style=plot.style_circles, linewidth=2, color=color.red, show_last=1, offset=8, trackprice=true)
  26. 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