OPEN-SOURCE SCRIPT

SMC Smart Money Concepts

262
//version=5
indicator("SMC Smart Money Concepts", overlay=true)

// === إعداد الهيكل السعري ===
// تحديد HH, HL, LL, LH

pivotHigh = ta.pivothigh(high, 5, 5)
pivotLow = ta.pivotlow(low, 5, 5)

plotshape(pivotHigh, location=location.abovebar, style=shape.triangleup, color=color.red, title="Lower High")
plotshape(pivotLow, location=location.belowbar, style=shape.triangledown, color=color.green, title="Higher Low")

// === Break of Structure & CHoCH ===
bos = pivotHigh and close > high[6]
choch = pivotLow and close < low[6]

plotshape(bos, location=location.abovebar, color=color.blue, style=shape.labelup, text="BOS")
plotshape(choch, location=location.belowbar, color=color.orange, style=shape.labeldown, text="CHOCH")

// === Order Blocks (OB) ===
// نأخذ آخر شمعة صاعدة قبل هبوط قوي كمثال على OB

bearishOB = high[1] < high[2] and close[1] < open[1]
bullishOB = low[1] > low[2] and close[1] > open[1]

plotshape(bearishOB, location=location.abovebar, color=color.maroon, style=shape.square, title="Bearish OB")
plotshape(bullishOB, location=location.belowbar, color=color.lime, style=shape.square, title="Bullish OB")

// === Fair Value Gap (FVG) ===
// إذا لم تلامس الشمعة التالية قاع أو قمة شمعتين قبليتين

fvgBull = low > high[2]
fvgBear = high < low[2]

plotshape(fvgBull, location=location.belowbar, color=color.teal, style=shape.circle, title="Bullish FVG")
plotshape(fvgBear, location=location.abovebar, color=color.fuchsia, style=shape.circle, title="Bearish FVG")

// === السيولة (Liquidity Pools) ===
// تعتبر السيولة موجودة عند قمم أو قيعان واضحة

liquidityHigh = high == ta.highest(high, 20)
liquidityLow = low == ta.lowest(low, 20)

plotshape(liquidityHigh, location=location.abovebar, color=color.purple, style=shape.cross, title="Liquidity High")
plotshape(liquidityLow, location=location.belowbar, color=color.purple, style=shape.cross, title="Liquidity Low")

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.