Free Moving Average & Bollinger Bands Expert Advisor (EA) for MT4 & MT5

Want to trade with the combined power of Moving Averages and Bollinger Bands—without the hard work? My Free Moving Average & Bollinger Bands Expert Advisor (EA) for MT4 & MT5 does all the analysis for you—tracking trends, monitoring volatility, and spotting breakout and reversal opportunities with precision. Instead of manually watching crossovers and Bollinger Band signals, let this EA automate the process so you can trade smarter and with more confidence.

👉 Download your Free Moving Average & Bollinger Bands EA now and automate breakout and reversal setups instantly.

What is the Moving Average & Bollinger Bands EA?

I have developed a free EA which combines the moving average and Bollinger Bands indicators. You can filter it to trade when price is above or below moving averages, if the moving averages are crossing, and if the Bollinger Bands are outside the upper/lower bands. This can be a great tool for catching big market trends!

  • All of the EA settings are customisable
  • The EA can send trading signals via email/SMS and trade automatically
  • You keep full control over your money management
  • Can be used on any trading instrument & chart timeframe
  • Works on any forex broker
  • Includes setup instructions

Moving Average & Bollinger Bands Strategy

The Moving Average (MA) and Bollinger Bands are two popular technical analysis indicators used in trading strategies. Together, they can provide valuable insights into market trends, volatility, and potential buy or sell signals. Below is a detailed explanation of how both indicators work and how they can be combined into a trading strategy.

1. Moving Averages (MA)

A moving average is a statistical calculation that smoothens out past price data to identify trends over a specified period. The most common types of moving averages are:

  • Simple Moving Average (SMA): The average of a security’s price over a specific period (e.g., 50-day, 200-day). It gives equal weight to all prices in the period.
  • Exponential Moving Average (EMA): Similar to SMA, but it gives more weight to the most recent prices, making it more responsive to recent market movements.

Moving Average Calculation:

  • SMA Calculation: Add up the closing prices over a specified period and divide by the number of periods.SMA=P1+P2+P3+⋯+PnnSMA = \frac{P_1 + P_2 + P_3 + \dots + P_n}{n}where PnP_n is the price at the nth period, and nn is the number of periods.
  • EMA Calculation: The EMA is more complex as it applies a weighting multiplier to recent prices. The formula is:EMA=(Pt×α)+(EMAprevious×(1−α))EMA = (P_t \times \alpha) + (EMA_{previous} \times (1 – \alpha))where PtP_t is the price at time tt, and α\alpha is the smoothing factor:α=2n+1\alpha = \frac{2}{n+1}

Purpose of Moving Averages in Trading:

  • Trend Identification: A rising moving average indicates an uptrend, while a falling moving average signals a downtrend.
  • Crossovers: One of the most widely used strategies is the “crossover” strategy. This occurs when a short-term moving average crosses above a long-term moving average (bullish signal), or when the short-term moving average crosses below the long-term moving average (bearish signal).
  • Support and Resistance Levels: Moving averages can also act as dynamic support and resistance levels.

2. Bollinger Bands (BB)

Bollinger Bands consist of three lines:

  • Middle Band: This is a simple moving average (SMA) of the price, typically set to 20 periods.
  • Upper Band: This is the middle band plus two standard deviations of the price over the same 20-period range.
  • Lower Band: This is the middle band minus two standard deviations of the price.

Bollinger Bands Calculation:

  • Middle Band:MB=SMA20MB = SMA_{20}where SMA is the 20-period simple moving average.
  • Upper and Lower Bands:UB=MB+(2×Standard Deviation)UB = MB + (2 \times \text{Standard Deviation}) LB=MB−(2×Standard Deviation)LB = MB – (2 \times \text{Standard Deviation})where the Standard Deviation is calculated based on the past 20 periods.

Purpose of Bollinger Bands in Trading:

  • Volatility Measurement: The distance between the upper and lower bands varies based on market volatility. Wider bands indicate high volatility, while narrower bands signal low volatility.
  • Price Reversals: When the price reaches the upper or lower band, it is often interpreted as a sign that the price is overbought or oversold, potentially signaling a reversal.
  • Price Squeezes: When the bands narrow significantly (a “Bollinger Band squeeze”), it suggests that volatility is low and a breakout (either up or down) may be imminent.

3. Combining Moving Averages & Bollinger Bands

