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
Örnek amaçlı — sentetik veri, gerçek zamanlı fiyat teklifi değil.
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 Smooth the RSI with an EMA of the smoothing length (5)
- 2 Smooth |change in that line| twice with a Wilder-length EMA, then scale by 4.236
- 3 Trail a band that width either side; the side broken is the trend
Formülü ve hesaplama detayını göster
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.
Sinyaller
QQE'in sunduğu farklı ve geri test edilebilir sinyaller — ve her birinin uygun olduğu piyasa koşulu.
Flip with a Momentum Gate
Builder'da hazırState as a Filter
Builder'da hazırDivergence against the smoothed RSI
Gelişmiş mantıkMT5 uygulaması
MetaTrader 5'in gerçekte hesapladığı ve çizdiği şey — bu sayfadaki her kuralın dayanağı.
Tamponlar
| Dizin | Tampon | MT5'te çizim şekli | Ne tutar |
|---|---|---|---|
| 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. |
Platform notları
En iyi çalıştığı yer / dikkatli kullanın
Hiçbir gösterge evrensel bir avantaja sahip değildir. QQE'in yardımcı olduğu yer — ve yanıltıcı olduğu yer.
En iyi çalıştığı yer
- 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
Dikkatli kullanın
- 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
QQE stratejisi oluştur
Sinyali giriş ve çıkış kurallarına bağlayın, ardından derlenebilir bir MT5 EA dışa aktarın — kod gerektirmez.
- One QQE node at 14 / 5 / 4.236, reading the last closed bar
- A constant of zero, crossed against the trend to catch only the flips
- One RSI node at 14, compared against 50 for the gate
- Flip up and RSI above 50 → Close short, then Open Buy · SL 60 / TP 180
- Flip down and RSI below 50 → Close long, then Open Sell, mirrored
QQE'i diğer göstergelerle birleştir
Tek bir gösterge nadiren yeterlidir. Bu eşleştirmeler QQE'in kör noktalarını kapsar.
QQE + RSI
- QQE trend crossing zero
- RSI against 50
- And gate
QQE + Supertrend
- QQE trend
- Supertrend trend
- And gate
No template holds both. Add a Supertrend node beside the QQE node, compare each against zero, and join them with an And gate.
Builder'ı aç →QQE + ADX
- ADX above 25
- QQE trend crossing zero
- And gate
Add an ADX node with a Compare against 25 and join it to the Cross with an And gate before the entry.
Builder'ı aç →Parametreler
Kendi paritenz ve zaman diliminizde doğrulamak için başlangıç değerleri — garantili ayarlar değil.
| Parametre | Varsayılan | Önerilen test aralığı | Ne işe yarar |
|---|---|---|---|
| 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. |
Başlangıç ön ayarları
Piyasa örnekleri
QQE'in çalıştığı yer, başarısız olduğu yer ve filtrenin sonucu nasıl değiştirdiği.
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.
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.
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.
İlgili göstergeler
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.
İlgili makaleler
Glossary