Gold BTC Hedge Grid EA opens both long and short initial positions simultaneously without waiting for indicator crossovers. When price moves against active positions, it places counter-trend grid orders at specified point intervals up to set order and lot limits. All open positions are closed in a basket once total floating profit reaches a configurable monetary target. Built-in risk management features include a maximum spread filter and a fast-scalp circuit breaker that halts trading if consecutive cycles close under a minimum duration threshold. It includes an interactive chart control panel.
Dual-direction hedging with simultaneous buy and sell entries
Counter-trend grid layer additions at fixed point steps
Basket order closure based on monetary profit target
Maximum spread limit and fast-scalp circuit breaker protection
Interactive on-chart panel with pause and manual close buttons
Read from GoldBTC_HedgeGrid_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpMagic
long
20260928
魔术号(不同图表设不同值)
InpTargetProfit
double
50.0
总盈利目标(账户货币)达标全平
InpFirstLot
double
0.01
首单固定手数
InpAddLot
double
0.01
逆势加仓固定手数
InpMaxLotPerOrder
double
1.00
单次最大手数(封顶)
InpMaxAddCount
int
10
最大加仓次数(每方向)
InpGridStepPoints
double
300
逆势阶梯间距(点)
InpFastMA
int
20
快速均线周期
InpSlowMA
int
60
慢速均线周期
InpMAMethod
ENUM_MA_METHOD
MODE_SMA
均线方法
InpMATF
ENUM_TIMEFRAMES
PERIOD_CURRENT
均线时间周期
InpMaxSpreadPoints
double
50
最大点差(点)超限禁止开仓
Show all 16 inputs
Name
Type
Default
Description
InpOpenBuyFirst
bool
true
自动开多首单
InpOpenSellFirst
bool
true
自动开空首单
InpScalpSeconds
int
15
单轮存活<该秒数=秒进秒出
InpScalpMaxStreak
int
3
连续N轮秒进秒出则停止EA
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone jliushi/mt5-gold-btc-ea 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.
High Frequency Grid EA is an automated trading robot for MetaTrader 5 that implements a mean-reversion strategy through a grid of pending orders. It places buy and sell stop orders at calculated distances, using dynamic spread monitoring to ensure execution only during favorable conditions. The EA includes a trailing s
This grid trading robot for MetaTrader 5 automates the placement of multiple limit orders within a user-defined price range. It populates the market with a configurable number of buy and sell limit orders between specified high and low boundaries. The expert advisor includes risk management features such as individual
This MetaTrader 5 expert advisor is designed for gold trading, utilizing a multi-timeframe strategy across the M15, H1, and H4 charts. It integrates technical indicators including ADX, RSI, and Moving Averages to identify trend-following and breakout opportunities. Risk controls include dynamic lot sizing based on acco
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 expert advisor facilitates arbitrage trading between futures and spot instruments, primarily targeting gold and stock indices. Available for MetaTrader 4 and 5, it monitors the price difference between two related symbols against a moving average to identify trade opportunities. The logic includes a noise-filterin
AutoTrade EA is a scalping robot for MetaTrader 4 and 5 that utilizes a multi-indicator signal scoring system based on Exponential Moving Average crossovers and RSI levels. It employs an aggressive trade management strategy featuring a dynamic grid and a stepped martingale lot scaling system where position sizes increa