xmd79

RSI + MFI + FISHER2

Oct 9th, 2021
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. //Alveol
  2. //@version=3
  3. study(title = "RSI + MFI + FISHER2", shorttitle="RSI + MFI + FISHER2", precision=0)
  4. source = hlc3
  5. length = input(14, minval=1),
  6. lower = input(20, minval=0, maxval=50, type=integer),
  7. upper = input(80, minval=50, maxval=100, type=integer)
  8.  
  9. // DrawMFI_f=input(true, title="Draw MFI?", type=bool)
  10. HighlightBreaches=input(true, title="Highlight Oversold/Overbought?", type=bool)
  11.  
  12. //RSI
  13. upper_rsi = input(70, minval=50, maxval=100, type=integer)
  14. middle_rsi = input(50, minval=30, maxval=70, type=integer)
  15. lower_rsi = input(30, minval=0, maxval=50, type=integer),
  16. length2 = input(14, minval=1), mult = input(2.0, minval=0.001, maxval=50)
  17. rsi_s = rsi(source, length2)
  18. plot(rsi_s, "RSI", color=#6A1B9A, linewidth=2, transp=0)
  19. top_rsi = hline(upper_rsi, color=color(purple,100), linewidth=1, editable=false)
  20. bottom_rsi = hline(lower_rsi, color=color(purple,100), linewidth=1, editable=false)
  21. fill(top_rsi, bottom_rsi, color=#7E57C2)
  22.  
  23. // MFI
  24. upper_s = sum(volume * (change(source) <= 0 ? 0 : source), length)
  25. lower_s = sum(volume * (change(source) >= 0 ? 0 : source), length)
  26. mf = rsi(upper_s, lower_s)
  27. mfp = plot(mf, "MFI-ParaAkısı", color=#82E71C, linewidth=2, transp=0)
  28. top = hline(upper, color=#787B86, linewidth=1, editable=false)
  29. bottom = hline(lower, color=#787B86, linewidth=1, editable=false)
  30. hline(30, color=#000000, editable=false)
  31. hline(70, color=#000000, editable=false)
  32.  
  33. //FISHER
  34. length1 = input(5, minval=1), smoothK = input(3, minval=1), smoothD = input(3, minval=1)
  35. k = ema(stoch(close, high, low, length1), smoothK)
  36. d = ema(k, smoothD)
  37. plot(k, color=#2962FF, linewidth=1, title="Fisher1", transp=0)
  38. plot(d, color=#F44336, linewidth=1, title="Fisher2", transp=0)
  39. h0 = hline(80, color=#000000, linewidth=1, title="Fisher Ust Band")
  40. h1 = hline(20, color=#000000, linewidth=1, title="Fisher Alt Band")
  41. fill(h0, h1, color=#FFFFFF, transp=90, title="Fisher Background")
  42.  
  43. plot(cross(d, k) ? d : na,color=black, style = circles, linewidth=2, title="Fisher Sinyal")
  44. OutputSignal = k >= d ? 0 : 1
Advertisement
Add Comment
Please, Sign In to add comment