What Is the QQE Indicator?

Jan 20, 2021

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!
The complete strategy can be downloaded in the Free Strategies section.

What Is the QQE Indicator?

The Quantitative Qualitative Estimation (QQE) indicator is derived from Wilder’s famous Relative Strength Index (RSI). In essence, the QQE is a heavily smoothed RSI.

Both the QQE and traditional RSI are plotted below for the USDJPY.

Notice how the traditional RSI and the QQE’s smoothed RSI line follow price action with little lag. Unlike the traditional RSI though, the QQE contains an additional line – the slow trailing line. Its calculation is described below.

QQE Indicator Calculation

The calculation steps below use the default indicator values.

  1. Calculate the 14-period RSI.
  2. Obtain the smoothed RSI by taking the 5-period EMA of the RSI.
  3. Obtain the absolute value of the bar-to-bar change in the smoothed RSI.
  4. Apply a 27-period EMA, twice, to the values in step 3.
  5. Obtain the slow trailing line by multiplying the result of step 4 by 4.236.

Confused?

Don’t worry; just take the QQE to be a heavily smoothed RSI.

If the 4.236 value looks familiar, that’s because it’s used in Fibonacci sequences.

How Is the QQE Indicator Used?

The QQE shares many similar uses with the RSI. The following are a few common uses for the QQE:

1. Determine Trend Detection

Values above 50 indicate a bullish market, while values below 50 indicate a bearish market.

In this way, the QQE can serve as a trend filter. For example, long trades can only be taken when values are above 50, while short trades require values below 50.

2. Detect Overbought/Oversold Conditions

QQE values above 70 indicate overbought conditions, while values below 30 indicate oversold conditions.

Long trades can be taken when the QQE crosses above the 30 line, while shorts can be taken when the QQE crosses below the 70 line.

3. Detect Price & Momentum Divergence

Momentum often leads price. A divergence between price and the QQE may signal upcoming reversals.

In a bearish divergence, prices are setting higher highs while the QQE is setting lower highs. This may signal an upcoming bearish reversal.

In a bullish divergence, prices are setting lower lows, while the QQE is setting higher lows. A bullish reversal may be approaching.

4. Detect Short-Term Momentum

The QQE’s slow trailing line is obtained through further smoothing of the smoothed RSI line.

When the smoothed RSI line crosses above the slow trailing line, it indicates short-term momentum is to the upside, and long trades may be taken. Conversely, when the smoothed RSI crosses below the slow trailing line, short-term momentum is to the downside, and shorts may be more appropriate.

For the remainder of this post, we will use the QQE in this cross above/below fashion to generate entry signals. An obvious drawback of this approach is that a ranging market will generate lots of false entries.

To combat this, let’s not use the QQE indicator in isolation. We will instead combine it with a moving average trend following strategy.

Moving Average Trend Following Strategy

Numerous types of moving averages exist. Since simple and exponential moving averages have been tested everywhere, let’s try the triple exponential moving average (TEMA) instead.

There is often a trade-off between an indicator’s smoothness and its ability to respond quickly to price changes. Smooth indicators typically employ more price averaging, resulting in significant lag.

The TEMA attempts to get the best of both worlds by applying an exponential moving average (EMAthrice, then applying the following formula to minimize lag:

The TEMA actually reacts faster to price changes than a simple moving average. This may make the TEMA a better choice if you want to quickly capture emerging trends, which we’ll try to do here.

Strategy Logic

A fast 20-period TEMA will be used together with a slower 40-period TEMA. Entry conditions for longs are below:

  1. 40-period TEMA is rising
  2. 20-period TEMA is above 40-period TEMA
  3. Price closes above 20-period TEMA
  4. Today is not Monday

Conditions for short entries are the opposite.

Condition 1 is important since we only want to trade in the direction of the longer-term trend. A rising TEMA indicates the market is in an uptrend, while a falling TEMA indicates a downtrend.

Conditions 2 and 3 address the market’s short-term momentum. Sustained trends usually contain strong momentum at the start. It makes sense to enter the market only when strong momentum is present.

Condition 4 addresses trading volumes. Forex markets typically have the lowest trading volumes on Monday. Since we need high volumes to maintain the trend, we will avoid entries on Monday.

Here’s how the market looks like when all the above conditions are met:

We will place a buy stop at the previous candle’s high, and a sell stop at the previous candle’s low.

A basic 120-pip stop loss and trailing stop will be added to protect our downside and improve profit retention.

Programming the Strategy in AlgoWizard

The strategy was quickly programmed in AlgoWizard.

The parameters FastPeriod/SlowPeriod and StopPips were used for the TEMA lookbacks and stop loss distance, respectively. You can download the strategy and optimize these parameters if you wish.

TEMA Trend Following Strategy Results

The strategy was backtested on the 1-hour USDJPY over the past 10 years. It is no secret that JPY pairs tend to trend well.

Backtest results are certainly not up to par, although this is unsurprising. I find that moving averages used in isolation rarely produce good results. The low win rate of 37% indicates we need to minimize the number of weak entries.

An example of a weak entry is shown below, where the ranging market still managed to satisfy the entry conditions above.

Hopefully the QQE indicator will help us filter out such entries.

Adding the QQE Indicator

We will use the QQE in the cross above/below fashion described above. Sometimes, looking for confluence among conceptually different indicators can improve results. Perhaps the momentum-based QQE can complement our time-based TEMA.

An additional QQE entry condition was added to AlgoWizard.

Value1 above refers to the smoothed RSI line, while Value2 refers to the slow trailing line.

Default QQE parameters were used.

The RSI’s lookback period (RSIPeriod) and its smoothing period (sF) can be later optimized in MT4 if you wish. Reducing these values will make the QQE react faster to prices.

Now let’s redo the backtest.

QQE & TEMA Trend Following Strategy Results

How’s that for an improvement? Both the profit factor and return/max drawdown ratio have improved significantly.

Win rate has also improved from 37% to 44%, and the average number of bars per trade has increased from 142 to 181. This is probably because many whipsaw trades in ranging markets were avoided.

Wrapping Up

So the mysterious QQE indicator deserves your consideration after all. Since it consists of two lines – the smoothed RSI and the slow trailing line, the QQE is more versatile than one-line momentum indicators like the RSI and CCI.

Using the QQE in a cross above/under manner demonstrated above can help pick out high-momentum entries. Whichever way you choose to use the QQE, I recommend complementing it with trend-detection indicators.

The complete QQE TEMA trend following strategy can be downloaded here. If you wish, you can optimize the lookback periods for the TEMA and the QQE. If you trade a lower timeframe, perhaps longer lookback periods will be useful in combating market noise.

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

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.

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