Trading robot · MT5

Linear Regression Trading Bot

by nickmaglowsch

This MetaTrader 5 expert advisor implements a trade execution strategy based on a linear regression model.

GitHub stars2
Forks0
Last update5 years ago20 Jun 2021
LicenceNone stated

Overview

Linear Regression Trading Bot 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 operations with configurable start and end times, alongside a day trade mode for closing positions before market close. Risk is managed through a fixed volume and a manual stop loss setting. The repository contains multiple versions focusing on cointegration and residues, though the documentation is minimal.

Details

Author

nickmaglowsch on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

AI / machine learning, Mean reversion

Markets

Indices, Forex

Timeframes

M15-H1

Risk profile

  • Trades without a fixed stop loss

Input parameters

Read from modelo rsi.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Magiculong133713131Número mágico
Volumeint1Volume
sldouble0.0stoploss
longBiasboolfalse
dayTradeboolfalseApenas Operações de daytrade?
iniciostring17:00Horário de Início de scan (entradas)
terminostring17:00Horário de Término
fecharDayTradestring17:45Horário de Término
intercepdouble0.000306542intercep 0.014136315711545317
x1double3.79E-02x1 vol_pct
x2double-4.48E-02x2 BVSP_shift
x3double2.18E-04x3 alta_baixa
Show all 14 inputs
NameTypeDefaultDescription
x4double-2.10E-05x4 std_rsi
x5double2.10E-05x5 adx

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone nickmaglowsch/mt5-bot-linear-regression 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.
  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

9 stars

This MetaTrader 5 expert advisor executes a counter-trend strategy utilizing Bollinger Bands and the Slow Stochastic oscillator. 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

MT5 Trading robot Mean reversionAI / machine learning
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

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