Trading robot · MT5

Backtestd Expert

by stfl

This MetaTrader 5 expert advisor provides a framework for testing and executing indicator-based strategies, specifically those aligned with the No Nonsense Forex methodology.

GitHub stars7
Forks5
Last update5 years ago24 Jun 2021
LicenceNone stated
Latest release1.25 years ago

Overview

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.

Details

Author

stfl on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Trend following, Breakout

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Input parameters

Read from backtestd-expert.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Expert_Titlestringbacktestd-expertDocument name
Expert_ProcessOnTimeLeftint10 * 60Time in seconds to run before the candle closes
Signal_Expirationint1Expiration of pending orders (in bars)
Backtest_ModeSelectBACKTEST_MODEManualBacktest Trading Preset
Input_Backtest_MetricCUSTOM_METRICMetric_CVaR
Backtest_Metric_VaR_Quantiledouble0.8Quantile for VaR | CVaR
Input_Money_ScaleOutbooltrueScale out | close half of the trade at a take profit level (usually Open+1xATR)
Input_Money_AddTakeProfitbooltrueset a TP on the trade
Money_Riskdouble0.2Risk per trade
Money_StopLeveldouble1.5Stop Loss level ATR multiplier
Money_TakeLeveldouble1.0Take Profit level ATR multiplier
Input_Money_TrailingModeTRAILING_MODEATRTrailTrailing Stop Mode
Show all 40 inputs
NameTypeDefaultDescription
Money_TrailingStopATRLeveldouble2.5Distance of the trailing stop ATR multiplier
Algo_BaselineWaitint7candles for the baseline to wait for other indicators to catch up
Confirm_IndicatorstringName of Confirmation Indicator to use
Confirm_SignalClassENUM_SIGNAL_CLASSPresetType|Class of Indicator
Confirm_Shiftuint0Shift in Bars
Confirm_input0double0.Confirm input 0
Confirm_input1double0.Confirm input 1
Confirm_input2double0.Confirm input 2
Confirm_input3double0.Confirm input 3
Confirm_input4double0.Confirm input 4
Confirm_input5double0.Confirm input 5
Confirm_input6double0.Confirm input 6
Confirm_input7double0.Confirm input 7
Confirm_input8double0.Confirm input 8
Confirm_input9double0.Confirm input 9
Confirm_input10double0.Confirm input 10
Confirm_input11double0.Confirm input 11
Confirm_input12double0.Confirm input 12
Confirm_input13double0.Confirm input 13
Confirm_input14double0.Confirm input 14
Confirm_buffer0int-1
Confirm_buffer1int-1
Confirm_buffer2int-1
Confirm_buffer3int-1
Confirm_buffer4int-1
Confirm_param0double0.
Confirm_param1double0.
Confirm_param2double0.

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone stfl/backtestd-expert from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 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.

Similar expert advisors

Nyao Scalper

by elrizwiraswara
173 stars

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

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper

Golden Strategist EA

by raracraz
68 stars

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

MT5 Trading robot Trend followingBreakout
Updated 2 years ago None stated GitHub repository of Golden Strategist EA

Black XAU Automated Bot

by phatnomenal
48 stars

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

MT5 Trading robot BreakoutTrend following
Updated 11 months ago None stated GitHub repository of Black XAU Automated Bot

Box Breakout EA

by je-zhou
26 stars

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

MT4MT5 Trading robot BreakoutTrend following

Binario

by EarnForex
20 stars

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

MT4MT5 Trading robot BreakoutTrend following
Updated 1 year ago Apache-2.0 GitHub repository of Binario

Prop Firm EA Fleet

by cgemise971
20 stars

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

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 9 months ago None stated GitHub repository of Prop Firm EA Fleet

More trading robots

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers