📄 MT5 Indicator Development Requirements Document Indicator Name: Check List Panel Platform: MetaTrader 5 (MT5) Language: MQL5 Deliverables: Fully functional MT5 Indicator (.ex5 + .mq5 source file) Well-structured and commented code User-defined input parameters for customization On-screen panel display with status checks ✅ 1. HTF Alignment – Market Structure Detection Objective: Detect whether the current price on the Daily Timeframe is in Premium or Discount zone based on the latest Swing High and Swing Low. Requirements: Automatically detect swing high/low on the Daily chart using fractal logic or price structure. Define the range: Latest Swing High to Swing Low. Calculate current price position relative to this range. Premium: Price > 0.5 (midpoint of the range) Discount: Price < 0.5 Display output on panel: HTF: Premium or HTF: Discount. ✅ 2. Liquidity Sweep Detection Objective: Identify liquidity sweeps in relation to market structure and trade direction. Key Concepts: Liquidity Sweep: When price briefly breaks a swing high/low with a wick and reverses. Sweep + Break of Structure (BOS) confirmation: Bullish Scenario: Sweep below recent swing low Followed by a close above recent swing high → Confirm Bullish BOS Bearish Scenario: Sweep above recent swing high Followed by a close below recent swing low → Confirm Bearish BOS Detection Rules: A sweep must have a candle wick breach a previous swing point. Price must close back inside or reverse sharply. BOS must be body close-based, not just wick. Display on Panel: "Sweep + BOS: Bullish Confirmed" or "Sweep + BOS: Bearish Confirmed" Show both if detected on different legs. ✅ 3. BOS + Imbalance (Fair Value Gap Detection) Objective: Detect when a Break of Structure (BOS) is followed by a Fair Value Gap (FVG). Definitions for Developer: BOS: Bullish = Body closes above last swing high Bearish = Body closes below last swing low FVG / Imbalance: A price gap between candles where the middle candle’s low > next candle’s high (or vice versa) Logic: Detect BOS Immediately check for nearby FVGs If both exist → Mark it as a valid setup Display on Panel: “BOS + FVG: Bullish/ Bearish Detected” Option to highlight FVG zones visually on chart (optional) ✅ 4. Fibonacci Retracement Overlay Objective: Draw Fibonacci retracement between latest Swing High and Swing Low Levels to be marked: 0.62 0.71 0.79 Display Options: Optional toggle to show/hide Fib levels Use different colors for each level (e.g., 0.62 - Green, 0.71 - Orange, 0.79 - Red) ✅ 5. On-Chart Panel Position: Top-right corner (user adjustable) Panel Displays: HTF Alignment: Premium / Discount Liquidity Sweep Detected: Yes / No BOS Detected: Bullish / Bearish BOS + FVG: Confirmed / Not Confirmed Fib Levels: Optional toggle Customization Inputs: Swing sensitivity (number of bars for swing detection) Timeframe to assess HTF alignment (default: D1) Colors and fonts Toggle display elements (fib, panel, labels) 📌 Notes for Developer Use modular code: separate functions for BOS, Sweep, FVG, etc. Make logic compatible with both live and historical bars Prioritize performance and avoid repainting for historical values Ensure proper debugging and provide test cases if possible