The system identifies market direction through multi-timeframe analysis using Exponential Moving Averages and the Average Directional Index. It features dynamic grid spacing that adjusts based on market volatility and a trend-aware entry filter. Risk management is handled through equity protection settings, maximum exposure limits, and a breakout recovery mechanism. The EA also supports an anti-martingale mode for compounding positions during favorable price movements.
Read from 智能网格马丁EA_完美版_fixed.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
CommentStr
string
SmartGridMartingale
订单注释
MagicNumber
ulong
20241111
魔术码
InitialLot
double
0.01
初始手数
Slippage
int
3
滑点
TestMode
bool
true
测试模式
EnableDebugLog
bool
true
启用调试日志
EnableAlerts
bool
true
启用警报
MaxGridLayers
int
15
最大网格层数
GridDistance
double
40
网格间距
DynamicGrid
bool
true
动态调整网格间距
GridMinDistance
double
25
最小网格间距
GridMaxDistance
double
120
最大网格间距
Show all 40 inputs
Name
Type
Default
Description
GridTakeProfit
double
50
网格止盈点数
MinTicksBetweenOrders
int
3
订单间最小tick数
ResetGridOnProfit
bool
true
盈利后重置网格
MaxGridShift
double
600
最大网格偏移点数
EnableGridExpansion
bool
true
启用网格扩展机制
GridExpansionFactor
double
1.1
网格扩展因子
MartingaleMultiplier
double
1.1
马丁倍率
MaxMartingaleLayers
int
4
最大马丁层级
LayerLossPercent
double
0.3
触发加仓的亏损比例
SmartMartingale
bool
true
智能马丁(趋势感知)
AntiMartingaleMode
bool
true
反马丁模式(盈利加仓)
ProfitMultiplier
double
1.2
盈利加仓系数
EnableAdaptiveMartingale
bool
true
启用自适应马丁格尔
MaxMartingaleExposure
double
0.2
最大马丁格尔风险敞口(20%)
TrendTimeframe
ENUM_TIMEFRAMES
PERIOD_H1
趋势判断时间框架
MAPeriod
int
20
移动平均线周期
MAMethod
ENUM_MA_METHOD
MODE_EMA
MA计算方法
ADXPeriod
int
14
ADX周期
ADXThreshold
double
20
ADX趋势阈值
TrendStrength
double
0.8
趋势强度系数
EnableMultiTimeframeAnalysis
bool
true
启用多时间框架分析
SecondaryTimeframe
ENUM_TIMEFRAMES
PERIOD_M30
次要趋势判断时间框架
TrendConfirmationThreshold
double
0.7
趋势确认阈值
EnableBreakout
bool
false
启用突围机制
KeepLastLayers
int
2
保留最后几层网格
BreakoutStopPercent
double
15
触发突围的亏损百分比
SeedStopLoss
double
200
种子仓位止损点数
BreakoutTimeLimit
int
24
突围时间限制(小时)
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone chenhengyi53-design/SmartGridMartingaleEA 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.
Bot Trend is a trend-following expert advisor for MetaTrader 5. It utilizes proprietary Francisca entry logic and manages trades through multiple concurrent execution threads. The system incorporates custom Zero Gravity step logic for position management and includes specific operational modes for Fridays and holidays.
IchiDCA CCBSN PropFirm EA is an automated trend-following robot for MetaTrader 5, optimized for gold and forex markets. It triggers trades based on Ichimoku Cloud breaks, filtered by dual Exponential Moving Averages and MACD indicators. The strategy manages positions through a Dollar Cost Averaging system that layers u
STO Martin is a grid-based trading robot for MetaTrader 5 that uses technical indicators to manage entries and recoveries. It employs a Stochastic Oscillator for execution signals and a Moving Average to filter trades according to the prevailing trend. The EA features a martingale lot-scaling system that adds positions
This MetaTrader 5 expert advisor is designed for trading XAUUSD using a trend-following approach. It identifies entries through a triple Exponential Moving Average crossover system, requiring ADX momentum confirmation before opening positions. To manage losing trades, the EA employs a martingale strategy that layers or
This MetaTrader 5 expert advisor implements a basket-trading strategy specifically for XAUUSD. It opens an initial position based on the current short-term trend and enters additional trades at fixed intervals if the market moves against the basket. The robot utilizes a progressive lot-sizing model to manage the grid.
This MetaTrader 5 expert advisor utilizes the Ichimoku Kinko Hyo indicator for trend identification, specifically targeting gold on the 15-minute timeframe. It employs a grid-based trading strategy that layers orders at fixed point distances when the market moves against the initial entry. To manage these positions, th