Personalizzati e della community MomentumTrendNot MT5 Built-in Disponibile nel Builder

QQE

QQE trails a one-way band around a smoothed RSI and calls the side price broke the trend. MetaTrader 5 does not ship it — there is no iQQE — so what you get depends on whose implementation you run. On synthetic series the trend flips about once every twenty bars, which is the number that decides how this indicator has to be used.

Defaults
RSI 14 / smoothing 5 / factor 4.236
Trend flips
53–60 per 1000 bars
Node output
+1 / −1
Bars where the trend flipped — the only value the node publishes50 — a guide, not a level the flow compares againstSmoothed RSI against its trailing band (derived — neither is published)

Illustrativo — dati sintetici, non una quotazione in tempo reale.

What QQE tells you

QQE is a trend rule applied to momentum rather than to price. It smooths the RSI with a short EMA, measures how far that smoothed line travels from one bar to the next, smooths that too, and multiplies the result by 4.236 to get a band width. The band sits either side of the smoothed RSI and is allowed to move only one way — towards the line, never away from it — until the line breaks through, at which point the trend flips and the other band takes over. So the output is not an RSI level to compare against 70 or 30; it is a state, and the whole indicator is a way of asking whether momentum has changed side by more than its own recent volatility. That framing explains both the appeal and the problem. Because the band adapts, a quiet stretch tightens it and a volatile one widens it. And because the RSI itself moves constantly, the state changes often: measured on three synthetic series the trend flipped 53 to 60 times per 1000 bars.

  • Not an MT5 built-in — one iRSI handle, and everything else folded in the EA
  • The output is +1 / −1, not a 0–100 reading, so it is compared against zero
  • It flips roughly once every twenty bars, so it wants a filter rather than a bare entry
  1. 1 Smooth the RSI with an EMA of the smoothing length (5)
  2. 2 Smooth |change in that line| twice with a Wilder-length EMA, then scale by 4.236
  3. 3 Trail a band that width either side; the side broken is the trend
Mostra la formula e i dettagli del calcolo

MetaTrader 5 has no QQE, so there is no source file to quote. What the Builder generates is the common definition, with everything derived from one RSI handle:

ks = 2 / (Smooth + 1)                  <- 5  by default
kw = 2 / ((2*Period - 1) + 1)          <- 27 by default, so kw = 1/14

ma[i]   = rsi[i]*ks + ma[i-1]*(1-ks)                  <- smoothed RSI
atr[i]  = |ma[i] - ma[i-1]|*kw + atr[i-1]*(1-kw)      <- how far it moves, smoothed
datr[i] = atr[i]*kw + datr[i-1]*(1-kw)                <- smoothed again
dar     = datr[i] * Factor                            <- Factor = 4.236 = phi^3

The band is then trailed one way only, and the trend is read from which side the line breaks:

newLb = ma - dar,  newSb = ma + dar
lb = (ma[-1] > lb[-1] and ma > lb[-1]) ? max(lb[-1], newLb) : newLb
sb = (ma[-1] < sb[-1] and ma < sb[-1]) ? min(sb[-1], newSb) : newSb

crossedShort = (ma[-1] > sb[-1]) != (ma > sb[-1])     <- against the PREVIOUS band
crossedLong  = (ma[-1] > lb[-1]) != (ma > lb[-1])
trend = crossedShort ? +1 : crossedLong ? -1 : trend[-1]

The comparison uses sb[-1] and lb[-1] — the band as it stood before this bar’s update. Using the updated band instead compiles, runs, and draws a line that looks like QQE; measured against the correct version it agreed on 47.2% to 48.4% of bars across three synthetic series. A band that has already moved towards the line is much harder to break, so the flips it does report are a different set rather than a delayed one.

Because none of this comes from an indicator handle, the generated EA folds the recursion from scratch on every tick:

for k = warmup+1 down to shift:   <- oldest bar first, in series order
    ... the four lines above ...

That is what the warm-up setting buys. Against a baseline computed over the whole history, 200 bars reproduced the trend exactly on all three test series; 100 bars differed on up to 0.8% of bars — on two of the three, with the third matching exactly — and 50 bars on 5.6% to 8.2% of every series. The default of 300 is one comfortable step past where the error disappeared.

Segnali

I segnali distinti e testabili che QQE fornisce — e il regime di mercato adatto a ciascuno.

Trend Flip

Pronto nel Builder
Condizione
The QQE trend crosses zero — the smoothed RSI has broken the opposite band
Regime migliore
Trending
Uso tipico
The template's entry, gated by the plain RSI's side of 50

Flip with a Momentum Gate

Pronto nel Builder
Condizione
An upward flip while the raw RSI is above 50 (mirrored for shorts)
Regime migliore
Trending
Uso tipico
The template as shipped. Measured, the gate removes a third of the flips

State as a Filter

Pronto nel Builder
Condizione
QQE is +1 while another rule wants to buy
Regime migliore
Either regime
Uso tipico
The cheapest honest use — no entry of its own, one Compare against zero

