Collection · MT4

Mt4 Ai Trading

by 160037lk

This MetaTrader 4 expert advisor connects to a Python FastAPI backend to facilitate automated trading based on Claude AI signals.

GitHub stars2
Forks0
Last update4 months ago22 May 2026
LicenceNone stated

Overview

The system transmits market data to the server, which performs multi-indicator analysis and sentiment processing before returning trade recommendations. It features multi-timeframe trend filtering across M5, H1, and H4 charts, supply and demand zone detection, and news sentiment integration. Risk controls include an equity drawdown guard, maximum position limits, session filters, and dynamic lot sizing.

Details

Author

160037lk on GitHub

Type

Collection

Platform

MetaTrader 4 (MQL4)

Strategy

AI / machine learning, Trend following, News, SMC / ICT / price action

Markets

Gold, Forex

Timeframes

M1-M5, M15-H1

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 V1.6.4_新闻.mq4. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Lotsdouble0.01
MagicNumberint8896
Timeoutint5000
MaxSlippageint5
MaxSpreadint2000
MaxPositionsint2
InterOrderDelayMsint200
MinSecondsBetweenBatchesint60Entry cooldown (seconds)
EnableDrawdownGuardbooltrue
MaxDrawdownPercentdouble8.0
DrawdownPauseSecondsint600
DrawdownAlertCooldownSecondsint60
Show all 40 inputs
NameTypeDefaultDescription
PersistRuntimeStatebooltrue
EnableDynamicLotSizingbooltrue
MinLotMultiplierdouble0.5
MaxLotMultiplierdouble1.5
ServerURLstringhttp://127.0.0.1:5000
AuthTokenstringMySecretToken123
EnableWinInetFallbackbooltrue
AutoDisableWebRequestOn5200booltrue
AdvisoryPollSecondsint5
AdvisoryHistoryBarsint120
AdvisoryUsePostbooltrue
AdvisoryHTFTimeframeintPERIOD_H1
AdvisoryHTFHistoryBarsint120
EnableLocalRuleTradingbooltrue
EnableBackendAdvisoryTradingboolfalse
EnableAIAutoTradingboolfalse
AutoTradeMinConfidencedouble0.70
EntryTimeframeintPERIOD_M5M5 entry
ConfirmTimeframeintPERIOD_H1H1 confirmation
TrendTimeframeintPERIOD_H4H4 trend filter
EnableSessionFilterboolfalse
SessionStartHourint0
SessionEndHourint24
AvoidAsianSessionboolfalse
AsianSessionStartint0
AsianSessionEndint0
EnableSupplyDemandbooltrue
SDLookbackint20Bars to detect S/D zones

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone 160037lk/mt4-ai-trading from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
  3. 3Copy the filesCopy the .mq4 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

Super Trading Collection

by RoyluxuryTrading
24 stars

This repository provides a collection of MetaTrader 4 and 5 expert advisors, including the modular Super Trading Bot series and an AI-driven trading template. The EAs utilize various technical indicators like Bollinger Bands, Parabolic SAR, and moving averages for trend-following and scalping. Built-in risk management

MT4MT5 Collection Trend followingScalpingAI / machine learning High risk
16 stars

This repository provides a collection of MetaTrader 4 expert advisors, centered around the OverLord robot which utilizes logistic regression models. OverLord determines entries by calculating price directionality over various tick counts and analyzing moving average slopes against hardcoded coefficients. In addition to

MT4 Collection AI / machine learningIndicator crossoverTrend following
Updated 8 years ago None stated GitHub repository of OverLord MQL4 Code Samples

Suvorov MQL4 Expert Collection

by suvorovkonstantin
9 stars

This repository contains a collection of MetaTrader 4 expert advisors focusing on technical analysis and pattern recognition. The included tools range from robots utilizing Volume Spread Analysis (VSA) and fractal-based trend detection to indicators like NeuroMACD and ACD patterns. The primary EA uses ZigZag and fracta

MT4 Collection Trend followingSMC / ICT / price actionIndicator crossover

AE Expert Curious

by mofostopheles
6 stars

AE Expert Curious is a collection of MetaTrader 4 expert advisors based on the Raghee Horner trend-following methodology. It utilizes specific Exponential Moving Average crossovers, including the 13, 21, 34, and 55-period lines, to determine market direction and momentum. The strategy incorporates several technical fil

MT4 Collection Trend followingIndicator crossoverSMC / ICT / price action
Updated 6 years ago None stated GitHub repository of AE Expert Curious
6 stars

This MetaTrader 4 repository contains a collection of experts and tools focused on technical indicators and machine learning. It features an implementation of Alexander Elder's Triple Screen strategy using Exponential Moving Averages and MACD to filter trends and entries. Additionally, the collection includes a machine

MT4 Collection Trend followingIndicator crossoverAI / machine learning Archived
Updated 8 years ago None stated GitHub repository of Mql Projects Collection

Tony Tan EA Collection

by leciffre69
4 stars

This collection of MetaTrader 4 expert advisors provides several distinct trading strategies including candlestick pattern recognition, moving average trends, and currency strength analysis. The repository contains a dedicated martingale algorithm alongside robots focused on engulfing and morning star patterns. The pri

MT4 Collection Trend followingMartingaleSMC / ICT / price action High risk
Updated 10 months ago None stated GitHub repository of Tony Tan EA Collection

More collections

Need a broker for MT4?

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

Compare brokers