ict

Wait 5 sec.

ictEUR/USDOANDA:EURUSDnikzamir//@version=5 indicator("ICT Concept - Smart Money Essentials", overlay=true, max_boxes_count=500, max_lines_count=500) // --- تنظیمات ورودی --- showFVG = input.bool(true, "Show FVG (Fair Value Gap)") showMSS = input.bool(true, "Show Market Structure Shift") showKillzones = input.bool(true, "Show Killzones (Time Boxes)") // --- تشخیص FVG (شکاف ارزش منصفانه) --- if showFVG for i = 1 to 20 // Bullish FVG if high < low box.new(bar_index, low, bar_index, high, bgcolor=color.new(color.green, 85), border_color=color.green, xloc=xloc.bar_index) // Bearish FVG if low > high box.new(bar_index, high, bar_index, low, bgcolor=color.new(color.red, 85), border_color=color.red, xloc=xloc.bar_index) // --- تشخیص نقدینگی و شکست ساختار (MSS) --- var float lastHigh = na var float lastLow = na if showMSS lastHigh := ta.highest(high, 10) lastLow := ta.lowest(low, 10) if close > lastHigh line.new(bar_index, lastHigh, bar_index, lastHigh, color=color.blue, width=2) label.new(bar_index, lastHigh, "MSS / BOS", style=label.style_none, textcolor=color.blue) if close < lastLow line.new(bar_index, lastLow, bar_index, lastLow, color=color.orange, width=2) label.new(bar_index, lastLow, "MSS / BOS", style=label.style_none, textcolor=color.orange) // --- تعیین ساعات کیل‌زون (به وقت محلی تریدینگ ویو) --- is_london = not na(time(timeframe.period, "0300-0600:23456", "UTC-5")) // معادل ساعت شروع لندن is_ny = not na(time(timeframe.period, "0800-1100:23456", "UTC-5")) // معادل ساعت شروع نیویورک if showKillzones bgcolor(is_london ? color.new(color.blue, 90) : na) bgcolor(is_ny ? color.new(color.red, 90) : na) // --- نمایش قیمت بازگشایی نیمه‌شب (Midnight Open) --- is_new_day = ta.change(time("D")) var float midnightOpen = na if is_new_day midnightOpen := open line.new(bar_index, midnightOpen, bar_index + 10, midnightOpen, extend=extend.right, color=color.gray, style=line.style_dashed)