Divergence against the smoothed RSI

Logica avanzata
Condizione
Price makes a new extreme while the smoothed RSI does not
Regime migliore
Ranging
Uso tipico
Widely described, but the smoothed RSI is not published by the node — only the trend is

Implementazione MT5

Ciò che MetaTrader 5 calcola e disegna davvero: il riferimento di ogni regola di questa pagina.

Buffer

Indice Buffer Disegnato in MT5 come Cosa contiene
0 MAIN_LINE Line There is no QQE buffer to read, because there is no QQE indicator in MT5. The only handle the generated EA creates is iRSI, and index 0 of that is the plain RSI everything else is built from. The smoothing, the band width and the trailing are computed in the EA itself, and none of the intermediate lines — smoothed RSI, band, trailing level — is published anywhere a node could read.

Note sulla piattaforma

Funziona meglio / usare con cautela

Nessun indicatore ha un vantaggio universale. Ecco dove QQE aiuta — e dove inganna.

Funziona meglio

  • As a filter on a rule that already has a reason to trade
  • Trending instruments where a momentum regime lasts longer than the flip rate
  • Timeframes high enough that twenty bars is a meaningful stretch of time
  • Settings you have measured, because the factor changes the flip rate by a factor of two

Usare con cautela

  • Trading every flip — that is 53 to 60 entries per 1000 bars before any filter
  • Reading the output as an RSI level; it is a state, and the RSI itself is not published
  • Comparing implementations by eye — the bands differ even where the trend agrees
  • Lowering the factor to catch turns earlier; at 2.618 the flip rate rises by about half

Crea una strategia QQE

Collega il segnale alle regole di ingresso e uscita, poi esporta un EA MT5 compilabile — senza codice.

  1. One QQE node at 14 / 5 / 4.236, reading the last closed bar
  2. A constant of zero, crossed against the trend to catch only the flips
  3. One RSI node at 14, compared against 50 for the gate
  4. Flip up and RSI above 50 → Close short, then Open Buy · SL 60 / TP 180
  5. Flip down and RSI below 50 → Close long, then Open Sell, mirrored

Combina QQE con altri indicatori

Un indicatore raramente funziona da solo. Questi abbinamenti coprono i punti ciechi di QQE.

QQE + RSI

  1. QQE trend crossing zero
  2. RSI against 50
  3. And gate
Perché
The gate the template ships with, and the pairing is less redundant than it looks: the QQE trend is built from a *smoothed* RSI and reports only which side of its band that line is on, while the raw RSI still carries the level. Asking for both means asking that momentum has turned and that it is on the side of 50 the turn claims. Measured on three synthetic series, the gate removed 33.6% to 39.6% of the flips — so it is doing real work rather than restating the trend
Regime migliore
Trending
Crea questa strategia →

QQE + Supertrend

  1. QQE trend
  2. Supertrend trend
  3. And gate
Perché
The same trailing-band idea applied to price instead of to momentum. Reading the two pages together is the cheapest way to see what the choice of space costs: Supertrend's band is a multiple of ATR around the midpoint of a bar, so it cannot flip while price is still, whereas QQE's band is a multiple of the RSI's own movement and can flip in a range where price has gone nowhere. Requiring both to agree is the usual way to use them together
Regime migliore
Trending

No template holds both. Add a Supertrend node beside the QQE node, compare each against zero, and join them with an And gate.

Apri il Builder →

QQE + ADX

  1. ADX above 25
  2. QQE trend crossing zero
  3. And gate
Perché
The measured problem with this indicator is the flip rate — about one every twenty bars on synthetic data, and the band adapts so that a quiet stretch produces just as many. ADX answers a question QQE cannot ask, because nothing in QQE looks at price at all: is there a trend in the instrument, rather than in its momentum. It removes the regime where the extra sensitivity is a liability instead of an edge
Regime migliore
Trending

Add an ADX node with a Compare against 25 and join it to the Cross with an And gate before the entry.

Apri il Builder →

Parametri

Valori iniziali da validare sulla tua coppia e timeframe — non sono impostazioni garantite.

