SHARE
TWEET

GM3_1

lazybeartv Mar 24th, 2015 258 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. study(title="Godmode3.1", shorttitle="GODMODE3_1", overlay=false)
  2.  
  3. n1 = input(9, "Channel Length")
  4. n2 = input(26, "Average Length")
  5. n3 = input(13, "Short length")
  6. multi = input(type=bool, defval=false, title="Multi-exchange?")
  7. tf=input("15")
  8. src0_=input(hlc3, title="Source")
  9. src0 = security(tickerid, tf, src0_ )
  10. src1 = security("BITFINEX:BTCUSD", tf, src0_), src2 = security("BTCE:BTCUSD", tf, src0_)
  11. src3 = security("OKCOIN:BTCUSD", tf, src0_), src4 = security("HUOBI:BTCCNY", tf, src0_)
  12.  
  13. tci(src) => ema((src - ema(src, n1)) / (0.025 * ema(abs(src - ema(src, n1)), n1)), n2)+50
  14. mf(src) => rsi(sum(volume * (change(src) <= 0 ? 0 : src), n3), sum(volume * (change(src) >= 0 ? 0 : src), n3))
  15. willy(src) => 60 * (src - highest(src, n2)) / (highest(src, n2) - lowest(src, n2)) + 80
  16. csi(src) => avg(rsi(src, n3),tsi(src0,n1,n2)*50+50)
  17.  
  18. godmode(src) => avg(tci(src),csi(src),mf(src),willy(src))
  19. tradition(src) => avg(tci(src),mf(src),rsi(src, n3))
  20.  
  21. wt1 = multi?avg(godmode(src0),godmode(src1),godmode(src2),godmode(src3),godmode(src4)):tradition(src0)
  22. wt2 = sma(wt1,6)
  23. extended = wt2<20 ? wt2+5 : wt2>80 ? wt2-5 : na
  24.  
  25. plot(wt1, color=green)
  26. plot(wt2, color=red)
  27. plot(ema((wt1-wt2)*2+50,n3), color=aqua, style=area, transp=80, histbase=50)
  28. plot(extended, title="Caution!", color=yellow, style=circles, linewidth=2)
  29.  
  30. hline(80)
  31. hline(20)
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