Bollinger Bands Free Bar Trading Strategy

Apr 28, 2021

Bollinger Bands are great at predicting upcoming price reversals. Here’s how you can build a countertrend strategy using its ‘free bars!’

The complete strategy can be downloaded in the Free Strategies section.

Bollinger Bands are the gift that just keep giving.

They’re simple and easily applicable to both trend following and countertrend strategies.

Here I’ll introduce yet another way to use Bollinger Bands to fade temporary overextensions.

Bollinger Bands in a Nutshell

Bollinger Bands consist of a simple moving average, with a pair of bands plotted at a standard deviation multiple above and below it.

By default, a 20-period lookback is used for the moving average, and 2 standard deviations are used for the bands.

If prices were normally distributed, they would close outside the bands only 5% of the time.

In reality, due to occasional price movers like economic reports and central bank decisions, I estimate the real figure to be between 10-15% of the time.

Fading Moves With the Bollinger Bands

Considering the figures above, it is reasonable to expect a prompt reversal when prices close outside the Bollinger Bands. 

A close above the upper band indicates an overbought market, and is an opportunity to enter short. Conversely, a close below the lower band indicates an oversold market, producing a buying opportunity. 

The baseline entry conditions are thus:

  • Buy when prices close below the lower Bollinger Band
  • Sell when prices close above the upper Bollinger Band

Of course, there’s a small possibility that the market will continue to rally or crash after the overextension. 

As the famous quote goes:

The markets can remain irrational longer than you can remain solvent.

-John Maynard Keynes

How can we minimize the risk of catching a new market trend?

Since one losing trade can wipe out the profits from several winners, we seriously need to refine our baseline entry conditions.

Entry Filter #1: Free Bars

I first heard the term ‘free bars’ on Adam Grimes’ excellent blog

These bars are completely outside the Bollinger Bands.

Since the entire bar has extended beyond the bands, a prompt rebound is likely to follow, much like a stretched rubber band snapping back into place. 

From here on out, we’ll only use these free bars for entries. The conditions are now:

  • Buy when the previous high is below the lower Bollinger Band
  • Sell when the previous low is above the upper Bollinger Band

Entry Filter #2: Stop Entries

To improve the win rate, I want to see prices rebounding towards the Bollinger Bands before entering the market. 

For long entries, a buy stop will be placed at the previous high. For shorts, a sell stop will be placed at the previous low. 

Stop orders will be valid for 3 bars. If prices do not rebound within this time, there could be a fundamental impetus behind the price extension.

Entry Filter #3: Trade Asian Hours Only

Forex markets are open 24/5, but trading volumes vary significantly throughout the day.

Markets are busiest during the London and New York sessions, when high trading volumes often create and sustain trends. 

It’s generally best to avoid these hours, so I’ll only take entries during the quiet Asian session.

I’ll only trade in the 2200 – 0400 range (GMT time). 

During these quiet hours, there’s a higher probability that the price extension you’re exploiting is caused by noise. Noise is the random price movement that obscures underlying market direction. It is a result of the millions of market participants transacting for different agendas. 

Such extensions are usually unsustainable. 

In addition, if I enter a trade during the Asian hours, I don’t want it to be exposed to the high trading volumes when London opens.

I will close all open trades at 0400, which is the end of the trading time range above.

Programming the Bollinger Bands Free Bar Strategy

I input the trading logic in AlgoWizard.

The trade management inputs are at the bottom of the image.

I’ll use the middle of the Bollinger Bands as the profit target. In the absence of any fundamental price mover, you can quite reliably expect prices to revert to the mean.

I’ll use a relatively large stop loss of 50 pips. In countertrend trading, the average loss is usually much larger than the average win. The high win rate should make up for this though.

I then added the Asian hours time filter:

You’ll have to adjust the time inputs to match your broker time zone.

Backtesting the Bollinger Bands Free Bar Strategy

Your trading market is always an important decision.

I’ll trade the GBPCAD in this case. The GBP and CAD are generally risk-on currencies, so GBPCAD spends most of its time in trading ranges.

Lower timeframes typically contain more noise; I’ll look to exploit that by trading the 5-minute GBPCAD.

The 10-year backtest is shown above. Nothing really wrong with these results, except that 495 trades is a little low on the 5-minute timeframe. Well, at least it means the filters worked!

Or did they? Let’s find out.

Were the Entry Filters Useful?

I decided to redo the backtest, but with all the filters removed.

