RicardoSantos

[RS]RSI Inverse Fisher Transform V0

Remove from Favorite Scripts Add to Favorite Scripts
study(title='[RS]RSI Inverse Fisher Transform V0', shorttitle='iF', overlay=false)
src = input(title='Source', type=source, defval=close)
window01 = input(10)
window02 = input(5)
e = input(2.71)

f_fisher(_src, _window)=>
    _h = highest(_src, _window)
    _l = lowest(_src, _window)
    _value0 = .66 * ((_src - _l) / max(_h - _l, .001) - .5) + .67 * nz(_value0[1])
    _value1 = _value0 > .99 ? .999 : _value0 < -.99 ? -.999 : _value0
    _fisher = .5 * log((1 + _value1) / max(1 - _value1, .001)) + .5 * nz(_fisher[1])

f_inverse_fisher(_src, _e) => (pow(_e, 2*_src) - 1)/( pow(_e, 2*_src) + 1)

rsi = (ema(rsi(src, window01), window02) - 50) * 0.1
fish1 = f_inverse_fisher(rsi, e)

hline(1, color=black)
hline(0.5, color=color(maroon, 0))
hline(0, color=black)
hline(-0.5, color=color(green, 0))
hline(-1, color=black)

plot(series=fish1, title='F', style=area, color=color(black, 50))

Comments

Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out