Trace the first gate that stays false
Add one concise log at initialization, event entry, data readiness, signal evaluation, request precheck, and send result. The first missing or false gate defines the next investigation.
| Gate | Evidence | Typical correction |
|---|---|---|
| Initialization | OnInit return and Journal | Fix handle, input, or resource setup |
| Events | OnTick or OnTimer counter | Choose a compatible tester mode and handler |
| Data | BarsCalculated and copy counts | Wait for required history and buffers |
| Signal | Named condition values | Fix impossible filters or time comparisons |
| Request | OrderCheck result | Repair volume, price, stops, or filling |
| Server outcome | MqlTradeResult.retcode | Handle permission, market, funds, or connection |