So the strategy now opens trades:

  • When prices close above/below the bands (free bar not needed)
  • Using market orders, not stop orders
  • At all hours of the day

The profit target and stop loss were unchanged.

Not a disaster, but no way I’m trading that!

I always add some sort of entry filter when building a strategy from scratch.

In this strategy development article, you can check out these other types of filters:

  • Day-of-the-week filters
  • Long-term trend filters
  • Volatility filters

Wrapping Up

Countertrend trading is a great way to diversify your portfolio and smoothen your overall equity curve.

Bollinger Bands can be a valuable addition to your countertrend strategy. You’ve probably seen these free bars lying around on your charts; hopefully you will now make use of them.

Alternatively, you can use Bollinger Bands together with reversal candlestick patterns to predict upcoming reversals.

Be sure to include a stop loss though, in case the market starts trending. Don’t let your trade become an investment! yell

The complete Bollinger Bands strategy can be downloaded in the Free Strategies section.

Powered By

Development Platform

Forex VPS

FXVM Forex VPS

Popular Posts

Laguerre RSI Trend Following Strategy

The Laguerre RSI attempts to improve the responsiveness of the regular RSI, whilst keeping whipsaw trades to a minimum. Let’s see how well it detects short-term pullbacks for a trend following strategy!

read more

What is Fixed Ratio Money Management?

Have you heard of fixed ratio money management? How does it compare to the popular fixed fractional approach? Here I’ll explain how fixed ratio works, and see how it stacks up against fixed fractional money management.

read more

Build a Diversified Portfolio With QuantAnalyzer

The ability to efficiently trade a diversified portfolio of strategies is one of the biggest advantages of algorithmic trading. Here we will use QuantAnalyzer’s Portfolio Master to build a portfolio consisting of high performing, uncorrelated strategies.

read more

What Is the QQE Indicator?

The QQE is a mysterious indicator that sometimes pops up in trading forums. Does it deserve a place alongside the more traditional momentum indicators like the RSI and CCI? Let’s add it to a trend following strategy to find out!

read more

Make your money work for you!

Get promotions, trading ideas and strategy development tips delivered to your inbox!

Comments

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Trading Strategies

What’s the Best Time to Trade Forex?

What’s the Best Time to Trade Forex?

The forex markets are open 24/5, but not all hours are created equal. Here I dissect my broker data to determine the best time to trade forex.

Forex Weekend Gaps: Can You Exploit Them?

Forex Weekend Gaps: Can You Exploit Them?

Have you noticed that forex weekend gaps usually reverse within 3 days? Here I’ll program a mean reversion strategy to exploit gaps over the last 18 years!

Money Flow Index: An Improved RSI?

Money Flow Index: An Improved RSI?

The Money Flow Index is sometimes called the volume-weighted RSI. Can it outperform the RSI in this trend following strategy?

Automated Bollinger Bands Squeeze Forex Strategy

Automated Bollinger Bands Squeeze Forex Strategy

StrategyQuant’s BBWR indicator is the perfect tool to detect a Bollinger Bands squeeze. Here I explain how it’s calculated, and use it to program a breakout strategy for the AUDJPY!

Should You Use the Kelly Criterion for Forex Trading?

Should You Use the Kelly Criterion for Forex Trading?

The Kelly criterion is a famous mathematical formula that attempts to maximize your long-term capital growth. In this post, I’ll apply it to a EURUSD breakout strategy and explain some of its potential shortcomings when applied to forex trading.

Can a Trading Pause Improve Your Trend Following Results?

Can a Trading Pause Improve Your Trend Following Results?

A temporary trading pause can improve your win rate if you’re trend following a volatile market. Here I’ll program a trading pause into a simple breakout strategy, and test its effectiveness on the Widow Maker – the GBPJPY.

Laguerre RSI Trend Following Strategy

Laguerre RSI Trend Following Strategy

The Laguerre RSI attempts to improve the responsiveness of the regular RSI, whilst keeping whipsaw trades to a minimum. Let’s see how well it detects short-term pullbacks for a trend following strategy!

How to Use the Supertrend Indicator

How to Use the Supertrend Indicator

Despite its cool name, the Supertrend indicator often seems to slip under the radar. Here I explain how it’s calculated, and combine it with moving averages to produce a simple trend following strategy.

Ichimoku Trend Following Strategy

Ichimoku Trend Following Strategy

Like candlesticks, the Ichimoku indicator is a fine Japanese creation. Here I’ll explain how the Ichimoku is plotted, and use it to build a trend following strategy for the USDJPY.

Strategy Development

Do You Know Your System Quality Number?

Do You Know Your System Quality Number?

The System Quality Number measures the profitability & consistency of your trading system. Here’s how to calculate your SQN and use it to improve your trading!

How to Get a Realistic Backtest Spread

How to Get a Realistic Backtest Spread

Your choice of backtest spread can certainly make or break a strategy. This post will show you how to study the intraday spread variations of your market, and suggest several ways to avoid paying ridiculous spreads.

Do You Know Your Strategy’s Optimization Profile?

Do You Know Your Strategy’s Optimization Profile?

Your strategy’s optimization profile often reveals its robustness, helping you select strategies that will remain profitable in live trading. Here I explain why an optimization profile is important, and how you can easily obtain one using StrategyQuant’s optimizer.

Which MT4 Backtest Report Metrics Should You Use?

Which MT4 Backtest Report Metrics Should You Use?

Understanding your backtest report is an essential part of being a successful strategy developer. Here I explain what the numbers mean, and how you can make use of each metric during strategy development.

Out-of-sample Testing Using Monte Carlo Simulations

Out-of-sample Testing Using Monte Carlo Simulations

Traders often use Monte Carlo simulations to estimate worst-case drawdowns, but did you know they can be used for out-of-sample testing too? This post demonstrates the use of StrategyQuant’s Monte Carlo simulator to randomize historical prices and strategy parameters, helping you select robust strategies for live trading.

How Many Trades Should Your Backtest Have?

How Many Trades Should Your Backtest Have?

We all want a large sample of trades in our backtests, but practical limitations such as data availability often get in the way. Here I’ll explain why 30 trades is insufficient, and how you can use standard error to quantify the uncertainty arising from a small sample size.

Build a Diversified Portfolio With QuantAnalyzer

Build a Diversified Portfolio With QuantAnalyzer

The ability to efficiently trade a diversified portfolio of strategies is one of the biggest advantages of algorithmic trading. Here we will use QuantAnalyzer’s Portfolio Master to build a portfolio consisting of high performing, uncorrelated strategies.

Strategy Optimization Using MT4

Strategy Optimization Using MT4

How do you improve your trading strategy in MT4? This post will show you how to optimize the entry and exit parameters for a moving average crossover strategy. Finally, an intraday time filter will be added to help avoid false breakouts.

Debugging & Backtesting Using MT4

Debugging & Backtesting Using MT4

With a fresh algorithm at your fingertips, how do you verify that it has been programmed correctly? This guide will show you how to use Metatrader 4’s visual backtester to debug and backtest your strategy.

Create Your Trading Algorithm in 15 Minutes (FREE)

Create Your Trading Algorithm in 15 Minutes (FREE)

Converting your trading idea into an algorithm is the first step towards reaping the benefits of automated trading. This guide will cover the creation of a simple moving average crossover algorithm, without any actual programming.

What Is Drawdown in Trading?

What Is Drawdown in Trading?

Are you getting a comprehensive assessment of your strategy’s downside? This post will discuss several methods to measure drawdowns, helping you build and select strategies that better suit your risk appetite.

Live Trading

What’s the Best Time to Trade Forex?

What’s the Best Time to Trade Forex?

The forex markets are open 24/5, but not all hours are created equal. Here I dissect my broker data to determine the best time to trade forex.

How to Find a Real Trading Guru

How to Find a Real Trading Guru

Every day I come across a trading guru offering educational content on the internet. Many of them speak of huge returns with minimal effort. Should these be trusted? Here’s some tips on how to separate the wheat from the chaff.

How to Enjoy Stress-Free Trading

How to Enjoy Stress-Free Trading

Trading is a great way to make some additional income, but not if you’re constantly pulling your hair out. Here I offer 7 tips to help make your trading profitable and stress-free.

How to Select the Best Forex VPS

How to Select the Best Forex VPS

A virtual private server (VPS) is a virtual computer that you can rent and access remotely. It provides a reliable platform on which to execute your forex strategies. This post will help you decide whether you need a VPS, and show you how to select an optimal VPS.

Make your money work for you!

Make your money work for you!

 

Get trading ideas and strategy development tips delivered to your inbox!

Thanks for subscribing!

Pin It on Pinterest

Share This