MetaTrader 5
Using the Journal in Strategy Tester
Short guide: where to read logs and errors
When backtesting in MetaTrader 5, the Strategy Tester includes a Journal tab that shows messages, errors, and events from your Expert Advisor (EA) or indicator. This is the first place to look when something doesn’t work.
Where to find it
- Open the Strategy Tester (View → Strategy Tester or Ctrl+R).
- Run a backtest (or start and immediately stop one) so the tester produces output.
- Click the Journal tab in the Strategy Tester panel to see logs for that run.
What you’ll see
- Initialization messages (inputs, symbol, timeframe)
- Trade operations and events
- Print statements from your code (e.g.,
Print()
) - Errors and warnings (compile/run‑time)
- Final summary lines after the test completes
Common issues to diagnose
- No trades executed: conditions never met; check dates/timeframe and your entry logic.
- “Trade disabled” or order errors: verify input parameters and trading permissions.
- File/indicator missing: confirm paths, ensure the compiled file exists in the correct folder.
- Parameter mistakes: review the Inputs tab and ensure types/values are valid.
Workflow suggestions
- Run a short backtest window to iterate quickly.
- Watch Visualization for context while reading the Journal.
- Adjust inputs or code, recompile (F4 → Compile), and re‑run.