OPEN-SOURCE SCRIPT

tawwasol

//version=5
indicator("إشارات الشراء والانتظار", overlay=true)

// إعداد مؤشر RSI
rsiLength = 14
rsiSource = close
rsiValue = ta.rsi(rsiSource, rsiLength)

// الشروط
isStrongBuy = rsiValue <= 20 // شراء قوي جدًا
isBuy = rsiValue > 20 and rsiValue <= 40 // شراء
isWait = rsiValue > 40 // انتظار

// ألوان الشموع بناءً على الإشارة
barcolor(isStrongBuy ? color.green : isBuy ? color.lime : color.gray, title="إشارة الشراء")

// نصوص الإشارات على الرسم البياني
if isStrongBuy
label.new(bar_index, low, "شراء قوي جدًا", style=label.style_label_down, color=color.new(color.green, 0), textcolor=color.white)
else if isBuy
label.new(bar_index, low, "شراء", style=label.style_label_down, color=color.new(color.lime, 0), textcolor=color.black)
else if isWait
label.new(bar_index, close, "انتظار", style=label.style_label_left, color=color.new(color.gray, 0), textcolor=color.white)

Declinazione di responsabilità