Users can input exact entry, stop loss, and take profit prices, along with a precise timestamp down to the second. The expert advisor handles timezone offsets by automatically converting signal times to the broker's server time. It provides flexible risk management, supporting both fixed lot sizes and risk-per-trade percentages. The tool exclusively uses pending orders to ensure accurate historical verification without the slippage associated with market entries.
Read from Backtester_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpSignalDirection
ENUM_SIGNAL_DIRECTION
SIGNAL_BUY
Signal Direction
InpEntryPrice
double
0.0
Entry Price (required)
InpStopLossPrice
double
0.0
Stop Loss Price (0=None)
InpTakeProfitPrice
double
0.0
Take Profit Price (0=None)
InpRiskPercent
double
1.0
Risk Per Trade (%)
InpStartingBalance
double
10000.0
Starting Balance
InpUseFixedLotSize
bool
false
Use Fixed Lot Size
InpFixedLotSize
double
0.1
Fixed Lot Size
InpMagicNumber
int
123456
Magic Number
InpSymbol
string
Symbol (empty=current)
InpSlippage
int
10
Slippage (points)
InpTradeComment
string
Backtester-EA
Trade Comment
Show all 22 inputs
Name
Type
Default
Description
InpTradeOncePerBar
bool
true
Trade Once Per Bar
InpEnableOptimization
bool
false
Enable Optimization
InpUseExactTime
bool
false
Use Exact Entry Time
InpSignalTimezoneOffset
double
0.0
Signal Timezone UTC Offset (hours, e.g., -5 for EST)
InpEntryYear
int
2025
Entry Year (in signal timezone)
InpEntryMonth
int
1
Entry Month (1-12, in signal timezone)
InpEntryDay
int
1
Entry Day (1-31, in signal timezone)
InpEntryHour
int
9
Entry Hour (0-23, in signal timezone)
InpEntryMinute
int
30
Entry Minute (0-59, in signal timezone)
InpEntrySecond
int
0
Entry Second (0-59, in signal timezone)
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone saundersconsult/Backtester-EA from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This risk management tool for MetaTrader 4 and 5 calculates optimal lot sizes based on user-defined risk parameters, account balance, and currency. It provides a graphical user interface for setting entry, stop loss, and take profit levels visually on the chart. The expert advisor accounts for commissions, swaps, and m
This MetaTrader 5 tool acts as a discretion helper for manual traders to simplify order execution. It automates trade entries by applying calculated risk percentages and setting predefined stop loss and take profit values in pips. The utility features integrated trailing stop functionality, allowing users to define spe
This MetaTrader 5 utility is a comprehensive manual trading panel and risk management suite. It simplifies order execution by calculating lot sizes based on a defined risk percentage of account equity. Users can manage trades via automated break-even points, multi-mode trailing stops including Fractals, Moving Averages
This utility for MetaTrader 4 and 5 automates trade execution based on trader-defined chart patterns. Users draw trendlines, horizontal lines, or channels, which the expert advisor monitors to place pending breakout orders. It handles trade entries, stop losses, and take profits according to specific object naming conv
This expert advisor functions as a manual trading assistant for MetaTrader 4 and MetaTrader 5, designed to simplify discretionary order management. It provides a graphical interface on the chart, allowing users to execute trades with pre-defined risk parameters. The tool includes options for percentage-based risk calcu
This MetaTrader 5 expert advisor scans over 60 financial instruments to identify Turtle Soup reversal setups based on Candle Range Theory. It monitors price action for specific three-candle patterns involving a range, a false breakout with a long wick, and a subsequent reversal. The EA operates as an alert-only utility