When you combine moving averages and Bollinger Bands, you get a strategy that provides both trend-following and volatility-based signals. Here’s how you can apply them in a trading strategy:

A. Trend-Following Signals Using Moving Averages:

  • Buy Signal: A common trend-following signal is when the price crosses above the moving average (especially the 50-day or 200-day moving average), signaling an uptrend. If the price is above the moving average and it remains above the moving average for several days, this strengthens the bullish signal.
  • Sell Signal: Conversely, a sell signal occurs when the price crosses below the moving average, signaling a downtrend. A sustained move below the moving average can indicate a bearish trend.

B. Volatility Signals Using Bollinger Bands:

  • Buy Signal: When the price touches or dips below the lower Bollinger Band, it might indicate that the asset is oversold. If the price then starts moving upward away from the lower band, it could be a buy signal, especially if this happens when the price is above the moving average.
  • Sell Signal: When the price reaches or exceeds the upper Bollinger Band, it may indicate that the asset is overbought. A reversal or pullback from the upper band could be a sell signal, particularly if the price is below the moving average.
  • Breakout Signals: A breakout from the upper or lower band (particularly after a squeeze) combined with confirmation from the moving average (e.g., price moving above or below the moving average) can be a powerful signal.

C. Combining Signals for Confirmation:

  • Bullish Confirmation: A strong buy signal occurs when the price is above both the moving average and the lower Bollinger Band. If the price is in a clear uptrend (moving average is rising), and the price bounces off the lower band (indicating oversold conditions), this is a strong confirmation for buying.
  • Bearish Confirmation: A strong sell signal occurs when the price is below the moving average and touches or exceeds the upper Bollinger Band. If the price is in a downtrend (moving average is declining), and the price reaches the upper band (indicating overbought conditions), it strengthens the bearish signal.

D. Example of Strategy:

  1. Buy Signal:
    • The price is above the 50-period moving average (indicating an uptrend).
    • The price touches or dips below the lower Bollinger Band (indicating an oversold condition).
    • After touching the lower band, the price begins to move upward (indicating potential reversal).
    • Enter the buy trade after confirmation of price moving above the lower band and above the moving average.
  2. Sell Signal:
    • The price is below the 50-period moving average (indicating a downtrend).
    • The price touches or exceeds the upper Bollinger Band (indicating an overbought condition).
    • After reaching the upper band, the price starts to reverse downward (indicating potential reversal).
    • Enter the sell trade after confirmation of price moving below the moving average and moving away from the upper band.

E. Risk Management:

  • Stop-Loss: A stop-loss can be set just outside the Bollinger Band or at a certain percentage below the moving average (for long trades) or above the moving average (for short trades).
  • Take-Profit: You can set a take-profit level based on the price moving back to the middle Bollinger Band or a set percentage of profit from the entry point.

4. Example of Trading Strategy in Action

Let’s say you are trading a stock and you are using the 50-period SMA and Bollinger Bands (20 periods, 2 standard deviations):

  • Step 1: The stock is in a clear uptrend, as the price is above the 50-period moving average.
  • Step 2: The stock price touches the lower Bollinger Band, indicating it is oversold.
  • Step 3: The price bounces off the lower band and begins to rise.
  • Step 4: Enter a buy trade as the price is now moving up from the lower band, with confirmation that the trend remains bullish (price above the moving average).
  • Step 5: Set a stop-loss slightly below the lower Bollinger Band or at a predetermined risk level.
  • Step 6: Exit the trade when the price reaches the middle band (SMA) or shows signs of reversal near the upper Bollinger Band.

5. Conclusion

The combination of Moving Averages (MA) and Bollinger Bands provides traders with an effective strategy for identifying market trends, measuring volatility, and spotting potential buy and sell signals. The moving average helps you identify the market’s trend direction, while Bollinger Bands help gauge market volatility and overbought/oversold conditions. By combining both indicators, you can create a robust trading strategy that provides confirmation signals, improving the reliability of trade entries and exits.

It’s important to remember that no strategy is foolproof, and risk management techniques should always be applied to protect capital. Combining these indicators with other tools like volume analysis, candlestick patterns, and oscillators (e.g., RSI) can further enhance the effectiveness of the strategy.

Make sure to check out the best forex robots for the latest real verified results of the best forex expert advisors which you can start using today.