RicardoSantos

[RS]HL Swing Convergence V0

1124 views
130
1124 0
EXPERIMENTAL: swing directional bias convergence.
Remove from Favorite Scripts Add to Favorite Scripts
study("[RS]HL Swing Convergence V0", overlay=true)
length = input(4)
sh = sma(high, length)
sl = sma(low, length)
hh = highest(sh, length)
ll = lowest(sl, length)

swingH = high > hh[1]  or low > nz(swingL[1]) ? sl : na
swingL = low < ll[1] or high < nz(swingH[1]) ? sh : na

devH = swingH - stdev(sh, length)
devL = swingL + stdev(sl, length)

plot(swingH, style=linebr, color=green, linewidth=3)
plot(swingL, style=linebr, color=maroon, linewidth=3)

plot(devH, style=linebr, color=green, linewidth=1)
plot(devL, style=linebr, color=maroon, linewidth=1)

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