Backtesting Setup
Running a backtest lets you evaluate Banana EA MT5's historical performance on your chosen pair, timeframe, and settings before risking real capital.
Opening the Strategy Tester
In MetaTrader 5 go to View → Strategy Tester (or press Ctrl+R).
Tester settings
| Field | Recommended value |
|---|---|
| Expert Advisor | BananaEA Auto |
| Symbol | Your chosen pair (e.g. EURUSD) |
| Timeframe | Your target timeframe (e.g. M15 or H1) |
| Modelling | Every tick based on real ticks (most accurate) |
| Date range | At least 1–2 years for reliable statistics |
| Deposit | Your intended starting balance |
| Visual mode | Off for speed, On to watch execution bar by bar |
Configuring inputs
Click Settings in the Strategy Tester, then open the Inputs tab. Set the same values you intend to use live. Key inputs to check:
- License Key — not required for backtesting (tester mode is detected automatically)
- Risk Value — use the same % you plan to use live
- Session times — verify they match your broker's historical data time offset
- Historical Signal Depth — set
MaxBarsToPlot = 0to disable chart arrow drawing in tester mode; it slows the run significantly
Data quality
MT5 needs tick data for the symbol and timeframe you are testing, plus Daily data for the Daily Range Filter. To download tick history:
- Open a chart for the pair.
- Go to Tools → History Center (or the Data tab in Strategy Tester).
- Select the symbol and click Download.
MT5 downloads tick data from your broker's server. Coverage varies by broker. For longer or more accurate history, third-party tick data providers can be imported via the History Center.
Running the test
Click Start. When complete, review the Results and Report tabs.
Use Optimization Set Name to label each run. The name appears on the dashboard when the EA is running live, making it easy to track which parameter set you are trading.
Interpreting results
| Metric | What to look for |
|---|---|
| Profit Factor | > 1.5 is a reasonable starting target |
| Max Drawdown % | Should be well within your broker/prop-firm limits |
| Total Trades | < 50 trades gives unreliable statistics |
| Win Rate | Secondary to profit factor; 40–50% win rate with good R:R is typical |
A single backtest on one pair and one date range is not sufficient validation. Run across multiple pairs, multiple years, and both trending and ranging market regimes before going live.