OPEN-SOURCE SCRIPT

High-Probability Crypto Indicator1

//version=5
indicator("High-Probability Crypto Indicator", overlay=true)

// Inputs
emaFastLength = input(50, "Fast EMA Length")
emaSlowLength = input(200, "Slow EMA Length")
rsiLength = input(14, "RSI Length")
volumeSpikeMultiplier = input(2.0, "Volume Spike Multiplier")

// EMAs
emaFast = ta.ema(close, emaFastLength)
emaSlow = ta.ema(close, emaSlowLength)

// RSI
rsi = ta.rsi(close, rsiLength)

// Volume Analysis
volumeAvg = ta.sma(volume, 20)
volumeSpike = volume > volumeAvg * volumeSpikeMultiplier

// Bullish Conditions
emaBullish = ta.crossover(emaFast, emaSlow) // Fast EMA crosses above Slow EMA
rsiBullish = rsi > 50 and rsi < 70 // RSI in bullish zone but not overbought
bullishSignal = emaBullish and rsiBullish and volumeSpike

// Bearish Conditions
emaBearish = ta.crossunder(emaFast, emaSlow) // Fast EMA crosses below Slow EMA
rsiBearish = rsi < 50 and rsi > 30 // RSI in bearish zone but not oversold
bearishSignal = emaBearish and rsiBearish and volumeSpike

// Plot Signals
plotshape(bullishSignal, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="Buy Signal")
plotshape(bearishSignal, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="Sell Signal")

// Plot EMAs
plot(emaFast, color=color.blue, title="Fast EMA")
plot(emaSlow, color=color.red, title="Slow EMA")

Wyłączenie odpowiedzialności