vdubus

VDUB_Rejection_Spike_V3

2116 2 458
VDUB_Rejection_Spike_V3
Re added support / resistance levels from _v1
Additional Donchain channel modified RS             outer support / resistance level
Added trend colour change EMA
Removed Channel walls

* Still need to work on Buy & sell entries signals
Remove from Favorite Scripts Add to Favorite Scripts
study("VDUB_Rejection_Spike_V3", overlay=true, shorttitle="VDUB_Rejection_Spike_V3")
//====================Candle Body channel=========================
len = input(13, minval=1, title="EMA 1")
src = input(close, title="Source")
out = ema(src, len)
plot(out, title="EMA 1", color=white, style=line, linewidth=1)
last8h = highest(close, 13)
lastl8 = lowest(close, 13)
bearish = cross(close,out) == 1 and close[1] > close 
bullish = cross(close,out) == 1 and close[1] < close 
channel2=input(false, title="Bar Channel On/Off")
ul2=plot(channel2?last8h:last8h==nz(last8h[1])?last8h:na, color=black, linewidth=1, style=linebr, title="Candle body resistance level top", offset=0)
ll2=plot(channel2?lastl8:lastl8==nz(lastl8[1])?lastl8:na, color=black, linewidth=1, style=linebr, title="Candle body resistance level bottom", offset=0)
//===============================================================//
//-------------LB---------------------------
channel=input(false, title="Resistance Channel 2 On/Off")
up = close<nz(up[1]) and close>down[1] ? nz(up[1]) : high
down = close<nz(up[1]) and close>down[1] ? nz(down[1]) : low
ul=plot(channel?up:up==nz(up[1])?up:na, color=red, linewidth=1, style=linebr, title="Resistance Level top", offset=0)
ll=plot(channel?down:down==nz(down[1])?down:na, color=green, linewidth=1, style=linebr, title="Resistance level bottom", offset=0)
// Moddified [RS]Support and Resistance V0
RST = input(title='Support / Resistance length:', type=integer, defval=21)
RSTT = valuewhen(high >= highest(high, RST), high, 0)
RSTB = valuewhen(low <= lowest(low, RST), low, 0)
RT2 = plot(RSTT, color=RSTT != RSTT[1] ? na : red, linewidth=1, offset=0)
RB2 = plot(RSTB, color=RSTB != RSTB[1] ? na : green, linewidth=1, offset=0)
//===============================================================//
//-----Moddified [RS]Fractals V2
length = 55  
filterFractals = input(true, title=" Signal filter On/Off")
ftop = high[2] > high[3] and high[2] > high[4] and high[2] > high[1] and high[2] > high[0]
fbot = low[2] < low[3] and low[2] < low[4] and low[2] < low[1] and low[1] < low[0]
topf = ftop ? high[2] >= highest(high, length) ? true : false : false
botf = fbot ? low[2] <= lowest(low, length) ? true : false : false
filteredtopf = filterFractals ? topf : ftop
filteredbotf = filterFractals ? botf : fbot
plotshape(filteredtopf, style=shape.triangledown, location=location.abovebar, color=maroon, text="***SELL***", offset=-1)
plotshape(filteredbotf, style=shape.triangleup, location=location.belowbar, color=green,text="***BUY***", offset=-1)
//--------------------Two colour ema-------------------------------------------------////
src0 = close, len0 = input(13, minval=1, title="EMA 2")
ema0 = ema(src0, len0)
plot_color = ema0 >= ema0[2]  ? lime: ema0 < ema0[2] ? red : na
plot(ema0, title="EMA 2", style=line, linewidth=1, color = plot_color)
//=======================================================================================//

Nice job, Thanks for letting us see this develop over several generations.
Reply
vdubus PRO Alphaoptions
Thank, ye it a very powerful ,strategy I use it often.
I see you working your way through all my indicators but tgis has to be the ultimate. There was way to much configuration so RS coded this up for me. Its the same as the Trend master wall but as he posted the script he gets the browny points
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
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 Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out