OPEN-SOURCE SCRIPT

Helper Indicator for Crypto Scalping Pro

//version=5
indicator("Helper Indicator for Crypto Scalping Pro", overlay=true)

// === НАСТРОЙКИ ===
showTrendLines = input.bool(true, "Показывать линии тренда")
showSupportResistance = input.bool(true, "Показывать уровни поддержки и сопротивления")
showAdditionalSignals = input.bool(true, "Показывать дополнительные сигналы")

// === БАЗОВЫЕ ИНДИКАТОРЫ ===
fastEMA = ta.ema(close, 8)
mediumEMA = ta.ema(close, 13)
slowEMA = ta.ema(close, 21)

// Определение тренда
isBullishTrend = fastEMA > mediumEMA and mediumEMA > slowEMA
isBearishTrend = fastEMA < mediumEMA and mediumEMA < slowEMA

// Поддержка и сопротивление
highestHigh = ta.highest(high, 20)
lowestLow = ta.lowest(low, 20)

// Линии тренда
plot(fastEMA, "Fast EMA (8)", color=color.blue, linewidth=1)
plot(mediumEMA, "Medium EMA (13)", color=color.orange, linewidth=1)
plot(slowEMA, "Slow EMA (21)", color=color.red, linewidth=1)

// Уровни поддержки и сопротивления
plot(showSupportResistance ? highestHigh : na, "Resistance", color=color.red, style=plot.style_line, linewidth=2)
plot(showSupportResistance ? lowestLow : na, "Support", color=color.green, style=plot.style_line, linewidth=2)

// Сигналы
buySignal = isBullishTrend and close > mediumEMA
sellSignal = isBearishTrend and close < mediumEMA

// Визуализация сигналов
plotshape(showAdditionalSignals and buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(showAdditionalSignals and sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)

// === АЛЕРТЫ ===
alertcondition(buySignal, title="Buy Signal", message="Тренд восходящий! Вход в покупку!")
alertcondition(sellSignal, title="Sell Signal", message="Тренд нисходящий! Вход в продажу!")
Bands and ChannelsBreadth Indicatorsforecasting

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer