If you're looking to capitalize on market volatility, the Bollinger Band Squeeze Expert Advisor (EA) is your ticket to ride! This powerful tool trades on the expansion following a contraction of the Bollinger Bands and comes equipped with a Trailing Stop Loss and Take Profit feature. It’s versatile enough to work across all time frames, major forex pairs, and even stocks like NASDAQ.
Why You Should Try It
- Start off by testing it on a demo account.
- This EA operates strictly with the price of the open candle!
- If you prefer to keep your lot sizes steady during losing trades, simply set: IncreaseFactor=0.
Input Parameters
- Use_TP_In_Money: Activate Take Profit in Money (true/false).
- TP_In_Money: Set Take Profit in Money (values: 10-100).
- Use_TP_In_percent: Activate Take Profit in Percent (true/false).
- TP_In_Percent: Set Take Profit in Percent (values: 10-100).
- Enable_Trailing: Activate trailing with money (true/false).
- Take Profit In Money: Set value in current currency (values: 25-200).
- Stop Loss In Money: Set value in current currency (values: 1-20).
- Exit: Close trades if the trend turns against you to control drawdown (true/false).
- Diff: Squeeze size (values: 1.1-2).
- CandlesToRetrace: Number of candles for comparison (values: 1-20).
- Lots: Set lot size (values: 0.01-1).
- Lots size Exponent: (values: 1.01-2).
- IncreaseFactor: The amount to increase lots from total margin if you lose a trade (values: 0.001-0.1).
- Stop_Loss: Set Stop Loss (values: 30-500). Use 600 for multiple trades.
- MagicNumber: Set a magic number (values: 1-100000).
- TakeProfit: Set Take Profit (values: 50-200). Use 600 for multiple trades.
- FastMA: Set Fast Moving Average (values: 1-20).
- SlowMA: Set Slow Moving Average (values: 50-200).
- Mom_Sell: Momentum Sell trigger (values: 0.1-0.9).
- Mom_Buy: Momentum Buy trigger (values: 0.1-0.9).
- UseEquityStop: Activate equity stop (true/false).
- TotalEquityRisk: Set total equity risk (values: 0.01-20).
- Max_Trades: Set maximum number of trades (1-12).
For Single Trade Users
- Set Trailing Stop: Use values from 40 to 100 to activate trailing stop loss & take profit; set to '0' to deactivate.
- Enable Break Even: (true/false).
- When move Break Even: (values: 5-30).
- How much pips to move to Break Even: (values: 5-30).
Don't forget to optimize this EA every few months using the same inputs mentioned above. You can use it as either a hedging grid EA or a single trade EA.
Need help with backtesting? Check out this backtesting guide.

Related Posts
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Mastering Trading Signals with MQL5 Wizard: Bullish and Bearish Engulfing Strategies
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation
- Creating a Stochastic-Based EA for Hammer and Hanging Man Patterns in MetaTrader 5
- Leveraging MQL5 Wizard: Crafting Trade Signals with Meeting Lines and Stochastic