Adaptive Breakout Basket automatically opens buy positions when the price breaks recent M1 highs, and sell positions when it breaks recent M1 lows, provided a minimum entry distance is maintained. The expert advisor manages these multiple positions collectively as a basket, employing a trailing stop based on total basket profits that dynamically adjusts according to the net direction bias. Risk controls include optional basket stop-loss amounts, maximum position counts, and maximum holding times, though these protective parameters are disabled by default.
Read from AdaptiveHedgeBasket_v1.03.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpMagic
long
36291761
InpLots
double
0.01
InpBreakoutLookbackBars
int
3
InpBreakoutBufferPrice
double
0.0
InpMinEntryDistancePrice
double
0.80
InpUseBasketTrailing
bool
true
InpTrailStartProfit
double
1.0
InpTrailFixedDistance
double
0.3
InpTrailPercent
double
20.0
InpUseNetPositionTrail
bool
true
InpNetTrailStrength
double
0.70
InpMinTrailMultiplier
double
0.40
Show all 25 inputs
Name
Type
Default
Description
InpBasketProfitMoney
double
1.0
InpBasketLossMoney
double
0.0
InpUseHoldingTimeStop
bool
false
InpMaxHoldingMinutes
int
17
InpUsePositionCountStop
bool
false
InpPositionCountStop
int
100
InpMaxPositions
int
9999999
InpUseWeekendEntryGuard
bool
false
InpWarnIfChartNotM1
bool
true
InpPrintDebug
bool
true
InpCloseRetrySeconds
int
2
retry interval while basket is closing
InpCloseMaxAttempts
int
0
0 = unlimited
InpUseCloseByForHedge
bool
true
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone hutamisiina/MQL_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.
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
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
This collection of Expert Advisors for MetaTrader 5 provides high-frequency scalping and multi-strategy automated trading across multiple currency pairs. The robots utilize a signal scoring system based on moving average crossovers, RSI momentum, Bollinger Band breakouts, and MACD signals. The suite includes a dedicate
Fibonacci Expert is a MetaTrader 5 robot that calculates Fibonacci levels using price extremes from a user-defined timeframe. It automatically places various pending orders, including buy stops, sell stops, buy limits, and sell limits, at specified intervals relative to these levels. The EA manages risk through individ
Prem Gold Advisor is an automated MetaTrader 5 expert advisor specialized for XAUUSD (Gold) trading on the five-minute timeframe. It initiates trades using breakout levels placed at specific distances from the candle open. The strategy features a progressive scale-in mechanism, adding new orders as the price hits succe
Straddle Grid is an automated trading robot for MetaTrader 5 that deploys bidirectional stop-order grids based on fixed price distances. The expert advisor utilizes a gates system to filter entries by ATR volatility, spread limits, and specific GMT trading sessions. It manages positions as a basket with currency-based