OPEN-SOURCE SCRIPT
Alyamani KOR – Master Build v1

//version=5
indicator("Alyamani KOR – Master Build v1", overlay=true)
// إعدادات العرض
show_fvg = input.bool(true, "عرض FVG")
show_ob = input.bool(true, "عرض Order Block")
show_bb = input.bool(true, "عرض Breaker Block")
require_poi = input.bool(true, "اظهار OB فقط عند مناطق اهتمام؟")
// --- شروط عامة ---
isSweep = low[2] < low[3] and low[2] < low[1]
hasSmallHigh = high[1] < high[2] and high[3] < high[2]
isMSS = close[1] > high[2] and (close[1] - open[1]) > (high[1] - low[1]) * 0.6
// --- كشف FVG ---
isFVG = low[2] > high[0]
if isFVG and show_fvg
box.new(left=bar_index[2], right=bar_index, top=high[0], bottom=low[2], border_color=color.orange, bgcolor=color.new(color.orange, 85))
// --- اكتشاف Order Block ---
var float ob_top = na
var float ob_bottom = na
var int ob_bar = na
var bool ob_active = false
// --- منطقة اهتمام بدائية: هل يوجد FVG قرب الشمعة؟
near_poi = isFVG
// --- شروط OB المثالي ---
isValidOB = isSweep and hasSmallHigh and isMSS and (not require_poi or near_poi)
if isValidOB and show_ob
ob_top := high[2]
ob_bottom := low[2]
ob_bar := bar_index[2]
ob_active := true
box.new(left=bar_index[2], right=bar_index, top=ob_top, bottom=ob_bottom, border_color=color.green, bgcolor=color.new(color.green, 85))
// --- Breaker Block detection ---
breaker_valid = ob_active and close > ob_top and low <= ob_top
if breaker_valid and show_bb
box.new(left=ob_bar, right=bar_index, top=ob_top, bottom=ob_bottom, border_color=color.red, bgcolor=color.new(color.red, 85))
ob_active := false // إنهاء OB
indicator("Alyamani KOR – Master Build v1", overlay=true)
// إعدادات العرض
show_fvg = input.bool(true, "عرض FVG")
show_ob = input.bool(true, "عرض Order Block")
show_bb = input.bool(true, "عرض Breaker Block")
require_poi = input.bool(true, "اظهار OB فقط عند مناطق اهتمام؟")
// --- شروط عامة ---
isSweep = low[2] < low[3] and low[2] < low[1]
hasSmallHigh = high[1] < high[2] and high[3] < high[2]
isMSS = close[1] > high[2] and (close[1] - open[1]) > (high[1] - low[1]) * 0.6
// --- كشف FVG ---
isFVG = low[2] > high[0]
if isFVG and show_fvg
box.new(left=bar_index[2], right=bar_index, top=high[0], bottom=low[2], border_color=color.orange, bgcolor=color.new(color.orange, 85))
// --- اكتشاف Order Block ---
var float ob_top = na
var float ob_bottom = na
var int ob_bar = na
var bool ob_active = false
// --- منطقة اهتمام بدائية: هل يوجد FVG قرب الشمعة؟
near_poi = isFVG
// --- شروط OB المثالي ---
isValidOB = isSweep and hasSmallHigh and isMSS and (not require_poi or near_poi)
if isValidOB and show_ob
ob_top := high[2]
ob_bottom := low[2]
ob_bar := bar_index[2]
ob_active := true
box.new(left=bar_index[2], right=bar_index, top=ob_top, bottom=ob_bottom, border_color=color.green, bgcolor=color.new(color.green, 85))
// --- Breaker Block detection ---
breaker_valid = ob_active and close > ob_top and low <= ob_top
if breaker_valid and show_bb
box.new(left=ob_bar, right=bar_index, top=ob_top, bottom=ob_bottom, border_color=color.red, bgcolor=color.new(color.red, 85))
ob_active := false // إنهاء OB
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
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.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
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.