Trading robot · MT5

AI Forex Istoch BB CounterTrend

by marco82ger

This MetaTrader 5 expert advisor executes a counter-trend strategy utilizing Bollinger Bands and the Slow Stochastic oscillator.

GitHub stars9
Forks7
Last update4 years ago17 Nov 2021
LicenceNone stated

Overview

Developed as part of academic research into deep learning and technical analysis, the robot incorporates Heiken Ashi filtering to identify market extensions and doji candles. It manages risk through automated money management with percentage-based lot sizing, dynamic stop losses calculated from historical price bars, and a trailing stop mechanism. The system includes a daily Bollinger Band breakout filter and can be restricted to trade only at the start of new bars.

Details

Author

marco82ger on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

Mean reversion, AI / machine learning

Markets

Forex

Timeframes

M15-H1, H4 and above

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 EA_istoch_BB_v08.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
CANDLEandMARKETstringBAR & MARKET
Slippageulong3Deviation
MagicNumberulong573Magic Number
TradeOnNewBarbooltrueTrade on new Bar settings
MaxBarExtensionint1400Definition of Bar too extended
MinBarExtensionint250Definition of doji bar
MarketMovingHorizint400Definition of Market moving orizzontally
MinConsDojiint10Min consecutive doji
CandleHAstringHeiken Ashi
UseHAbooltrue
MinHAExtensionint200Definition of HA doji bar
MMstringMoney Management. Max Risk can be 10%, set in MoneyManagement
Show all 40 inputs
NameTypeDefaultDescription
UseMoneyManagementbooltrue
BigRiskPercentdouble4
RiskPercentdouble2
FixedVolumedouble0.1
SLstringStop Loss & Take Profit
IntervalSLint5Num of Bars to look in the past to take the min/max for SL
StopLossint400SL: Initial fixed SL
MaxSLint600SL: Max fixed SL
TP_XSLdouble2TP: it is X times the SL. If 0 is not taken
TSstringTrailing Stop. If used almost cancel TP
UseTrailingStopbooltrue
UseDynamicTSboolfalseUseDynamicTS: only checked if UseTS is True
TrailingStopint600
MinimumProfitint700
Stepint10Step, if it is <10, it is set to 10 in TrailingStop
BEstringBreak Even
UseBreakEvenboolfalse
BreakEvenProfitint0
LockProfitint0
BBstringBollinger Bands
UseBBboolfalse
BandsPeriodint5
BandsShiftint0
BandsDeviationdouble1.8
BandsPriceENUM_APPLIED_PRICEPRICE_CLOSE
BBBreakoutstringBollinger Bands for Breakout, only on daily!
UseDailyBBBreakoutbooltrue
IntervalBBBreakoutint20Number of Bars to look ahead in the past to take the min for bandwidth in BB

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone marco82ger/AI_forex_fisichella_garolla 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

6 stars

This MetaTrader 5 expert advisor provides a versatile framework for trading based on Heiken Ashi price action. It allows users to toggle between numerous built-in strategies, including trend following, moving average crossovers, Fibonacci levels, and various oscillators like RSI and MACD. The system includes an option

MT5 Trading robot Trend followingIndicator crossoverMean reversion
Updated 2 years ago None stated GitHub repository of Heiken Ashi Complete Strats
2 stars

This MetaTrader 5 expert advisor implements a trade execution strategy based on a linear regression model. It calculates entries using specific coefficients for an intercept and five independent variables, which include volatility, relative strength index, and average directional index data. The bot supports intraday o

MT5 Trading robot AI / machine learningMean reversion

The AI Quantum Learning Advanced Trailing Stop EA is an automated trading robot for MetaTrader 5 that employs neural network structures and quantum probability calculations. It monitors market patterns by analyzing price changes, volume, volatility, and indicators like RSI. The EA manages risk using fixed stop loss and

MT5 Trading robot AI / machine learningMean reversion
1 stars

LQS AI Institutional Engine is a MetaTrader 5 robot designed for trading gold using market microstructure analysis. It combines four analytical modules focusing on liquidity sweeps, order flow divergence, Wyckoff accumulation and distribution phases, and multiple anchored VWAP levels. The system features an integrated

MT5 Trading robot SMC / ICT / price actionAI / machine learningMean reversion High risk
Updated 4 months ago None stated GitHub repository of Lqs Ai Institutional Engine

Quantum AU

by jarbcs1-prog
1 stars

This automated trading robot for MetaTrader 5 is designed specifically for gold and silver markets. It utilizes an AI-driven approach incorporating quantum state modeling and a chaos filter to identify market entries. The strategy weights inputs from RSI, ADX, and moving averages against an adaptive decision threshold.

MT5 Trading robot AI / machine learningTrend followingMean reversion High risk
Updated 10 months ago None stated GitHub repository of Quantum AU
1 stars

This MetaTrader 5 expert advisor utilizes a multi-layer perceptron neural network to enhance statistical arbitrage strategies. It periodically scans major currency pairs to identify high correlation relationships across multiple lookback windows. Trade signals are generated based on a confidence threshold derived from

MT5 Trading robot ArbitrageAI / machine learningMean reversion

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