New Text Document
New Text Document
me/eyops
//...................../´¯¯/)
//...................,/¯.../
//.................../..../
//.............../´¯/'..'/´¯¯`·¸
//.........../'/.../..../....../¨¯\
//..........('(....´...´... ¯~/'..')
//...........\..............'...../
//............\....\.........._.·´
//.............\..............(
//..............\..............\
//----
//---------
// Telegram Join Us >> https://t.me/eyops
//-----------------------------------------
====================================================-------------------------------
\\
//
\\
//@version=5
indicator("I AM THE BOSS", shorttitle='I AM THE BOSS', overlay=true)
y1 = low - (ta.atr(30) * 2)
y2 = high + (ta.atr(30) * 2)
lvlLines = (true)
linesStyle = ("SOLID")
lvlDecimals = (4)
lvlDistance = (1)
atrLen = (14)
countBull = ta.barssince(bull)
countBear = ta.barssince(bear)
stop_y = lastTrade(atrStop)
stop = levelsl ? label.new(time, close, "Stop Loss | " + str.tostring(stop_y,
decimals), xloc.bar_time, yloc.price, color.rgb(255,82,83,0),
label.style_label_left, color.new(color.white, 10), size.small) : na
label.set_x(stop, label.get_x(stop) + math.round(ta.change(time) * lvlDistance))
label.set_y(stop, stop_y)
label.delete(stop[1])
tp1sd = ta.crossunder(close, tp1_y) and not bull and not bear and close<supertrend
tp2sd = ta.crossunder(close, tp15_y) and not bull and not bear and close<supertrend
tp3sd = ta.crossunder(close, tp2_y) and not bull and not bear and close<supertrend
// ----------------------------------------- bands
----------------------------------- \\
useEma = true
int volBandsSen = 5
gray = volBands ? #787B86 : na, gray40 = volBands ? color.new(gray, 60) : na,
gray5 = volBands ? color.new(gray, 95) : na, gray20 = volBands ? color.new(gray,
80) : na
//
f_kc(src, len, mult) =>
float basis = useEma ? ta.ema(src, len) : ta.sma(src, len)
float span = useEma ? ta.ema(ta.tr, len) : ta.sma(ta.tr, len)
[basis + span * mult, basis - span * mult]
// set bull
mal_is_bull = (short > intm ? color.new(#00DBFF, 75) : color.new(#E93E63, 75))
// plot it
plot(mal ? long : na, color = mal_is_bull, linewidth=4)
s1_vis = true
i1_s1 = 'Conversion Line'
f_s1 = 'crossover'
i2_s1 = 'Base Line'
s2_vis = true
i1_s2 = 'Lead 1'
f_s2 = 'crossover'
i2_s2 = 'Lead 2'
s3_vis = true
s4_vis = true
conversionPeriods = 5
basePeriods = 2
laggingSpan2Periods = 5
displacement = 6
donchian(len) =>
math.avg(ta.lowest(len), ta.highest(len))
conversionLine = donchian(conversionPeriods)
baseLine = donchian(basePeriods)
leadLine1 = math.avg(conversionLine, baseLine)
leadLine2 = donchian(laggingSpan2Periods)
lead1 = leadLine1[displacement - 1]
lead2 = leadLine2[displacement - 1]
bool breakup = na
bool breakdn = na
crossup = ta.crossover(close, lead2)
green_candle = close > open
if lead2 > lead1 and green_candle
breakup := crossup
breakup
plotshape(enrev and breakup and s3_vis ? high : na, 'Signal3 (Break Up)',
shape.diamond, location.belowbar, color.new(#00DBFF, 68), size=size.tiny)
bgcolor(enrev and breakup and s3_vis ? color.new(#00DBFF, 95) : na, title='Break Up
Background', transp=90)
left = 50
right = 25
quick_right = 5// Used to try and detect a more recent significant swing.
src = close
Wilders_Period = RSI_Period * 2 - 1
longband = 0.0
shortband = 0.0
trend = 0
DeltaFastAtrRsi = dar
RSIndex = RsiMa
newshortband = RSIndex + DeltaFastAtrRsi
newlongband = RSIndex - DeltaFastAtrRsi
longband := RSIndex[1] > longband[1] and RSIndex > longband[1] ?
math.max(longband[1], newlongband) : newlongband
shortband := RSIndex[1] < shortband[1] and RSIndex < shortband[1] ?
math.min(shortband[1], newshortband) : newshortband
cross_1 = ta.cross(longband[1], RSIndex)
trend := ta.cross(RSIndex, shortband[1]) ? 1 : cross_1 ? -1 : nz(trend[1], 1)
FastAtrRsiTL = trend == 1 ? longband : shortband
Exlong = 0
Exlong := nz(Exlong[1])
Exshort = 0
Exshort := nz(Exshort[1])
Exlong := FastAtrRsiTL < RSIndex ? Exlong + 1 : 0
Exshort := FastAtrRsiTL > RSIndex ? Exshort + 1 : 0
//Conditions
// Plotting