# MT5 Expert Advisor Operation Guide ## Configuration Settings ```mql5 // RETRY SETTINGS input int MaxRetries = 3; // Number of send attempts input int InitialDelayMs = 1000; // First retry delay (milliseconds) // API SETTINGS input string ApiBaseUrl = "http://localhost:3000"; input string ApiKey = ""; ``` ## Failure Recovery Behavior 1. **Retry Sequence** - Attempt 1: Immediate send - Attempt 2: 1 second delay - Attempt 3: 2 second delay - Attempt 4: 4 second delay 2. **Permanent Failures** After exhausting retries: ```mql5 Print("Permanent failure: ", result, " - ", error); // TODO: Implement dead letter queue storage ``` 3. **Critical Errors** - Network failures: Retried - 4xx Client errors: Not retried - 5xx Server errors: Retried ## Data Precision All numeric values use MT5's `double` type (15-digit precision) mapped to: ```javascript // API expects DECIMAL(18,15) Joi.number().precision(15)