RicardoSantos

[RS]MTF Donchian Range Wave Sync V0

480 0 34
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 -_-''

edit: colors arent correct should be inverted, gives better sense of whats happening.
Remove from Favorite Scripts Add to Favorite Scripts
study("[RS]MTF Donchian Range Wave Sync V0")
wavesynth(_length)=>
    _hh = highest(_length)
    _ll = lowest(_length)
    _range = _hh - _ll
    _value = hl2 - _ll
    _rate = _value/_range

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

os_value = 0.25
ob_value = 0.75

hline(0, color=black)
plot(wave0, style=circles, color=wave0 < os_value ? green : wave0 > ob_value ? maroon : gray, linewidth=2)
hline(1, color=silver)
plot(1+wave1, style=circles, color=wave1 < os_value ? green : wave1 > ob_value ? maroon : gray, linewidth=2)
hline(2, color=silver)
plot(2+wave2, style=circles, color=wave2 < os_value ? green : wave2 > ob_value ? maroon : gray, linewidth=2)
hline(3, color=silver)
plot(3+wave3, style=circles, color=wave3 < os_value ? green : wave3 > ob_value ? maroon : gray, linewidth=2)
hline(4, color=silver)
plot(4+wave4, style=circles, color=wave4 < os_value ? green : wave4 > ob_value ? maroon : gray, linewidth=2)
hline(5, color=silver)
plot(5+wave5, style=circles, color=wave5 < os_value ? green : wave5 > ob_value ? maroon : gray, linewidth=2)
hline(6, color=black)
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体
台灣
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out