RSI Length sets both QQEs, as QQE MOD's defaults match them. Line factor is the Secondary group's QQE Factor; the Primary's stays 3.
RSI 6, line factor 1.61, threshold 3, multiplier 0.35: 23 blue and 43 red columns of the 96 shown.
They come in 2 blue runs and 3 red runs; 25 more columns are grey (past the threshold only) and 5 candles draw no column. 1 more column turned blue or red 5 or 10 minutes into a candle and lost the colour by its close (dashed). The QQE line crosses the RSI 17 times; its factor moves the line and no column. Coloured columns at the other multipliers: 0.1: 72, 1: 47, 2: 26.
Simulated 15-minute candles, not market data: a window of the seeded market our structure films use. The first 296 back-to-back 15-minute candles of the simulated market (200 to warm the RSI and the 50-candle bands up, 96 shown) whose shown candles span no more than 14 times their median high-to-low range, so each candle shows at the chart's scale, and in which, at QQE MOD's defaults, the shown candles carry at least two runs of blue columns, at least two runs of red columns and at least one blue or red column that showed 5 or 10 minutes into a candle and was gone at its close; Multiplier 1 gives fewer coloured columns than 0.35, and RSI Length 14 a different count from 6. Both QQEs are computed by our own code from the recipe the post reads in QQE MOD's code (version 2: the RSI's move averaged once), on one RSI, as QQE MOD's defaults set them; the hidden QQE keeps its factor 3, the RSI Smoothing stays 5 and the Bollinger Length 50. It isn't QQE MOD's code. The dashed bands are the hidden QQE's Bollinger bands, which QQE MOD works out but doesn't draw. Live readings are taken 5 and 10 minutes into each candle, not on every price update, so a real chart can show more. The counts show the mechanics, not which setting is better: no trades and no costs are counted.
Read as text: the coloured columns at RSI 6, line factor 1.61, threshold 3, multiplier 0.35
- Red, 12 columns from the 19:00 candle: the column reaches -32.1.
- The 22:00 candle's column showed red 5 minutes in, at -16.2, and closed grey (dashed).
- Blue, 21 columns from the 03:30 candle: the column reaches +25.5.
- Red, 26 columns from the 09:30 candle: the column reaches -18.8.
- Red, 5 columns from the 16:30 candle: the column reaches -15.2.
- Blue, 2 columns from the 18:30 candle: the column reaches +8.1.
What we read
On 26 November 2026 we searched TradingView's scripts for "qqe mod" and "qqe": 49 scripts with QQE in the name, 44 of them open source, 5 protected and none invite-only. The most boosted is colinmck's QQE signals; Mihkel00's QQE MOD is second. We read its full source, 94 lines of Pine v6, version 2 of 11 December 2024, the only version its version list holds. We also read its version 1 of 20 January 2020, 120 lines of Pine v4, through the same endpoint, and four other open-source QQE scripts. Line numbers below are the script's own, as TradingView served it that day. We read code; we didn't measure how any setting trades.
The code carries no licence line, and its page labels it open-source. We quote it a line at a time, with the link, and port none of it. The page's own description says where it came from: "The Orginal script is from Glaz, this is not my original idea - all I did was pretty much smash two QQEs together."
Mihkel00's twelve inputs
Settings shows three groups, and the first two repeat the same five names, so the group matters.
| Input in Settings | Group | Default | Line | What the code does with it |
|---|---|---|---|---|
| RSI Length | Primary QQE Settings | 6 | 7 | The hidden QQE's RSI, and the window of its average move: 2 × 6 − 1 = 11 candles (line 29). |
| RSI Smoothing | Primary QQE Settings | 5 | 8 | A 5-candle EMA of that RSI (line 31). The blue and red tests read this smoothed RSI. |
| QQE Factor | Primary QQE Settings | 3.0 | 9 | How far the hidden QQE's line trails its RSI: 3 times the RSI's average move (line 34). The line is never drawn; the Bollinger bands wrap it (lines 68 and 69). |
| Threshold | Primary QQE Settings | 3.0 | 10 | Nothing. It is declared on line 10 and never used again. |
| RSI Source | Primary QQE Settings | close | 11 | The price the hidden RSI reads. |
| RSI Length | Secondary QQE Settings | 6 | 15 | The same, for the drawn QQE. Its smoothed RSI minus 50 is the columns (line 82). |
| RSI Smoothing | Secondary QQE Settings | 5 | 16 | The drawn QQE's EMA of its RSI. |
| QQE Factor | Secondary QQE Settings | 1.61 | 17 | How far the white line trails the drawn RSI (line 81). It moves the line and no column's colour. |
| Threshold | Secondary QQE Settings | 3.0 | 18 | No column is drawn inside ±3 (line 77), and a blue or red column must be past it too (lines 85 and 86). |
| RSI Source | Secondary QQE Settings | close | 19 | The price the drawn RSI reads. |
| Length | Bollinger Bands Settings | 50 | 23 | The window of the bands' average and standard deviation (lines 68 and 69). |
| Multiplier | Bollinger Bands Settings | 0.35 | 24 | How many standard deviations the bands sit from their average. The box steps by 0.1, from 0.001 to 5. |
At the defaults both groups use RSI Length 6, RSI Smoothing 5 and the close, so the two smoothed RSIs are one series. The two QQEs differ only in their factor: the hidden one trails at 3, the drawn one at 1.61.
The two QQE lines
Each QQE is built by the same function, lines 28 to 58. The RSI of the close over 6 candles (line 30) is smoothed by a 5-candle EMA (line 31). The function then takes how far that smoothed RSI moved from one candle to the next (line 32) and averages the move over 11 candles, once, on line 33 of Mihkel00's script:
smoothedAtrRsi = ta.ema(atrRsi, wildersLength)
That average times the QQE Factor (line 34) is the distance the line keeps. Lines 45 and 46 build a floor under the smoothed RSI that only rises while the RSI stays above it, and a ceiling over it that only falls while the RSI stays below it. When the RSI crosses the last candle's ceiling, the line becomes the floor; when it crosses the last candle's floor, the line becomes the ceiling (lines 47 to 57). So the QQE line is a trailing stop on the RSI, and the factor sets how far back it trails.
A larger factor trails further back and is crossed less often. In the drill, the line crosses the RSI 19 times at factor 1, 17 at the default 1.61 and 11 at 3, on the same candles. That's a property of these candles, not a ranking.
What colours a column
The columns are the drawn QQE's smoothed RSI minus 50 (line 82), so they sit above zero when that RSI is above 50. Their colour has four cases, and the blue one is line 85 of the script:
plot(secondaryRSI - 50 > thresholdSecondary and primaryRSI - 50 > bollingerUpper ? secondaryRSI - 50 : na, title="QQE Up Signal", style=plot.style_columns, color=#00c3ff)
- Blue (#00c3ff): the column is above +3, and the hidden QQE's smoothed RSI minus 50 is above the upper Bollinger band.
- Red (#ff0062, line 86): the column is below −3, and the hidden RSI minus 50 is below the lower band.
- Grey (#707070, line 77): the column is past ±3, but the band test fails.
- No column: inside ±3, the colour is
naand nothing is drawn.
The Bollinger bands don't wrap the price or the RSI. They wrap the hidden QQE's line, line 69 of the script:
bollingerDeviation = bollingerMultiplier * ta.stdev(primaryQQETrendLine - 50, bollingerLength)
Line 68 averages the same line over 50 candles, and the bands sit 0.35 standard deviations either side. The page calls this "a 50 MA bollinger band acting as a zero line". A blue column needs the hidden RSI to clear the upper band, so a wider Multiplier asks for a bigger move. In the drill, 0.1 colours 72 of the 96 columns blue or red, the default 0.35 colours 66, 1 colours 47 and 2 colours 26.
The page's release note of 11 December 2024 puts it this way: "The first QQE visually represents momentum shifts as columns" and "The second QQE, combined with a Bollinger Band zero line, adds a layer of confirmation". In the code, the columns and the line are the Secondary group's (lines 81 and 82), and the Bollinger bands wrap the Primary group's line (lines 68 and 69). In Settings, that means:
- To change the columns, change the Secondary RSI Length, Smoothing or Source.
- To change when they turn blue or red, change the Primary group, the Bollinger Length or Multiplier, or the Secondary Threshold.
- The Secondary QQE Factor moves only the white line.
- The Primary Threshold does nothing. Line 74 also works out a colour for the Primary RSI that no plot uses.
The alerts
The two alert conditions don't fire on a blue or red column. Line 93 of the script:
alertcondition(ta.crossover(primaryRSI, 50), title="Primary RSI Cross Above Zero", message="Primary RSI crossed above zero")
Line 94 is the same cross downward, "Primary RSI Cross Below Zero". The titles say zero because the pane draws everything minus 50. At the defaults the Primary RSI is the columns' RSI, so the alert fires when the columns cross zero. Change the Secondary RSI Length and the columns move, but the alerts still follow the Primary's RSI, which isn't drawn.
With an alertcondition, the alert's Trigger decides when it fires: Once per bar fires as soon as the cross shows on the live candle, even one that's gone by the close; Once per bar close fires only if it's still there when the candle closes (the difference, with a film).
The live candle
Nothing waits for the close. The script has no barstate.isconfirmed, requests no other timeframe and keeps no var state. On a live candle, Pine works every value out again from the price so far, so a column can turn blue or red mid-candle and lose the colour by the close. Closed columns don't change. In the drill at the defaults, the 22:00 candle's column showed red 5 minutes in and closed grey. Our repainting guide shows how to check any script for this.
Version 1 and version 2
The release note says version 2 moved the script from Pine Script version 4 to version 6. The code shows more than a port. Version 1 averaged the RSI's move twice, its line 22 (an earlier version of the same script, which its version list doesn't hold; we read it through the endpoint above):
dar = ema(MaAtrRsi, Wilders_Period) * QQE
Version 2 averages it once (line 33). Version 1 had no alerts; version 2 adds the two above. Version 1 named the factors "Fast QQE Factor" and "Fast QQE2 Factor", with the same 3 and 1.61, and it too declared a first Threshold that nothing used (its line 8). On the drill's candles, the double average gives 23 blue and 47 red columns where version 2 gives 23 and 43.
Settings for scalping and for swings
The code and its page give no setting advice by timeframe. We haven't tested any setting, and we don't name a best one. What the code does say is what each input trades:
- RSI Length: a longer RSI reads more candles. The drill sets it in both groups at once: 6 colours 66 columns, 10 colours 60 and 14 colours 53.
- Threshold: a higher one leaves more small columns undrawn and uncoloured. 3 colours 66, 6 colours 62 and 10 colours 46.
- Multiplier: a wider band asks the hidden RSI for a bigger move. 0.35 colours 66 and 2 colours 26.
Whatever you pick, fix it before you test it, and test on closed candles with your costs (how to backtest on TradingView).
How other open-source QQE scripts set their defaults
The three most-boosted open-source scripts that work out a QQE of their own, JustUncleL's most-boosted QQE script, and glaz's QQE MT4, whose variable names QQE MOD's version 1 shares, as TradingView's search showed them on 26 November 2026. Two others near the top, Peter_O's Momentum-based ZigZag (incl. QQE) NON-REPAINTING (12,647 boosts) and kevinmck100's QQE MOD + SSL Hybrid + Waddah Attar Explosion (5,376), combine a QQE with other tools, so they aren't in this table.
| Script | Boosts | RSI length, smoothing | QQE factor | The RSI's move | Alerts and licence |
|---|---|---|---|---|---|
| QQE signals (colinmck) | 17,107 | 14, 5 | 4.238 | Averaged twice | Draws only Long and Short labels on the price chart; two alert conditions, Long and Short; MPL 2.0 |
| QQE MOD (Mihkel00) | 14,125 | 6, 5, both QQEs | 3 hidden, 1.61 drawn | Averaged once | Two alert conditions on the hidden RSI crossing 50; no licence line |
| Quantitative Qualitative Estimation QQE (KivancOzbilgic) | 13,149 | 14, 5 | 4.236, written into the code | Averaged twice, at 1/14 | Five alert conditions; MPL 2.0 |
| QQE Cross Indicator Alert v2.0 (JustUncleL) | 5,356 | 6, 3 | 2.618 | Averaged twice | Four alert conditions; GPL 3 or later |
| QQE MT4 (glaz) | 2,280 | 14, 5 | 4.236 | Averaged twice | None; no licence line |
Three details from that read. QQE MOD's RSI Length of 6 is less than half the 14 that three of the others use. colinmck's script also has a Threshold of 10 that its code never uses. And KivancOzbilgic's factor has no input: to change it, you'd edit the code.
None of these scripts, Mihkel00's included, publishes a tested result we could check, and boosts measure popularity, not quality. Two more oscillators we read the same way: Squeeze Momentum settings and WaveTrend settings.
Ours
Pine Pro Library has no QQE, and we won't dress one of our desks up as one. What Signal Desk does have is the idea this read keeps coming back to: two readings of RSI that must agree. Its momentum factor counts for a long only when RSI 14 is above its own 14-candle average and above 50, and for a short only when it is below both. It is one of the eight factors Signal Desk scores, and its entries are checked on closed candles, with barstate.isconfirmed, so a signal doesn't come and go on the live candle. Signal Desk is in Pine Pro Library, $49 once with the full Pine v6 source of every desk.
We haven't tested a QQE MOD column, or Signal Desk's momentum factor, as a trading rule.
Where we stand
Every line number, default and boost count here was read from TradingView's pages on 26 November 2026 (docs/seo/research/2026-11-26-qqe-mod-scripts.md). Scripts change, so check the version before you rely on a line number. The drill's 96 candles are simulated, built to show the settings and the live candle at work, and its pane is our own code of the QQE recipe read above, version 2's, not Mihkel00's script: it says nothing about how any setting trades. We build and sell Pine Pro Library, and we have no relationship with any author named here. Nothing here is financial advice.
Frequently asked questions
What are the default settings of QQE MOD by Mihkel00?
Primary QQE Settings: RSI Length 6, RSI Smoothing 5, QQE Factor 3.0, Threshold 3.0, RSI Source close. Secondary QQE Settings: the same, except QQE Factor 1.61. Bollinger Bands Settings: Length 50, Multiplier 0.35. Those are the 12 inputs in version 2 of the script, the version TradingView served on 26 November 2026.
What are the best QQE MOD settings for scalping?
We haven't tested any, so we don't name one, and neither the code nor its page gives advice by timeframe. What the code does show is what each input trades: on the drill's simulated candles, where RSI Length moves both groups at once, 6 colours 66 of 96 columns, 10 colours 60 and 14 colours 53, and Multiplier 2 colours 26 where the default 0.35 colours 66.
What do the blue and red bars mean in QQE MOD?
Each column is the Secondary QQE's smoothed RSI minus 50. It is blue when that value is above the Threshold, 3, and the Primary QQE's smoothed RSI minus 50 is above the upper Bollinger band; red when it is below minus 3 and the Primary's is below the lower band. Past plus or minus 3 without the band, the column is grey; inside plus or minus 3 no column is drawn.
What does the Threshold do in QQE MOD?
Only the Secondary group's Threshold does anything. It hides every column inside plus or minus 3 and is one of the two tests a blue or red column must pass. The Primary group's Threshold is declared on line 10 and never used again, so changing it changes nothing on the chart.
Why doesn't the Secondary QQE Factor change the colours?
Because no colour reads it. The Secondary QQE Factor, 1.61, sets how far the white line trails the smoothed RSI. The columns' colours read the Secondary RSI, the Threshold, and the Primary QQE's smoothed RSI against a Bollinger band built on the Primary QQE's line. On the drill's candles, factor 1, 1.61 and 3 give the same columns, while the line crosses the RSI 19, 17 and 11 times.
Does QQE MOD repaint?
Only its live candle changes. The code requests no other timeframe and never waits for the close: there is no barstate.isconfirmed, so a column can turn blue or red mid-candle and be grey at the close. Closed columns stay as they are. In the drill at the defaults, the 22:00 candle's column showed red 5 minutes in and closed grey.
What do QQE MOD's alerts fire on?
Its two alert conditions, Primary RSI Cross Above Zero and Primary RSI Cross Below Zero, fire when the Primary QQE's smoothed RSI crosses 50, which is zero in the pane. They don't fire on a blue or red column. At the defaults both QQEs share one RSI, so that is the columns crossing zero; change the Secondary RSI Length and the alerts still follow the Primary's RSI, which isn't drawn.
Is there a QQE MOD indicator for MT5?
Not this one. QQE MOD is Pine Script, which runs only on TradingView. An MT5 version would be a new program written in MQL5, and it would need checking against the Pine original candle by candle.



