Bollinger Band Squeeze Trading Expert Advisor

Bollinger Band Squeeze Trading Expert Advisor
Download ALL MT4 experts (895)
YouTube Video Thumbnail



Similar MetaTrader Tools

Bollinger Band Squeeze Trading Expert Advisor

Info

The Bollinger Band Squeeze Trading Expert Advisor is a Expert Advisor for MetaTrader 4 that this expert advisor (ea) trades based on the bollinger band squeeze strategy. It identifies periods of Bollinger Band contraction followed by expansion to initiate trades.

Usage

This tool is typically used for automated trading on major forex pairs and gold.

Platform

This Expert Advisor works exclusively on MetaTrader 4 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL4/Experts folder via File ? Open Data Folder in MetaTrader 4.


How to Install and Use Bollinger Band Squeeze Trading Expert Advisor

1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.

2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.

3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.

4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.

Frequently Asked Questions

Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.

Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.

Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.

What this tool does

This Expert Advisor (EA) trades based on the Bollinger Band Squeeze strategy.

Typical Use Case

This Expert Advisor excels in automated trading and technical analysis on MetaTrader 4.

Compatible Platform & Setup

This Expert Advisor works on MetaTrader 4. Place the file in the MQL4/Experts folder and restart the terminal.

Description & Settings

Related: Intraday Expert Advisor Based on Bollinger Bands - another powerful expert for MetaTrader 4 traders.

This Expert Advisor (EA) trades based on the Bollinger Band Squeeze strategy. It identifies periods of Bollinger Band contraction followed by expansion to initiate trades.

Also recommended: rg t2 ea: Bollinger Bands and RSI Expert Advisor - similar expert with strong performance on MetaTrader 4.


The EA incorporates a trailing stop loss and take profit mechanism. It is designed to work on all timeframes and major forex pairs, as well as stocks and the Nasdaq.

It is recommended to test this EA on a demo account before using it with real funds.

Trading Logic:
The EA exclusively trades based on the price of the open candle.

Lot Size Management:
If you prefer not to trade with an increasing lot size after a losing trade, set "increasefactor=0".

Take Profit Options:
- use_tp_in_money: Enable take profit in monetary value (true/false).
- tp_in_money: Set the take profit value in currency units (range: 10-100).
- use_tp_in_percent: Enable take profit in percentage (true/false).
- tp_in_percent: Set the take profit value as a percentage (range: 10-100).

Trailing Stop Loss for Multiple Trades:
- enable_trailing: Activate trailing stop loss in monetary value (true/false).
- Take Profit (in current currency): Set the take profit value (range: 25-200).
- Stop Loss (in current currency): Set the stop loss value (range: 1-20).

Trade Management:
- exit: Close trades if the trend is against the position and to control drawdown (true/false).
- diff: Defines the squeeze size (range: 1.1-2).
- candlestoretrace: Number of candles for comparison (range: 1-20).

Trading Parameters:
- lots: Initial lot size (range: 0.01-1).
- lots_size_exponent: Exponent for lot size calculation (range: 1.01-2).
- increasefactor: Factor to increase lot size based on total margin after a losing trade (range: 0.001-0.1).
- stop_loss: Stop loss in pips (range: 30-500). Set to 600 for multiple trades.
- magicnumber: Unique identifier for EA trades (range: 1-100000).
- takeprofit: Take profit in pips (range: 50-200). Set to 600 for multiple trades.
- fastma: Period for the fast moving average (range: 1-20).
- slowma: Period for the slow moving average (range: 50-200).
- mom_sell: Momentum sell trigger threshold (range: 0.1-0.9).
- mom_buy: Momentum buy trigger threshold (range: 0.1-0.9).

Drawdown Control:
- useequitystop: Activate equity stop loss (true/false).
- totalequityrisk: Maximum total equity risk percentage (range: 0.01-20).

Maximum Trades:
- max_trades: Maximum number of concurrent trades (range: 1-12).

Single Trade Mode Settings:
- trailingstop: Activate trailing stop loss and take profit. Set a value from 40 to 100 to activate; 0 disables it.
- enable_break_even: Activate break-even stop loss (true/false).
- when_move_break_even: Distance in pips to move the stop loss to break-even (range: 5-30).
- how_much_pips_move_break_even: Additional movement in pips after reaching break-even (range: 5-30).

Optimization and Usage:
It is advised to optimize the EA's inputs every few months. Ensure consistent input settings for reliable performance. This EA can be utilized as a hedging grid EA or as a single trade EA.

Backtesting Instructions:
Refer to the platform's documentation for specific backtesting procedures.

Disclaimer: Trading involves risk. Past performance is not indicative of future results. This EA is provided as a tool and does not guarantee profits. Test thoroughly before live trading. Copyright 2026.

You may also like: Bollinger Breakout EURUSD M15 - excellent alternative for expert users on MetaTrader 4.

Source Code

/

.......

Leave your opinion, ask a question, share some knowledge

⚠ Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.