PROMPT FOR CODEX — RangeFilter EA (MT5) Task: Implement a complete MetaTrader 5 Expert Advisor according to README/README_SPEC.md inside the archive "RangeFilter_MT5_EA_Handoff_v3.zip". Embed the three Pine indicators from the "indicators/" folder directly into the EA (no external .ex5 indicators). Technical requirements: 1) Platform: MetaTrader 5 (MQL5), default timeframe M5. 2) Output EA: EA_RFLWMA_NSM.mq5 - Use modular includes: /include/rf_core.mqh /include/lwma_core.mqh /include/nsm_core.mqh /include/risk_mgmt.mqh /include/trade_utils.mqh /include/hud_debug.mqh 3) Core rules: - Work ONLY on closed bars (no repaint). - One position per symbol; auto-reverse on valid opposite signal. - Range Filter Buy & Sell → primary signal. - Liquidity Weighted Moving Averages → trend/validity filter. - Normalized Smoothed MACD → momentum confirmation. - SL/TP/Partial/Trailing per the logic in README. What to generate: - Full compilable .mq5 EA code for MetaEditor 5. - 1:1 ports of the three Pine indicators (embedded MQL5 functions). - Clear structure, comments (English), Inputs exactly as in README. - Simple on-chart HUD (trend mode, last signal, risk, key values). - Optional unit tests/scripts to cross-check indicator buffers vs Pine. Included materials in the handoff: - indicators/ (three Pine sources) - assets/ (BG .srt + 1fps frames ZIP) - README/README_SPEC.md (the full specification) Output instructions: - Print the complete .mq5 code. If you split into multiple .mqh files, list each file with its full contents. - Do not abbreviate code; provide a compilable set. - Follow README strictly (entries on closed bar, risk/trade rules, filters). Short project summary: Expert Advisor for MT5 using Range Filter Buy & Sell (5min) + Liquidity Weighted Moving Averages (trend) + Normalized Smoothed MACD (momentum). All indicators are embedded; no external installs.