RicardoSantos

[RS]MTF Donchian Range Wave Sync V1

EXPERIMENTAL: using Donchian channels with diferent lengths to extract multiple time frame's to extract price in range rates. the title may be a tiny bit misleading tho -_-''
update: reversed colors, joined the line zone space to make the waves visually stand out more.
Script open-source

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?
study("[RS]MTF Donchian Range Wave Sync V1")
wavesynth(_length)=>
    _hh = highest(_length)
    _ll = lowest(_length)
    _range = _hh - _ll
    _value = hl2 - _ll
    _rate = _value/_range

smooth = input(4)
wave0 = ema(ema(wavesynth(8), smooth), smooth)
wave1 = ema(ema(wavesynth(21), smooth), smooth)
wave2 = ema(ema(wavesynth(55), smooth), smooth)
wave3 = ema(ema(wavesynth(144), smooth), smooth)
wave4 = ema(ema(wavesynth(377), smooth), smooth)
wave5 = ema(ema(wavesynth(987), smooth), smooth)

os_value = 0.25
ob_value = 0.75

hline(0, color=black)
plot(0.0+wave0, style=line, color=wave0 < os_value ? maroon : wave0 > ob_value ? green : gray, linewidth=2)
plot(0.5+wave1, style=line, color=wave1 < os_value ? maroon : wave1 > ob_value ? green : gray, linewidth=2)
plot(1.0+wave2, style=line, color=wave2 < os_value ? maroon : wave2 > ob_value ? green : gray, linewidth=3)
plot(1.5+wave3, style=line, color=wave3 < os_value ? maroon : wave3 > ob_value ? green : gray, linewidth=3)
plot(2.0+wave4, style=line, color=wave4 < os_value ? maroon : wave4 > ob_value ? green : gray, linewidth=4)
plot(2.5+wave5, style=line, color=wave5 < os_value ? maroon : wave5 > ob_value ? green : gray, linewidth=4)
hline(3.5, color=black)