This MetaTrader 5 expert advisor provides a framework for testing and executing indicator-based strategies, specifically those aligned with the No Nonsense Forex methodology.
Backtestd Expert allows users to define a baseline and a secondary confirmation indicator through external inputs. Trade management includes automated ATR-based stop loss and take profit levels, along with trailing stop functionality. The EA features risk management tools like position sizing based on account percentage and a scale-out option to secure partial profits. It incorporates advanced backtesting metrics such as CVaR and Value at Risk for performance evaluation.
ATR-based stop loss and take profit multipliers
Support for custom external confirmation indicators
Partial position scale-out logic at target levels
Advanced risk metrics including CVaR and Value at Risk
Configurable baseline and signal expiration settings
Read from backtestd-expert.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
Expert_Title
string
backtestd-expert
Document name
Expert_ProcessOnTimeLeft
int
10 * 60
Time in seconds to run before the candle closes
Signal_Expiration
int
1
Expiration of pending orders (in bars)
Backtest_ModeSelect
BACKTEST_MODE
Manual
Backtest Trading Preset
Input_Backtest_Metric
CUSTOM_METRIC
Metric_CVaR
Backtest_Metric_VaR_Quantile
double
0.8
Quantile for VaR | CVaR
Input_Money_ScaleOut
bool
true
Scale out | close half of the trade at a take profit level (usually Open+1xATR)
Input_Money_AddTakeProfit
bool
true
set a TP on the trade
Money_Risk
double
0.2
Risk per trade
Money_StopLevel
double
1.5
Stop Loss level ATR multiplier
Money_TakeLevel
double
1.0
Take Profit level ATR multiplier
Input_Money_TrailingMode
TRAILING_MODE
ATRTrail
Trailing Stop Mode
Show all 40 inputs
Name
Type
Default
Description
Money_TrailingStopATRLevel
double
2.5
Distance of the trailing stop ATR multiplier
Algo_BaselineWait
int
7
candles for the baseline to wait for other indicators to catch up
Confirm_Indicator
string
Name of Confirmation Indicator to use
Confirm_SignalClass
ENUM_SIGNAL_CLASS
Preset
Type|Class of Indicator
Confirm_Shift
uint
0
Shift in Bars
Confirm_input0
double
0.
Confirm input 0
Confirm_input1
double
0.
Confirm input 1
Confirm_input2
double
0.
Confirm input 2
Confirm_input3
double
0.
Confirm input 3
Confirm_input4
double
0.
Confirm input 4
Confirm_input5
double
0.
Confirm input 5
Confirm_input6
double
0.
Confirm input 6
Confirm_input7
double
0.
Confirm input 7
Confirm_input8
double
0.
Confirm input 8
Confirm_input9
double
0.
Confirm input 9
Confirm_input10
double
0.
Confirm input 10
Confirm_input11
double
0.
Confirm input 11
Confirm_input12
double
0.
Confirm input 12
Confirm_input13
double
0.
Confirm input 13
Confirm_input14
double
0.
Confirm input 14
Confirm_buffer0
int
-1
Confirm_buffer1
int
-1
Confirm_buffer2
int
-1
Confirm_buffer3
int
-1
Confirm_buffer4
int
-1
Confirm_param0
double
0.
Confirm_param1
double
0.
Confirm_param2
double
0.
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone stfl/backtestd-expert 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.
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
This MetaTrader 5 expert advisor specializes in trading Gold (XAUUSD) by targeting volatility during the New York session. It utilizes an Average True Range (ATR) indicator to identify market trends and determine entry levels for limit orders. Risk management includes fixed stop loss parameters and dynamic trailing sto
Black XAU is an automated trading robot for MetaTrader 5, specifically designed for gold. It utilizes a multi-timeframe breakout and retest strategy, identifying trading zones based on initial H4 market structure. Entries are triggered on the M5 timeframe when price retests a confirmed breakout level. The expert adviso
This MetaTrader 5 expert advisor implements a box breakout strategy designed for the foreign exchange market. The robot identifies price ranges during specific time windows and enters trades upon a breakout. It features a trend filter using fast and slow moving averages to align entries with broader market direction. R
Binario is a breakout expert advisor for MetaTrader 4 and 5 that utilizes a price channel constructed from two moving averages of the same period. By default, it uses a 144-period exponential moving average applied to both highs and lows. It enters trades when the price moves outside this band by a predefined pip dista
Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man