PROJECT: Multi-Pair Forex Scanner EA with Telegram Alerts (MT4 or MT5) I need a scanner Expert Advisor written from scratch that detects a specific multi-timeframe pattern and sends Telegram alerts and also an alert on the screen of the system that is active. The developer may choose to implement it in MetaTrader 4 or MetaTrader 5, whichever is more efficient and stable for multi-symbol scanning. This EA is alert-only. It must not open or close trades. *CORE REQUIREMENTS* The EA must scan multiple symbols simultaneously and monitor two timeframe chains at the same time. It should run from one chart and continuously analyze all selected symbols. It must send Telegram alerts when the final condition is met. The EA must include chart drawing of the structure, a visual debug panel showing the internal logic states, and logging for debugging. The system must be non-repainting and implemented using a state-machine structure. *TIMEFRAME SYSTEMS* The EA must run two independent systems simultaneously. System 1 H1 → M5 System 2 M15 → M1 The pattern must always be detected first on the higher timeframe and then confirmed on the lower timeframe. LEG METER FORMULA The EA must calculate: Leg Strength % = Leg Size / ATR(Timeframe) × 100 Valid range for the leg strength is between 200% and 400%. (There should be an option to change the percentage from a panel) PART A — HIGHER TIMEFRAME A → B All conditions must be true. Leg Strength between 200% and 400%. Two to six candles in the same direction. All candles must be either all bullish or all bearish. Each candle must have at least 45% body.(there should be an option to change this percentage from a panel). Body percentage formula: abs(Close − Open) / (High − Low) × 100 B → C All conditions must be true. At least two candles must form. The B level must not be broken even by a shadow. Point C must retrace between 20% to 50% of AB. Retracement measurements must include shadows. C → D All conditions must be true. CD must not exceed AB in pip size in same time frame. This rule must continue being checked even after switching to the lower timeframe. After B breaks, price must not touch C again. As soon as B breaks, the EA must switch to the lower timeframe. PART B — LOWER TIMEFRAME A → B Same rules as higher timeframe A → B plus one additional rule. The lower timeframe B must be beyond the higher timeframe B. For bullish setups, the lower timeframe B must be above the higher timeframe B. For bearish setups, the lower timeframe B must be below the higher timeframe B. B → C Same exact rules as higher timeframe B → C. C → D CD must not exceed AB in pip size in same time frame. When a candle closes beyond B, that candle becomes a break candle candidate. BREAK CANDLE RULE (30–70 RULE) The break candle must meet the following conditions. The candle must be closed. The candle must have at least 45% body. The candle body must cross the B level. The candle body must satisfy the 30–70 rule. This means at least 30% of the body must be above B and at least 30% of the body must be below B. Examples of valid body splits: 30/70 40/60 50/50 60/40 70/30 Invalid examples: 10/90 5/95 100/0 The calculation must use the candle body only, not the shadows. SHADOW EXCEPTION RULE If a candle touches B with a shadow but does not satisfy the break candle rule, and if the shadow was beyond the B point shadow, then B must be updated to the tip of the new candle's shadow and the next candle must be evaluated again using the updated B. This process must continue until either a valid break candle appears or the setup becomes invalid. FINAL ALERT After a valid break candle appears, if price returns to the B level, the EA must immediately send a Telegram alert. The alert must contain only the symbol and the lower timeframe. Example: EURUSD M5 DIRECTION All rules must work for both bullish and bearish scenarios. TECHNICAL REQUIREMENTS The EA must support scanning multiple symbols from one chart. It must support both timeframe systems and all pairs simultaneously. It must use a state-machine structure for reliability and clarity. It must be non-repainting. It must support Telegram alerts using WebRequest. It must draw the A B C D structure on the chart. It must include a visual debug panel. INPUTS REQUIRED The EA must include inputs such as: Symbols MaxSymbols Scan_H1_M5 Scan_M15_M1 ATR_Period LegMinPercent LegMaxPercent RetraceMinPercent RetraceMaxPercent StrongBodyPercent BreakBodyPercent EnableTelegram TelegramBotToken TelegramChatID EnableChartDrawings EnableDebugPanel DELIVERABLES The freelancer must deliver: The full source code (.mq4 or .mq5). The compiled EA (.ex4 or .ex5). Installation instructions. Explanation of all inputs. A debug version with useful logging. IMPORTANT The rules must not be simplified. The 30-70 break candle rule must be implemented exactly. The shadow exception rule must be implemented. The EA must be non-repainting.