SHARE
TWEET

Untitled

a guest Sep 12th, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. study(title="EQ", shorttitle="EQ", overlay=true, scale=scale.right)
  2.  
  3. mop = security(tickerid, "M", open)
  4. wop = security(tickerid, "W", open)
  5. dop = security(tickerid, "D", open)
  6. meq = security(tickerid, "M", (high[1]+low[1])/2)
  7. weq = security(tickerid, "W", (high+low)/2)
  8. deq = security(tickerid, "D", (high[1]+low[1])/2)
  9. ma = security(tickerid, "D", ema(close, 13))
  10.  
  11. meqcolor=meq != meq[1] ? na :  red
  12. weqcolor=weq != weq[1] ? na : yellow
  13. deqcolor=deq != deq[1] ? na : lime
  14. mopcolor=mop != mop[1] ? na : red
  15. wopcolor=wop != wop[1] ? na : yellow
  16. dopcolor=dop != dop[1] ? na : lime
  17.  
  18. plot(meq, offset=5, color=meqcolor, style=dashed, title="Monthly EQ")
  19. plot(weq, color=yellow, style=dashed, title="Weekly EQ")
  20. plot(deq, offset=5, color=deqcolor, style=dashed, title="Daily EQ")
  21. plot(mop, offset=5, color=mopcolor, style=dashed, title="Monthly Open")
  22. plot(wop, offset=5, color=wopcolor, style=dashed, title="Weekly Open")
  23. plot(dop, offset=5, color=dopcolor, style=dashed, title="Daily Open")
  24. plot(ma, color=orange, title="Daily 13ema")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top