Collection · MT5

Daily Straddle Basket EA

by shibu1x

This collection of MetaTrader 5 expert advisors focuses on grid and basket trading strategies.

High risk

GitHub stars1
Forks0
Last update5 days ago18 Sep 2026
LicenceNone stated

Overview

The core system establishes a reference price based on a specific hourly candle to initiate buy and sell grids. It manages risk using volume-weighted basket targets for take profit and stop loss. The EA employs aggressive lot scaling and dynamic grid spacing multipliers. It also features time-based filters, including a specific window for closing trades at reduced profit targets before the end of the trading session.

Details

Author

shibu1x on GitHub

Type

Collection

Platform

MetaTrader 5 (MQL5)

Strategy

Grid, Martingale, News, Mean reversion, Hedging

Markets

Any symbol

Timeframes

M15-H1

Risk Profile

  • Uses martingale lot scaling: losses can grow fast
  • Opens a grid of orders: exposure builds up in a trend
  • Holds opposite positions at once
  • Trades without a fixed stop loss

Input Parameters

Read from DailyStraddleBasket.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
ReferenceHourint1Reference Hour (server time, 0-23): the close of this hour's bar becomes the reference price
ReferenceMaxDistancePipsint130Max Distance from Reference Price to Allow Nanpin (pips, 0 = no limit)
LotSizedouble0.01Initial Lot Size
LotMultiplierdouble1.5Lot Multiplier per Grid Level (1.0 = fixed lot)
GridStepPipsint10Grid Step (pips)
GridStepMultiplierdouble1.2Grid Step Multiplier per Grid Level (1.0 = fixed step)
MaxGridLevelsint16Max Grid Levels (common, 0 = unlimited; used unless a per-direction value is set)
BasketTakeProfitPipsint100Basket Take Profit (pips, volume-weighted avg, 0 = disabled)
BasketStopLossPipsint0Basket Stop Loss (pips, volume-weighted avg, 0 = disabled)
MaxSpreadPipsdouble1.0Max Spread to Allow New Entries (pips, 0 = no limit)
MagicNumberint8007Magic Number
TradingStartHourint1Trading Start Hour (server time, 0-23)
Show all 24 inputs
NameTypeDefaultDescription
TradingEndHourint0Trading End Hour (server time, 0-23; start == end means no restriction)
ProfitCloseStartHourint21Profit Close Window Start Hour (server time, 0-23; start == end disables this feature)
ProfitCloseEndHourint23Profit Close Window End Hour (server time, 0-23)
ProfitCloseTargetPipsint10Profit Close Target (pips, volume-weighted avg, 0 = disabled)
BuyOpenNewbooltrueOpen New Buy Baskets (false = close-only for an open basket)
BuyMaxGridLevelsint0Buy Max Grid Levels (0 = use common MaxGridLevels; >=1 overrides it)
BuyUpperLimitPricedouble0Buy Upper Limit Price (0 = no limit)
BuyEntryDistancePipsint0Buy Level-0 Entry Distance Below Reference Price (pips, 0 = open at/below reference price; negative = allow entry above
SellOpenNewbooltrueOpen New Sell Baskets (false = close-only for an open basket)
SellMaxGridLevelsint0Sell Max Grid Levels (0 = use common MaxGridLevels; >=1 overrides it)
SellLowerLimitPricedouble0Sell Lower Limit Price (0 = no limit)
SellEntryDistancePipsint0Sell Level-0 Entry Distance Above Reference Price (pips, 0 = open at/above reference price; negative = allow entry below

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone shibu1x/mt5-ea from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 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.

Similar Expert Advisors

This repository is a substantial collection of nearly five hundred Expert Advisors for the MetaTrader 5 platform. The library includes various automated strategies such as divergence detection using RSI and MACD, moving average crossovers, and zone recovery systems. It features a mix of trading robots, indicator-based

MT5 Collection Indicator crossoverMean reversionMartingale High risk
1 stars

This repository contains two expert advisors for MetaTrader 5: a reconstruction of a popular grid system and a price-action tool for gold. The primary EA utilizes RSI and price extremes for entry signals, managing trades through a grid with tiered lot multipliers. It features smart distance calculations using ATR ratio

MT5 Collection Mean reversionGridMartingale High risk
1 stars

This MetaTrader 5 repository contains a collection of expert advisors, primarily documented around the TrioMartingale strategy. This system uses a martingale grid approach on AUDNZD, NZDCAD, and AUDCAD to exploit triangular correlation and mean-reversion. Entries are filtered using RSI and Moving Averages, while risk i

MT5 Collection MartingaleGridMean reversion High risk
Updated 5 months ago None stated GitHub repository of Cyrex23 Experts Collection
4 stars

This repository is a collection of MetaTrader 4 expert advisors and indicators focused on aggressive trading strategies. The primary expert advisor uses a grid-based approach with martingale lot scaling to manage positions. It features multiple entry logics, including Bollinger Bands, Exponential Moving Averages, and m

MT4 Collection MartingaleGridIndicator crossover High risk

Mirza Algo EA Collection

by Mirza-Algo
1 stars

This repository provides a collection of MetaTrader 4 expert advisors, including Evoque Global, Alpha Winner, and FXBULL. These robots primarily implement grid strategies with martingale lot scaling to manage positions. Evoque Global specifically includes a news filter, customizable trading hours, and an equity-based s

MT4 Collection GridMartingaleNews High risk
Updated 3 months ago None stated GitHub repository of Mirza Algo EA Collection
6 stars

This collection provides MetaTrader 5 Expert Advisors sourced from MQL5 programming documentation. The primary tool, Unity Martingale, implements a multi-currency reversal strategy using breakout or pullback signals. It employs a martingale lot-scaling system that increases positions after losses based on a user-define

MT5 Collection MartingaleGridBreakout High risk

More collections

Need a Broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers