Neueste15. Sept., 06:48
Y
//@version=5
indicator("XAU/USD Key Technical Levels", overlay=true)
// --- Level Definitions ---
r2 = input.float(4355.00, title="Resistance 2 (Target 2)")
r1 = input.float(4317.00, title="Resistance 1 (Target 1)")
pivot = input.float(4299.00, title="Current Pivot")
s1 = input.float(4283.00, title="Support 1 (Buy Zone 1)")
s2 = input.float(4253.00, title="Support 2 (Buy Zone 2)")
sl = input.float(4248.00, title="Breakdown / Stop Loss")
// --- Line Plotting ---
plot(r2, "Resistance 2", color=color.red, linewidth=2, style=plot.style_line)
plot(r1, "Resistance 1", color=color.orange, linewidth=2, style=plot.style_line)
plot(pivot, "Pivot Level", color=color.blue, linewidth=2, style=plot.style_line)
plot(s1, "Support 1", color=color.green, linewidth=2, style=plot.style_line)
plot(s2, "Support 2", color=color.teal, linewidth=2, style=plot.style_line)
plot(sl, "Stop Loss", color=color.maroon, linewidth=1, style=plot.style_line)
// --- Background Fill Zones ---
fill(plot(r1), plot(r2), color=color.new(color.red, 90), title="Sell Zone")
fill(plot(s1), plot(s2), color=color.new(color.green, 90), title="Buy Zone")
TITradingView Ideas