Parametro Predefinito Intervallo di test suggerito Cosa fa
RSI period 14 2–999 The length of the RSI everything is built on, and it also sets the smoothing length of the two band stages: those use a Wilder length of 2 × period − 1, which is 27 at the default. So raising this makes the underlying momentum slower and the band steadier at the same time — the two cannot be separated from the Builder.
RSI smoothing 5 1–200 The EMA applied to the RSI before anything else. It is what makes the line smooth enough for a band to be meaningful; at 1 the smoothing disappears and the band is measured on the raw RSI's bar-to-bar noise. This is the setting to raise if the flips are too frequent and you want to keep the factor at its standard value.
Band factor 4.236 0.1–100 How many times the smoothed movement the band sits away from the line. 4.236 is the value standard implementations use — it is φ³ to five figures — and it is the one real speed dial. Measured on three synthetic series, 2.618 produced 74 to 81.5 flips per 1000 bars, 4.236 produced 53 to 59.5, and 6.854 produced 37.5 to 40.5. Halving the flip rate takes a factor of roughly 1.6, not a small tweak.
Warm-up bars 300 50–5000 How many bars of the recursion the generated code folds on each tick. Nothing here is published by an indicator, so the EA rebuilds the smoothing and the band from scratch every time. Measured against a baseline computed over the full history, 200 bars reproduced the trend exactly on all three test series; 100 bars differed on up to 0.8% of bars — two of the three series, with the third matching exactly — and 50 bars differed on 5.6% to 8.2% on every series. The default of 300 is the safe side of that measurement.
Shift 1 0–100 Which bar the node reports. The template uses 1 so decisions are made on a closed bar. Shift 0 is worth avoiding here in particular: the band is trailing, so an unfinished bar can flip the state and then unflip it before the bar closes.
Timeframe Current Current / M1–MN1 Which timeframe the RSI handle is created on. The flip rate quoted on this page is per bar, so a rate of once every twenty bars means twenty minutes on M1 and eighty hours on H4 — the same indicator is a scalping tool or a position filter depending only on this.

Preset iniziali

Template 14 / 5 / 4.236 with an RSI-50 gate The standard settings, with the gate that removes about a third of the flips
Slower 14 / 5 / 6.854 Measured at 37.5–40.5 flips per 1000 bars against the default's 53–59.5
Filter only Compare the trend against zero No entry of its own — one node and one Compare, and nothing to fit

Esempi di mercato

Dove QQE funziona, dove fallisce e come un filtro cambia il risultato.

Funziona

The regime change caught on the flip

Momentum turns and the smoothed RSI breaks the band it had been trailing above. The plain RSI is already through 50, so the gate lets the entry through, and the state stays on that side for the length of the move.

Fallisce

The flip in a range

Price has gone nowhere, but the RSI has been moving inside it, and the band has tightened around a quiet stretch of momentum. The break happens on a move that means nothing on the price chart — the case the RSI-50 gate and an ADX filter are both aimed at.

Filtrato

The flip that the gate refused

An upward flip while the raw RSI is still below 50. Measured on synthetic series a third of all flips look like this, which is the single largest change the template makes to the bare indicator.

FAQ

Is QQE a built-in MetaTrader 5 indicator?
No. MT5 has no iQQE, and no Hull average or Supertrend either. The Builder's node creates one iRSI handle and computes the smoothing, the band width and the trailing inside the generated EA. Nothing needs to be installed in the terminal and no custom .ex5 is involved.
What does the node actually output?
The trend, as +1 or −1 — not an RSI reading. Compare it against zero to use it as a filter, or cross it against a constant zero to catch only the moments it changes. The smoothed RSI, the bands and the trailing level are local to the generated code and are not published to other nodes.
Why 4.236?
It is the value standard implementations use, and it equals φ³ to five figures. Nothing in the mathematics requires it — it is a scale factor on the band, and it is the one setting that changes behaviour substantially. Measured on three synthetic series: 2.618 gave 74 to 81.5 flips per 1000 bars, 4.236 gave 53 to 59.5, and 6.854 gave 37.5 to 40.5.
How often does it signal?
About once every twenty bars before any filter — 53.0, 54.5 and 59.5 flips per 1000 bars on the three synthetic series measured here. The rate was nearly identical on a trending series and on a pure random walk, because the band adapts to the RSI's own volatility rather than to the market's direction. This is the main reason the template adds a gate instead of trading the flips directly.
Does the RSI-50 gate actually change anything?
Yes, and it was measured rather than assumed: it removed 33.6% to 39.6% of the flips across the three series. The gate asks a different question from the trend — the trend is built on a smoothed RSI and reports which side of its band that line is on, while the gate reads the level of the plain RSI — so it is not a restatement of the same condition.
Why does the node need a warm-up setting?
Because there is no QQE handle to copy from, the EA rebuilds the whole recursion on each tick from the last N bars, and the recursion has to run long enough to forget where it started. Measured against a full-history baseline, 200 bars reproduced the trend exactly on all three series; 100 bars differed on up to 0.8% of bars (two of the three series; the third matched exactly) and 50 bars on 5.6% to 8.2% of every series. The default of 300 sits comfortably past that.
My chart's QQE looks different from this one — why?
Implementations differ in the details, and one of them matters a great deal: whether the trend is judged against the band before or after it is updated on the current bar. Comparing against the updated band agreed with the correct version on only 47.2% to 48.4% of bars in the measurements here. Other differences are smaller — the two common ways of writing the trailing logic, with two bands or with a single level, produced identical trends on 100% of the 1500 bars compared.
Can I build this without coding?
Yes. The template is a QQE node and a constant zero into two Cross nodes for the flips, an RSI node with two Compare nodes against 50, two And gates, two Close nodes wired ahead of the entries, and Open Buy / Open Sell on a fixed lot. The RSI period, smoothing, band factor and warm-up are set in the Builder; the compiled EA exposes them as inputs along with the stop distances, lot size and maximum spread.

Glossary

Termini chiave