Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Alveol
- //@version=3
- study(title = "RSI + MFI + FISHER2", shorttitle="RSI + MFI + FISHER2", precision=0)
- source = hlc3
- length = input(14, minval=1),
- lower = input(20, minval=0, maxval=50, type=integer),
- upper = input(80, minval=50, maxval=100, type=integer)
- // DrawMFI_f=input(true, title="Draw MFI?", type=bool)
- HighlightBreaches=input(true, title="Highlight Oversold/Overbought?", type=bool)
- //RSI
- upper_rsi = input(70, minval=50, maxval=100, type=integer)
- middle_rsi = input(50, minval=30, maxval=70, type=integer)
- lower_rsi = input(30, minval=0, maxval=50, type=integer),
- length2 = input(14, minval=1), mult = input(2.0, minval=0.001, maxval=50)
- rsi_s = rsi(source, length2)
- plot(rsi_s, "RSI", color=#6A1B9A, linewidth=2, transp=0)
- top_rsi = hline(upper_rsi, color=color(purple,100), linewidth=1, editable=false)
- bottom_rsi = hline(lower_rsi, color=color(purple,100), linewidth=1, editable=false)
- fill(top_rsi, bottom_rsi, color=#7E57C2)
- // MFI
- upper_s = sum(volume * (change(source) <= 0 ? 0 : source), length)
- lower_s = sum(volume * (change(source) >= 0 ? 0 : source), length)
- mf = rsi(upper_s, lower_s)
- mfp = plot(mf, "MFI-ParaAkısı", color=#82E71C, linewidth=2, transp=0)
- top = hline(upper, color=#787B86, linewidth=1, editable=false)
- bottom = hline(lower, color=#787B86, linewidth=1, editable=false)
- hline(30, color=#000000, editable=false)
- hline(70, color=#000000, editable=false)
- //FISHER
- length1 = input(5, minval=1), smoothK = input(3, minval=1), smoothD = input(3, minval=1)
- k = ema(stoch(close, high, low, length1), smoothK)
- d = ema(k, smoothD)
- plot(k, color=#2962FF, linewidth=1, title="Fisher1", transp=0)
- plot(d, color=#F44336, linewidth=1, title="Fisher2", transp=0)
- h0 = hline(80, color=#000000, linewidth=1, title="Fisher Ust Band")
- h1 = hline(20, color=#000000, linewidth=1, title="Fisher Alt Band")
- fill(h0, h1, color=#FFFFFF, transp=90, title="Fisher Background")
- plot(cross(d, k) ? d : na,color=black, style = circles, linewidth=2, title="Fisher Sinyal")
- OutputSignal = k >= d ? 0 : 1
Advertisement
Add Comment
Please, Sign In to add comment