Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // @author LazyBear
- //
- // If you use this code in its original/modified form, do drop me a note.
- //
- study("Rainbow Uptrend Binary Wave", shorttitle="RUW_LB", overlay=false)
- sma2=sma(close,2)
- dsma2=sma(sma2,2)
- tsma2=sma(dsma2,2)
- qsma2=sma(tsma2,2)
- psma2=sma(qsma2,2)
- ssma2=sma(psma2,2)
- s2sma2=sma(ssma2,2)
- osma2=sma(s2sma2,2)
- o2sma2=sma(osma2,2)
- desma2=sma(o2sma2,2)
- 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)
- hline(0.5)
- plot(bw, color=bw>0.5?green:red, linewidth=2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement