MT5 Expert Advisor (EA) Technical Specification Project Overview: I need an MT5 Expert Advisor (EA) based on a TradingView Delta-RSI indicator. The project includes two stages: 1. Converting the TradingView indicator (Pine Script) to MT5 (MQL5). 2. Developing an EA that trades automatically using the indicator's BUY and SELL signals. Broker Compatibility: - The EA must work correctly on the Deriv broker through MT5. - It should be fully compatible with Deriv synthetic indices and other instruments available on Deriv MT5. Indicator Source Code: - The indicator is originally from TradingView (Pine Script). - I will provide the original TradingView indicator source code to the developer. - The EA must use BUY and SELL signals generated by the converted MT5 indicator. Signal Timeframe: - Input: Signal Timeframe - Options: M1, M5, M15, H1, H4 - If M5 is selected, only M5 signals must be used. Trade Mode: - BUY ONLY - SELL ONLY - BUY & SELL Trading Rules: - BUY signal -> immediately open BUY. - SELL signal -> immediately open SELL. - Only one open position at a time. - Opposite signal closes current position and opens a new one. - One signal = one order. - No duplicate orders on the same candle. Inputs: - Lot Size - Stop Loss (SL) - Take Profit (TP) - Magic Number - Slippage - Maximum Spread Filter (ON/OFF) TP and SL Behavior: - After TP or SL, wait for the next signal. - Do not open trades automatically without a new signal. - Open trades only on NEW BUY or SELL signals. Additional Requirements: - Continue working after terminal restart. - Recognize existing positions after restart. - Fully automatic with AutoTrading enabled. Workflow: Indicator Signal -> Open Trade -> TP or SL -> Wait for Next Signal -> Open New Trade