import matplotlib.pyplot as plt

# Tingkat harga dari grafik

current_price = 0.21458

# Tingkat dukungan dan resistensi

supports = [0.2140, 0.2100, 0.2050]

resistances = [0.2170, 0.2230, 0.2260, 0.2300]

# Plot grafik

plt.figure(figsize=(8,6))

# Garis harga (hanya menunjukkan rentang untuk kejelasan)

plt.axhline(current_price, color="blue", linestyle="--", linewidth=1.5, label=f"Harga Saat Ini {current_price}")

# Dukungan (garis hijau)

for s in supports:

plt.axhline(s, color="green", linestyle="-", linewidth=1)

plt.text(0.5, s, f"Dukungan {s}", color="green", va="bottom")

# Resistensi (garis merah)

for r in resistances:

plt.axhline(r, color="red", linestyle="-", linewidth=1)

plt.text(0.5, r, f"Resistensi {r}", color="red", va="bottom")

plt.ylim(0.202, 0.233)

plt.title("Tingkat Dukungan & Resistensi DOGE/USDT")

plt.xlabel("Grafik (Waktu tidak diskalakan)")

plt.ylabel("Harga (USDT)")

plt.legend()

plt.grid(True, linestyle="--", alpha=0.5)

plt.show()

Perdagangan sekarang