RicardoSantos

Function Fisher Transform V0

229 0 15
Adapted from the builtin code:
easy to use fisher function.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Function Fisher Transform V0", shorttitle="F")
window01 = input(21)
window02 = input(55)
window03 = input(120)

f_fisher(_window)=>
    _h = highest(hl2, _window)
    _l = lowest(hl2, _window)
    _value0 = .66 * ((hl2 - _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])

fish1 = f_fisher(window01)
fish2 = f_fisher(window02)
fish3 = f_fisher(window03)

hline(1.5, color=black)
hline(0, color=black)
hline(-1.5, color=black)
plot(fish1, color=blue, title="Fast")
plot(fish2, color=black, title="Normal")
plot(fish3, color=red, title="Slow")
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out