PROTECTED SOURCE SCRIPT

INDIBOT PRO [Indibot Style]ABO SALTAN

50
//version=6
indicator("INDIBOT PRO [Indibot Style]", overlay=true, max_labels_count=500)

// === WAVE TREND CALC ===
src = hlc3
n1 = input.int(10, "WT Channel Length")
n2 = input.int(21, "WT Signal Smoothing")
obLevel = input.float(2.0, "Overbought Threshold")
osLevel = input.float(-2.0, "Oversold Threshold")

esa = ta.ema(src, n1)
d = ta.ema(math.abs(src - esa), n1)
ci = (src - esa) / (0.015 * d)
wt1 = ta.ema(ci, n2)
wt2 = ta.sma(wt1, 4)

// === CROSS SIGNALS ===
buyCond = ta.crossover(wt1, wt2) and wt1 < osLevel
sellCond = ta.crossunder(wt1, wt2) and wt1 > obLevel

// === PRICE CHART ARROWS ===
plotshape(buyCond, title="Buy Arrow", location=location.belowbar, style=shape.labelup,
color=color.new(color.teal, 0), text="BUY", textcolor=color.white, size=size.small)

plotshape(sellCond, title="Sell Arrow", location=location.abovebar, style=shape.labeldown,
color=color.new(color.red, 0), text="SELL", textcolor=color.white, size=size.small)

// === OSCILLATOR PANEL ===
plot(wt1, color=color.green, title="WT Line", linewidth=2)
plot(wt2, color=color.red, title="Signal Line", linewidth=2)
hline(obLevel, "Overbought", color=color.red)
hline(osLevel, "Oversold", color=color.green)
hline(0, "", color=color.gray)

// === CROSSOVER DOTS ===
plotshape(ta.crossover(wt1, wt2), title="WT Cross Up", location=location.belowbar, color=color.teal,
style=shape.circle, size=size.tiny, offset=-1)
plotshape(ta.crossunder(wt1, wt2), title="WT Cross Down", location=location.abovebar, color=color.red,
style=shape.circle, size=size.tiny, offset=-1)

// === BACKGROUND COLOR ===
bgcolor(wt1 > obLevel ? color.new(color.red, 90) : wt1 < osLevel ? color.new(color.green, 90) : na, title="OB/OS Zone Highlight")

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.