Advertisement
Guest User

Rainbow Binary Wave [LazyBear]

a guest
Aug 28th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. //
  2. // @author LazyBear
  3. //
  4. // If you use this code in its original/modified form, do drop me a note.
  5. //
  6. study("Rainbow Uptrend Binary Wave", shorttitle="RUW_LB", overlay=false)
  7. sma2=sma(close,2)
  8. dsma2=sma(sma2,2)
  9. tsma2=sma(dsma2,2)
  10. qsma2=sma(tsma2,2)
  11. psma2=sma(qsma2,2)
  12. ssma2=sma(psma2,2)
  13. s2sma2=sma(ssma2,2)
  14. osma2=sma(s2sma2,2)
  15. o2sma2=sma(osma2,2)
  16. desma2=sma(o2sma2,2)
  17. bw= (sma2>dsma2) and (dsma2> tsma2) and (tsma2>qsma2) and (qsma2>psma2) and (psma2>ssma2) and (ssma2>s2sma2) and (s2sma2>osma2) and (osma2>o2sma2) and (o2sma2>desma2)
  18. hline(0.5)
  19. plot(bw, color=bw>0.5?green:red, linewidth=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement