//@version=5
indicator("The Golden Grail V5 - Institutional Gold Master", overlay=true, max_labels_count=500)
// --- إعدادات الأهداف الذكية ---
targetPips = input.float(40.0, "الهدف الأدنى بالنقاط")
minMoveToSecure = 20.0 // تأمين الصفقة بعد 20 نقطة
// 1. محرك التحليل الزمني (Time Analysis)
isLondon = time(timeframe.period, "0800-1200", "UTC+2")
isNewYork = time(timeframe.period, "1300-1700", "UTC+2")
highLiquidityTime = isLondon or isNewYork
// 2. تحليل سيولة الشموع (Candle Pressure)
volAvg = ta.sma(volume, 20)
buyingPressure = (close - low) / (high - low) * volume
sellingPressure = (high - close) / (high - low) * volume
isSmartMoneyActive = volume > volAvg * 1.5
// 3. كاشف SMC وكسر الهيكل (BOS/FVG)
fvgBull = low > high[2] and close[1] > open[1]
fvgBear = high < low[2] and close[1] < open[1]
vwapVal = ta.vwap(hlc3)
// 4. منطق الإشارات الذهبية (The 40+ Pips Logic)
buySignal = highLiquidityTime and close > vwapVal and buyingPressure > sellingPressure and (fvgBull or ta.crossover(close, ta.highest(high[1], 5))) and isSmartMoneyActive
sellSignal = highLiquidityTime and close < vwapVal and sellingPressure > buyingPower and (fvgBear or ta.crossunder(close, ta.lowest(low[1], 5))) and isSmartMoneyActive
// فلتر الاتجاه لمنع التذبذب
var int lastSignal = 0
finalBuy = buySignal and lastSignal <= 0
finalSell = sellSignal and lastSignal >= 0
if finalBuy
lastDir := 1
lastSignal := 1
if finalSell
lastDir := -1
lastSignal := -1
// 5. رسم المستويات (SL/TP) وتوقعات السعر
atr = ta.atr(14)
float sl = na
float tp = na
float securePoint = na
if finalBuy
sl := low - (atr * 1.5)
tp := close + (targetPips / 10)
securePoint := close + (minMoveToSecure / 10)
if finalSell
sl := high + (atr * 1.5)
tp := close - (targetPips / 10)
securePoint := close - (minMoveToSecure / 10)
// 6. التنبؤ عند آخر نقطة (Price Prediction)
var label predictionLabel = na
if barstate.islast
label.delete(predictionLabel)
string trendMsg = (close > vwapVal) ? "اتجاه صاعد (توقع صعود)" : "اتجاه هابط (توقع هبوط)"
predictionLabel := label.new(bar_index, high + atr, text="توقع السعر القادم: \n" + trendMsg + "\n الهدف القريب: " + str.tostring(tp, "####.##"), color=color.black, textcolor=color.yellow, style=label.style_label_down)
// 7. الرسوم التوضيحية (Visuals)
plotshape(finalBuy, "BUY", shape.labelup, location.belowbar, color.new(#00ff88, 0), text="BUY +40", size=size.small)
plotshape(finalSell, "SELL", shape.labeldown, location.abovebar, color.new(#ff0044, 0), text="SELL +40", size=size.small)
// رسم خطوط الأهداف
plot(finalBuy or finalSell ? tp : na, "Target", color.new(color.lime, 0), linewidth=3, style=plot.style_linebr)
plot(finalBuy or finalSell ? sl : na, "Stop", color.new(color.red, 0), linewidth=2, style=plot.style_linebr)
plot(finalBuy or finalSell ? securePoint : na, "Secure Point (BE)", color.new(color.white, 50), linewidth=1, style=plot.style_linebr)
// تلوين الشاشات في أوقات السيولة
bgcolor(highLiquidityTime ? color.new(color.blue, 96) : na)
// 8. لوحة التحكم المؤسسية
var table panel = table.new(position.bottom_right, 2, 4, bgcolor=color.new(color.black, 10), border_width=1, border_color=color.gray)
if barstate.islast
table.cell(panel, 0, 0, "محلل الذهب V5", text_color=color.aqua)
table.cell(panel, 1, 0, "نشط", text_color=color.lime)
table.cell(panel, 0, 1, "قوة المشترين", text_color=color.white)
table.cell(panel, 1, 1, str.tostring(math.round(buyingPressure/volume*100)) + "%", text_color=color.green)
table.cell(panel, 0, 2, "قوة البائعين", text_color=color.white)
table.cell(panel, 1, 2, str.tostring(math.round(sellingPressure/volume*100)) + "%", text_color=color.red)
indicator("The Golden Grail V5 - Institutional Gold Master", overlay=true, max_labels_count=500)
// --- إعدادات الأهداف الذكية ---
targetPips = input.float(40.0, "الهدف الأدنى بالنقاط")
minMoveToSecure = 20.0 // تأمين الصفقة بعد 20 نقطة
// 1. محرك التحليل الزمني (Time Analysis)
isLondon = time(timeframe.period, "0800-1200", "UTC+2")
isNewYork = time(timeframe.period, "1300-1700", "UTC+2")
highLiquidityTime = isLondon or isNewYork
// 2. تحليل سيولة الشموع (Candle Pressure)
volAvg = ta.sma(volume, 20)
buyingPressure = (close - low) / (high - low) * volume
sellingPressure = (high - close) / (high - low) * volume
isSmartMoneyActive = volume > volAvg * 1.5
// 3. كاشف SMC وكسر الهيكل (BOS/FVG)
fvgBull = low > high[2] and close[1] > open[1]
fvgBear = high < low[2] and close[1] < open[1]
vwapVal = ta.vwap(hlc3)
// 4. منطق الإشارات الذهبية (The 40+ Pips Logic)
buySignal = highLiquidityTime and close > vwapVal and buyingPressure > sellingPressure and (fvgBull or ta.crossover(close, ta.highest(high[1], 5))) and isSmartMoneyActive
sellSignal = highLiquidityTime and close < vwapVal and sellingPressure > buyingPower and (fvgBear or ta.crossunder(close, ta.lowest(low[1], 5))) and isSmartMoneyActive
// فلتر الاتجاه لمنع التذبذب
var int lastSignal = 0
finalBuy = buySignal and lastSignal <= 0
finalSell = sellSignal and lastSignal >= 0
if finalBuy
lastDir := 1
lastSignal := 1
if finalSell
lastDir := -1
lastSignal := -1
// 5. رسم المستويات (SL/TP) وتوقعات السعر
atr = ta.atr(14)
float sl = na
float tp = na
float securePoint = na
if finalBuy
sl := low - (atr * 1.5)
tp := close + (targetPips / 10)
securePoint := close + (minMoveToSecure / 10)
if finalSell
sl := high + (atr * 1.5)
tp := close - (targetPips / 10)
securePoint := close - (minMoveToSecure / 10)
// 6. التنبؤ عند آخر نقطة (Price Prediction)
var label predictionLabel = na
if barstate.islast
label.delete(predictionLabel)
string trendMsg = (close > vwapVal) ? "اتجاه صاعد (توقع صعود)" : "اتجاه هابط (توقع هبوط)"
predictionLabel := label.new(bar_index, high + atr, text="توقع السعر القادم: \n" + trendMsg + "\n الهدف القريب: " + str.tostring(tp, "####.##"), color=color.black, textcolor=color.yellow, style=label.style_label_down)
// 7. الرسوم التوضيحية (Visuals)
plotshape(finalBuy, "BUY", shape.labelup, location.belowbar, color.new(#00ff88, 0), text="BUY +40", size=size.small)
plotshape(finalSell, "SELL", shape.labeldown, location.abovebar, color.new(#ff0044, 0), text="SELL +40", size=size.small)
// رسم خطوط الأهداف
plot(finalBuy or finalSell ? tp : na, "Target", color.new(color.lime, 0), linewidth=3, style=plot.style_linebr)
plot(finalBuy or finalSell ? sl : na, "Stop", color.new(color.red, 0), linewidth=2, style=plot.style_linebr)
plot(finalBuy or finalSell ? securePoint : na, "Secure Point (BE)", color.new(color.white, 50), linewidth=1, style=plot.style_linebr)
// تلوين الشاشات في أوقات السيولة
bgcolor(highLiquidityTime ? color.new(color.blue, 96) : na)
// 8. لوحة التحكم المؤسسية
var table panel = table.new(position.bottom_right, 2, 4, bgcolor=color.new(color.black, 10), border_width=1, border_color=color.gray)
if barstate.islast
table.cell(panel, 0, 0, "محلل الذهب V5", text_color=color.aqua)
table.cell(panel, 1, 0, "نشط", text_color=color.lime)
table.cell(panel, 0, 1, "قوة المشترين", text_color=color.white)
table.cell(panel, 1, 1, str.tostring(math.round(buyingPressure/volume*100)) + "%", text_color=color.green)
table.cell(panel, 0, 2, "قوة البائعين", text_color=color.white)
table.cell(panel, 1, 2, str.tostring(math.round(sellingPressure/volume*100)) + "%", text_color=color.red)
Rename
Currently there are no replies yet. Please check back later.
Your Response
Post
Edit Post
Login is required