Oil Hedge monitors the price spread between the two assets, opening buy and sell positions simultaneously when the spread expands or narrows beyond defined thresholds. The EA manages exits based on spread reversion targets. It includes an optional position-adding feature with lot size multipliers for managing drawdown. No traditional hard stop loss is defined in the input parameters, as it relies on spread convergence for trade closure.
Read from OilHedge.mq4. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
High_Symbol
string
UKOIL
高价品种
Low_Symbol
string
USOIL
低价品种
magics
int
500
魔数
lots
double
0.1
手数
MaxOrder
double
2
最大订单数
Open_Price_Expand
double
3.75
差价扩大到该值时开单
Open_Price_Narrow
double
3.25
差价缩小到该值时开单
isAddPosition
bool
false
是否开启加仓
Add_Positions_Val
double
0.1
加仓的差价间隔
lots_multi
double
1.5
加仓倍数
Close_Price_Expand
double
3.5
差价达到该值?
Close_Price_Narrow
double
3.5
差价达到该值?
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone vvvf/OilHedge from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL4/Experts.
3Copy the filesCopy the .mq4 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.
Icarus is an automated trading system for MetaTrader 4 that employs a grid strategy with Martingale lot scaling. It utilizes Bollinger Bands and the Stochastic Oscillator to identify entry points, offering a conjunctive mode for filtered execution. The EA manages risk through maximum position limits, equity warning thr
This MetaTrader 4 robot implements a multi-currency mean-reversion strategy, targeting price returns to the average on correlated forex pairs. It manages trades using a grid system with a significant martingale multiplier to scale lot sizes. The expert advisor allows for simultaneous trading on multiple symbols to dive
Arbitrage Expert is a MetaTrader 4 expert advisor that focuses on a zone recovery hedging strategy rather than traditional arbitrage. Based on the OGT Zone Recovery system, it manages trades by opening counter-positions within a defined price zone when an initial trade goes into drawdown. The system employs a lot multi
This MetaTrader 4 expert advisor is an automated grid trading system that utilizes a variety of indicators including Moving Averages, CCI, Bollinger Bands, and MACD for trade entries. It employs a martingale-style lot multiplier to manage position sizing across sequential grid levels. The software includes risk control
This MetaTrader 5 expert advisor functions as a grid-based recovery system that can operate independently or manage trades from external EAs via magic number filtering. It initiates entries using Bollinger Bands and RSI indicators, then manages drawdown through a recovery grid matrix. The system employs dynamic ATR-bas
Advanced Grid Trading is a MetaTrader 5 expert advisor that manages a complex grid strategy across four configurable layers. It places stop and limit orders at fixed intervals, employing either fixed or geometric lot scaling for increased grid depth. Trade management includes a shared profit pool used to close losing p