Trend Matrix EA utilizes a scoring matrix based on several technical indicators including Moving Averages, MACD, ADX, and Bollinger Bands to determine entries. The system employs a conservative pyramiding approach, adding positions to existing trades only after they have reached break-even or a significant floating profit. Risk management features include ATR-based stop losses, maximum spread filters, and a mandatory cooling-down period after a stop loss is triggered to prevent overtrading.
Read from TrendMatrixEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpAllowedSymbol
string
GOLD_
?
InpBaseLot
double
0.01
试错仓手数
InpMaxLot
double
0.10
单笔加仓上限
InpMaxTotalLots
double
0.40
同向总手数上限
InpMaxPositions
int
20
最大叠加仓位数(对冲账户)
InpMagic
ulong
26081910
魔术号 GOLD_
InpSlippage
uint
120
滑点(点)— 黄金宜偏大
InpMaxSpreadPoints
int
600
最大点差(点),0=不限;3位报价约数百点
InpMaxAddsPerBar
int
1
单根 K 线最多加仓次数
InpFastMA
int
8
快均线
InpMidMA
int
21
中均线
InpSlowMA
int
55
?
Show all 40 inputs
Name
Type
Default
Description
InpMAMethod
ENUM_MA_METHOD
MODE_EMA
InpAtrPeriod
int
14
ATR 周期
InpAdxPeriod
int
14
ADX 周期
InpAdxTrend
double
20.0
趋势 ADX 阈值(黄金稍放宽)
InpAdxRange
double
16.0
震荡 ADX 阈值
InpHTF
ENUM_TIMEFRAMES
PERIOD_H1
高周期过滤
InpUseHTFFilter
bool
true
趋势单启用高周期过滤
InpUseBreakout
bool
true
突破
InpUseTripleMA
bool
true
三均线排列
InpUseDualMA
bool
true
双均线交叉
InpUseKD
bool
true
KD ?
InpUseMACD
bool
true
MACD
InpUseMaAtrFilter
bool
true
MA+ATR 过滤器(趋势单硬门槛)
InpMinEntryScore
int
5
矩阵最低得分(回测后提高,压频率)
InpTrendBasketOnly
bool
true
一篮子只持趋势仓(不开亚盘/震荡回归种子)
InpContOpensSeed
bool
false
CONT 当新种子(默认否:只驱动已有篮子加仓)
InpDonchianPeriod
int
20
突破通道周期
InpMaAtrK
double
0.15
价格需偏离均线的 ATR 倍数
InpStoK
int
5
InpStoD
int
3
InpStoSlow
int
3
InpStoOS
double
20.0
KD ?
InpStoOB
double
80.0
KD ?
InpMacdFast
int
12
InpMacdSlow
int
26
InpMacdSignal
int
9
InpBBPeriod
int
20
InpBBDev
double
2.0
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone Rhett-Q/TrendMatrixEA 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.
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.
This MetaTrader 5 expert advisor combines Bollinger Band mean-reversion, squeeze breakouts, and EMA crossover trend following. It filters for ranging markets using a long-period EMA slope to execute reversal trades with candlestick confirmation, specifically identifying Doji patterns at the bands. Risk management inclu
This MetaTrader 5 expert advisor focuses on the EURUSD pair using an adaptive market regime approach. It alternates between trend-following and mean-reversion logic based on ADX and EMA indicators. The trend strategy utilizes price breakouts or pullbacks confirmed by RSI, while the range strategy employs Bollinger Band
This expert advisor for MetaTrader 5 implements a medium-term swing trading strategy using multiple technical indicators. It identifies entries through two primary methods: trend reversals and breakouts from consolidation zones. The reversal logic utilizes Fibonacci retracement levels combined with Stochastic and MACD
This expert advisor is designed specifically for trading gold on the MetaTrader 4 platform. It employs a hybrid strategy approach, allowing users to toggle between trend following using moving average crossovers, mean reversion via RSI and Stochastic divergence, and breakout patterns. Trade management includes automate
EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario
Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index