INVITE-ONLY SCRIPT

Voliom

36
//version=5
indicator("فوليوم اختراق الهايكن آشي الأصفر 💡", overlay=false, precision=0)

// --- إعدادات المدخلات ---
length = input.int(3, "طول المتوسط") // تم تعديل الطول إلى 3
mom_limit = input.float(3.0, "حد الزخم الأقصى")

// --- دالة فحص شرط الهايكن آشي ---
f_check() =>
// جلب بيانات الهايكن آشي للسهم الحالي
[h_close, h_sma, h_roc] = request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, [close, ta.sma(close, length), ta.roc(close, length)])
is_y = ta.crossover(h_close, h_sma) and h_roc < mom_limit
is_y

is_yellow = f_check()

// --- منطق تلوين أعمدة الفوليوم الأصلي ---
upColor = color.new(#26a69a, 0) // أخضر
downColor = color.new(#ef5350, 0) // أحمر

// التلوين العادي (أخضر/أحمر) أو أصفر إذا تحقق الشرط
columnColor = is_yellow ? color.yellow : (close >= open ? upColor : downColor)

// رسم أعمدة الفوليوم
plot(volume, title="Volume", style=plot.style_columns, color=columnColor)

// --- خط الاختراق على الفوليوم ---
var float volLine = na
if is_yellow
volLine := volume

// رسم الخط الأصفر الأفقي (يظهر فقط عند وجود إشارة سابقة)
plot(volLine, color=color.yellow, style=plot.style_linebr, linewidth=2, title="خط اختراق السيولة")

// تم حذف سطر Volume MA الأزرق من هنا

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.