$ETH //@version=5
indicator("ZRO/USDT bearish Setup", overlay=true)
// ---- Levels ----
support1 = 1.720
support2 = 1.700
resistance1 = 1.765
resistance2 = 1.780
tp1 = 1.720
tp2 = 1.700
sl = 1.785
// ---- Plot Support & Resistance ----
hline(support1, "Unterstützung 1", color=color.new(color.green, 0), linestyle=hline.style_dashed)
hline(support2, "Unterstützung 2", color=color.new(color.green, 0), linestyle=hline.style_dashed)
hline(resistance1, "Widerstand 1", color=color.new(color.red, 0), linestyle=hline.style_dashed)
hline(resistance2, "Widerstand 2", color=color.new(color.red, 0), linestyle=hline.style_dashed)
// ---- TP & SL ----
hline(tp1, "TP1", color=color.new(color.blue, 0))
hline(tp2, "TP2", color=color.new(color.blue, 0))
hline(sl, "Stop-Loss", color=color.new(color.orange, 0))
// ---- Bearish Condition ----
bearishBias = close < resistance1
bgcolor(bearishBias ? color.new(color.red, 90) : na)
// ---- Labels ----
if bearishBias
label.new(bar_index, high, "Bearish Bias 🔴",
color=color.red, textcolor=color.white, style=label.style_label_down)
// ---- Alerts ----
alertcondition(bearishBias, title="Bearish Bias Aktiv",
message="ZRO/USDT handelt unter 1.765 – Bearish Bias intakt")
alertcondition(close <= tp1, title="TP1 Erreicht",
message="ZRO/USDT TP1 (1.720) erreicht")
alertcondition(close <= tp2, title="TP2 Erreicht",
message="ZRO/USDT TP2 (1.700) erreicht")
alertcondition(close >= sl, title="Stop-Loss Erreicht",
message="ZRO/USDT Stop-Loss (1.785) erreicht")