Skip to content
Forex Indicator System Thailand
Back to marketplace
OscillatorEAMedium

Bollinger Bands EA (band mean reversion)

EA that buys at the lower Bollinger Band, sells at the upper band and closes at the middle line, with SL and TP.

Download this EA for free

Download right away. Nothing to fill in.

Version
1.00
Published
11/21/2026
File size
31 KB

Open source, MIT License, by Santiago Cruz. See licences

Version history

  1. 1.00Current11/21/2026 · 31 KB

    First release on this site.

How to use

Attach it to the chart you want, enable Algo Trading, set LotSize, Stop_Loss and Take_Profit in points to suit the symbol (point sizes differ between symbols), and give EA_Magic a value no other EA uses.

Because it checks at the open of a new bar, higher timeframes produce fewer signals. Test in the Strategy Tester and on a demo account first.

Parameters

NameDefaultDescription
TradeCommentBollinger Bands EAComment text attached to orders.
EA_Magic250117Magic number used to count and close the EA's positions (a static input).
LotSize0.01Lot size per order.
Stop_Loss100Stop-loss in points. Do not set it to 0: the code would then place the SL at the entry price.
Take_Profit200Take-profit in points. 0 = no take-profit.
BB_Period21Bollinger Bands period.
BB_Deviation2Bollinger Bands deviation.

Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Experts folder.
  4. Right-click Expert Advisors in the Navigator window and choose Refresh (or restart MT5).
  5. Drag it onto a chart, adjust the Inputs, turn on Allow Algo Trading, then click OK.

Description

A mean-reversion EA based on Bollinger Bands (default period 21, deviation 2.0) on the symbol and timeframe of its chart. It checks only the first tick of a new bar. It opens a Buy when Ask is at or below the lower band and a Sell when Bid is at or above the upper band, with at most one position per side and one entry per bar.

Each order gets a 100-point stop-loss and 200-point take-profit by default. The EA closes a Buy when Bid reaches the middle line and a Sell when Ask falls to it. It counts and closes only positions with its own magic number, and prints the band values as a chart comment.

Banners from the Exness partner programme

Exness banner: gold spreads*

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.

Currency Strength Matrix on an MT5 chart
IndicatorOscillator

Currency Strength Matrix

On-chart table showing the strength of the eight major currencies across several timeframes, with alerts for notable pairs

Main chartHas alerts

Version 1.06Free download
Schaff Trend Cycle (STC) on an MT5 chart
IndicatorOscillator

Schaff Trend Cycle (STC)

A 0 to 100 oscillator built from a double Stochastic over MACD, signalling on crosses of the 25 and 75 levels.

Separate windowHas alerts

Version 1.04Free download
EAOscillator

RSI V2 EA

EA that opens a Buy when RSI crosses below 30 and a Sell when it crosses above 70, with SL and TP in points.

Version 1.00Free download