AI Adaptive Quant Toolkit
Complete guide to the Quantzee AI Adaptive Quant Toolkit v2.2 — Classic and Adaptive signal engines, Signal Profiles, overlays, the dashboard, every setting with its default, and all 20 alerts.
Quick start: add the indicator and leave the defaults as they are. Out of the box it runs the Classic engine with the Pulse Gate Signal Profile, Signal Sensitivity 10 and Signal Tuner 10. That is our suggested setup for trend-following. Look for the BUY and SELL labels.
Want signals and alerts only on closed candles? Turn on Confirmed Bars Only (Basic Settings). It is off by default.
Test any setup on paper trade first before using it live. This is analytical software, not trading advice.
1. What is the AI Adaptive Quant Toolkit?
It is an all-in-one trend tool for TradingView. One indicator gives you:
- BUY and SELL signals from an adaptive ATR-band engine, each with a 1-4 quality score;
- five exit types, each with its own alert;
- four chart overlays (Quant Trail, Pulse Line, Quant Cloud, Stretch Zones) plus an optional AI Moving Average;
- coloured candles;
- a live dashboard (Trend Strength, Volatility, Squeeze, Volume Sentiment).
This page covers version 2.2, the current release. Version 2.2 (25 Nov 2026) is a speed-up so the script loads on free TradingView plans; signals and plots are the same as v2.1. The script is Quantzee’s own code, written in Pine Script v6, with no imported libraries. For the product overview, see the AI Adaptive Quant Toolkit product page.
2. What changed from v1.11?
If you used v1.11, here is the short version:
| v1.11 name | v2.2 name |
|---|---|
| Smart Trail | Quant Trail |
| Trend Catcher | Pulse Line |
| Neo Cloud | Quant Cloud |
| Reversal Zones | Stretch Zones |
| AI Signal Classifier | AI Signal Score |
| Autopilot Sensitivity | Auto-Tune Sensitivity |
| Presets / Filters (setting) | Signal Profile |
| Swing Trader preset | Swing Mode |
| Contrarian Trader preset | Counter-Trend Mode |
| Trend Strength filter | Strength Gate |
| Trend Catcher filter | Pulse Gate |
| Signal Mode: Confirmation + Exits / Contrarian + Exits | Trend + Exits / Counter-Trend + Exits |
| Candles: Confirmation Simple / Confirmation Gradient / Contrarian Gradient | Trend Solid / Trend Gradient / Counter-Trend Gradient |
- New: the Engine setting (Classic / Adaptive), Confirmed Bars Only, and full settings for Pulse Line and Quant Trail.
- Same signals: the Classic engine (the default) gives the same BUY/SELL bars, 1-4 score, trailing stop and AI Moving Average as v1.11. The Quant Trail defaults give the same trail as v1.11’s Smart Trail.
- Removed: the Trend Trader and Scalper presets, the Smart Trail, Trend Tracer and Neo Cloud filters, the Trend Tracer line, the Trailing Stoploss line, Session boxes, TP/SL boxes and the ungrouped ATR Multiplier input. There are now 20 alerts (the two Trend Tracer exit alerts are gone).
- Volume Sentiment now shows “n/a” on symbols that report no volume.
3. The two signal engines
Set this with Engine in Basic Settings. Signal Profiles, alerts and the dashboard work the same with both.
Classic (default)
Classic tests a ladder of ATR bands (supertrend-style bands set a number of ATRs away from price). The band factors run from Signal Sensitivity minus 4 up to Signal Sensitivity, in steps of 0.5. With the default of 10 that is 6.0, 6.5 … 10.0.
Each band keeps a running score of how well it has been tracking price. Every bar, the scores are split into three groups (best, middle, worst) with k-means grouping (a simple way to sort values into clusters). The average factor of the best group sets one master band. Price closing through that master band gives the trend flip, the BUY/SELL signal and the trailing stop.
How strong the best group’s score is, compared with the normal bar-to-bar move, is called efficiency. It sets the 1-4 score and how fast the AI Moving Average follows price.
- Recent bars only: to keep the script fast on TradingView, Classic does its grouping on the most recent 2,500 bars. Classic signals start inside that window. Bars older than that show no Classic signals.
Adaptive
Adaptive runs nine ATR bands spread evenly across the same factor range. Each band earns an edge score: the price move (measured in ATRs) it captured while holding its direction, with a memory of about 20 bars. The working factor is a weighted blend of all nine, leaning strongly toward the best scorers. A master band at that blended factor gives the trend, the stop and the signals.
The blended edge, compared with the typical move, gives a confidence value from 0 to 1. That sets the 1-4 score and the AI Moving Average speed. Adaptive works on the whole chart history, with no 2,500-bar window.
Which one should I use?
Start with Classic. It is the default and matches v1.11. Try Adaptive if you want the factor to shift more smoothly as conditions change. The two engines agree on direction most of the time, but their signals often land on different bars. Compare them on paper trade on your own market and timeframe before you pick one.
4. Confirmed Bars Only
Default: off.
- Off (same as v1.11): BUY/SELL labels, exit marks and all alerts can fire on the live, still-open bar. If price moves back before the bar closes, the label can disappear and an alert set to “Once Per Bar” may already have fired.
- On: signal labels, exit marks and all 20 alert conditions only fire once the bar has closed. Nothing appears and then vanishes mid-bar.
For close-only signals and alerts, turn Confirmed Bars Only on. You can also set the TradingView alert’s trigger to Once Per Bar Close, which waits for the close on the TradingView side.
Bars that have already closed never change, whichever setting you use.
5. Signal Profile
The Signal Profile dropdown has five choices. The default is Pulse Gate. Two profiles change settings for a trading style (the Modes). Two only let signals through when a reading agrees (the Gates).
| Profile | What it does |
|---|---|
| None | No profile. Every engine flip prints a signal. |
| Swing Mode | Sets Signal Sensitivity to 18 (your own Sensitivity value is ignored while it is on), turns Quant Cloud on, and sets Candle Coloring to Trend Solid. |
| Counter-Trend Mode | Turns Quant Trail and Stretch Zones on and sets Candle Coloring to Counter-Trend Gradient. It does not change Signal Mode. |
| Strength Gate | BUY and SELL only print when the dashboard’s Trend Strength is 25% or more. |
| Pulse Gate | BUY only prints when the Pulse Line is pointing up. SELL only prints when it is pointing down. Works even when the Pulse Line overlay is hidden. |
Notes:
- A Mode can switch an overlay on, but it cannot switch one off. If you already turned an overlay on yourself, it stays on.
- The Modes do not block signals. Only the two Gates (Strength Gate, Pulse Gate) block signals.
- When Auto-Tune Sensitivity is set, its fixed band replaces the factor range from Signal Sensitivity, including the 18 from Swing Mode.
- You can use only one Signal Profile at a time.
6. Signals, the 1-4 score and Signal Mode
A BUY label (teal, below the bar) prints when the engine flips bullish and the active Gate (if any) agrees. A SELL label (red, above the bar) prints when it flips bearish.
Signal Mode:
- Trend + Exits (default) — signals follow the new trend.
- Counter-Trend + Exits — signals fade the new trend: BUY when the engine turns bearish, SELL when it turns bullish. The Gate still checks the signal’s own side (a BUY still needs the Pulse Line up).
- None — hides signal labels and exit marks. BUY/SELL alerts and exit alerts also stop, because no trade side is ever opened. The Ribbon alerts still work.
AI Signal Score (default on) prints a number from 1 to 4 inside each label. Higher means the engine’s best bands are capturing more of the recent move:
| Score | Classic engine (efficiency x 10) | Adaptive engine (confidence) |
|---|---|---|
| 1 | under 2 | under 0.10 |
| 2 | 2 to under 4 | 0.10 to under 0.20 |
| 3 | 4 to under 5 | 0.20 to under 0.30 |
| 4 | 5 and up | 0.30 and up |
On Classic, if prices are completely flat and efficiency cannot be worked out, the label shows 4 (same as v1.11). The score describes how the engine has been tracking price. It is not a forecast and not a win-rate.
With AI Signal Score off, labels show ▲ / ▼ instead. A ”+” is added (▲+ or ▼+) when the 50 EMA is on the same side of the 200 EMA as the signal.
7. Exits
Once a BUY prints, the indicator treats the trade side as long until the next SELL (and the other way round). Exit conditions are only checked against that open side. The side does not close after an exit fires, so the same exit type can fire more than once before the next opposite signal.
| Exit | When it fires (long side; short side is the mirror) |
|---|---|
| Trigger Wave | A momentum divergence at a wave top: price makes a higher high than the previous wave (within 30 bars), but momentum makes a lower one, and a smoothed momentum line confirms the roll-over. Shown on the chart as a ✖ mark. |
| Oscillator Cross | The fast momentum wave crosses down through the normal wave while the normal wave is above zero. |
| Quant Trail | The Quant Trail flips from long to short. |
| Quant Cloud | The Quant Cloud’s midline turns down after rising or flat. |
| Trailing Stop | Price closes below the signal engine’s own trailing stop (the master band, not the Quant Trail). |
The momentum waves behind Trigger Wave and Oscillator Cross are worked out inside the script and are not drawn on the chart. Only Trigger Wave exits draw a ✖ mark. The other exit types are alert-only.
Quant Trail and Quant Cloud exits work even when those overlays are hidden.
8. Overlays
| Overlay | Default | What it shows |
|---|---|---|
| Quant Trail | On | An ATR trailing stop that only moves with the trend and flips when price closes through it. Blue when long, red when short, with a shaded band beside it. |
| Pulse Line | Off | A smoothed moving average that turns green or red only after a run of rising or falling bars with price clear of the line. It drives the Pulse Gate and the dashboard colours. |
| Quant Cloud | Off | A two-speed trend cloud between a fast/medium EMA blend (21 and 55) and a slow EMA (100) of the typical price. Blue when the fast side is on top, red otherwise. Visual and exit alerts only. It does not block signals. |
| Stretch Zones | On | Mean-reversion bands set 1.7 to 3.1 “spreads” above and below a 100-bar mean, in two shaded layers. Red-toned above, teal below. Price inside a zone is stretched far from its mean. Visual only. |
| Dashboard | On | The live metrics table (section 10). |
| AI Moving Average | Off | The engine’s adaptive average. Teal when price is above it, red when below. On Classic it starts at the engine stop and closes the gap faster when efficiency is high. On Adaptive it follows price faster when confidence is high. |
Candle Coloring (default Trend Solid) colours bars from MACD momentum:
- Trend Solid — three colours: green for strong bullish momentum, red for strong bearish, purple for in-between.
- Trend Gradient — nine shades from strong bull to strong bear.
- Counter-Trend Gradient — the same gradient with bull and bear colours swapped.
- None — normal TradingView candles.
9. Every setting and its default
Basic Settings
| Setting | Default | Options / range | What it does |
|---|---|---|---|
| Show Signals | On | On / Off | Shows or hides signals. Off also stops BUY/SELL and exit alerts. |
| Signal Profile | Pulse Gate | None, Swing Mode, Counter-Trend Mode, Strength Gate, Pulse Gate | See section 5. |
| Signal Mode | Trend + Exits | Trend + Exits, Counter-Trend + Exits, None | See section 6. |
| Engine | Classic | Classic, Adaptive | See section 3. |
| Confirmed Bars Only | Off | On / Off | See section 4. |
| AI Signal Score | On | On / Off | Shows the 1-4 score in each label. |
| Signal Sensitivity | 10 | 1 to 26, step 0.1 | Lower = more short-term signals. Higher = fewer, longer-term signals. The engine tests band factors from this value minus 4 (never below 1) up to this value. |
| Signal Tuner | 10 | 1 to 25 | ATR length used by the signal engine. Higher = smoother but slower signals. |
| Candle Coloring | Trend Solid | Trend Solid, Trend Gradient, Counter-Trend Gradient, None | See section 8. |
Indicator Overlay
| Setting | Default |
|---|---|
| Quant Trail | On |
| Pulse Line | Off |
| Quant Cloud | Off |
| Stretch Zones | On |
| Dashboard | On |
| AI Moving Average | Off |
Advanced Settings
| Setting | Default | Options | What it does |
|---|---|---|---|
| Auto-Tune Sensitivity | Off | Off, Short-Term, Mid-Term, Long-Term | Replaces the factor range from Signal Sensitivity with a fixed band: Short-Term 1-4, Mid-Term 5-10, Long-Term 8-13. |
| Dashboard Location | Bottom Right | Top Right, Bottom Right, Bottom Left | Where the dashboard sits. |
| Dashboard Size | Normal | Tiny, Small, Normal, Large | Text size of the dashboard. |
Pulse Line
| Setting | Default | Range | What it does |
|---|---|---|---|
| Length | 34 | 5 to 200 | Bars in the base average. Higher = slower, smoother line. |
| Average Type | EMA | EMA, SMA, WMA, RMA | Type of base average. SMA/RMA are slower, WMA a bit faster. |
| Extra Smoothing | 5 | 1 to 50 | Length of a second smoothing pass. 1 = off. |
| Confirm Bars | 3 | 1 to 20 | The line must rise (or fall) this many bars in a row before its colour can flip. |
| ATR Buffer | 0.2 | 0 to 3, step 0.05 | Price must close beyond the line by this many ATR(14) before the colour can flip. 0 = off. |
Quant Trail
| Setting | Default | Range | What it does |
|---|---|---|---|
| Trail Style | Fast | Fast, Slow | Fast = stop width is Multiplier x ATR, band at a fixed offset from the stop. Slow = a smoother trail whose band sits at the Band Fib Level. |
| ATR Length | 10 | 5 to 100 | Bars in the ATR that sets the stop width. |
| Multiplier | 6.0 | 1 to 10, step 0.1 | Stop distance in ATRs. Higher = wider stop, fewer and later flips. |
| ATR Smoothing | 8 | 1 to 50 | Fast: sets how the shaded band offset is averaged (the stop itself is not smoothed). Slow: smooths the ATR that sets the stop width (1 = off). |
| Confirm Bars | 1 | 1 to 20 | Closes in a row beyond the stop needed to flip. 1 = flip on the first close through. |
| ATR Buffer | 0.0 | 0 to 3, step 0.05 | How far beyond the stop (in ATRs) a close must be to count toward a flip. 0 = off. |
| Band Fib Level | 0.236 | 0 to 1 | Slow style only: where the band line sits between the stop (0) and the extreme since the last flip (1). Fast ignores it. |
The settings tooltips list a slower full setup if you want a calmer trail: Slow style, ATR Length 21, Multiplier 4.0, ATR Smoothing 10, Confirm Bars 3, ATR Buffer 0.5, Band Fib Level 0.236.
10. The dashboard
The dashboard updates on the latest bar and has five rows:
| Row | What it shows |
|---|---|
| 🔎 Manual Sensitivity / ✈️ Auto-Tune On | Shows the Auto-Tune mode (Off, Short-Term, Mid-Term or Long-Term). |
| Trend Strength (🔥 or ❄️) | Directional strength from 0 to 100%, based on the gap between DI+ and DI- (directional movement lines). 🔥 above 30%, ❄️ otherwise. The cell is green when the Pulse Line points up, red when down. |
| Quantzee Volatility (📈 or 📉) | Stable (rank under 30), Moderate (under 80) or Volatile, from where today’s ATR/price ranks over the last 100 bars. 📉 when volatility is easing below its 8-bar average, 📈 otherwise. Same green/red colour as Trend Strength. |
| 🔃 Squeeze | 0 to 100%. Compares Bollinger Band width with Keltner Channel width. Higher = tighter squeeze; 80% or more = the Bollinger Bands fit inside the Keltner Channel. |
| 💧 Volume Sentiment | Share of the last 20 bars’ volume that closed in the upper part of its bar. Green at 50% or more, red below. Shows n/a when the symbol has no volume data. |
11. Alerts (20)
Create them from TradingView’s alert dialog. Pick the indicator as the Condition, then choose one of these:
| # | Alert title | Message |
|---|---|---|
| 1 | BUY Entry | BUY ENTRY - {{ticker}} at {{close}} |
| 2 | SELL Entry | SELL ENTRY - {{ticker}} at {{close}} |
| 3 | EXIT Long - Trigger Wave | EXIT LONG (Trigger Wave) - {{ticker}} at {{close}} |
| 4 | EXIT Short - Trigger Wave | EXIT SHORT (Trigger Wave) - {{ticker}} at {{close}} |
| 5 | EXIT Long - Oscillator Cross | EXIT LONG (Oscillator Cross) - {{ticker}} at {{close}} |
| 6 | EXIT Short - Oscillator Cross | EXIT SHORT (Oscillator Cross) - {{ticker}} at {{close}} |
| 7 | EXIT Long - Quant Trail | EXIT LONG (Quant Trail) - {{ticker}} at {{close}} |
| 8 | EXIT Short - Quant Trail | EXIT SHORT (Quant Trail) - {{ticker}} at {{close}} |
| 9 | EXIT Long - Quant Cloud | EXIT LONG (Quant Cloud) - {{ticker}} at {{close}} |
| 10 | EXIT Short - Quant Cloud | EXIT SHORT (Quant Cloud) - {{ticker}} at {{close}} |
| 11 | EXIT Long - Trailing Stop | EXIT LONG (Trailing Stop) - {{ticker}} at {{close}} |
| 12 | EXIT Short - Trailing Stop | EXIT SHORT (Trailing Stop) - {{ticker}} at {{close}} |
| 13 | EXIT Long - Any Signal | EXIT LONG (Any) - {{ticker}} at {{close}} |
| 14 | EXIT Short - Any Signal | EXIT SHORT (Any) - {{ticker}} at {{close}} |
| 15 | Ribbon BUY | {"action":"BUY","ticker":"{{ticker}}","price":"{{close}}"} |
| 16 | Ribbon SELL | {"action":"SELL","ticker":"{{ticker}}","price":"{{close}}"} |
| 17 | Ribbon EXIT Long | {"action":"EXIT_LONG","ticker":"{{ticker}}","price":"{{close}}"} |
| 18 | Ribbon EXIT Short | {"action":"EXIT_SHORT","ticker":"{{ticker}}","price":"{{close}}"} |
| 19 | Ribbon Any Signal | {"action":"RIBBON_ALERT","ticker":"{{ticker}}","price":"{{close}}"} |
| 20 | Any Signal | ALERT - {{ticker}} at {{close}} |
What each group means:
- BUY / SELL Entry fire on the same bar the BUY or SELL label prints, so the Signal Profile Gates, Signal Mode and Show Signals all apply.
- EXIT alerts (3-12) are the five exit types from section 7, for the open long or short side.
- EXIT Long/Short - Any Signal fire when any of the five exit types fires for that side.
- Ribbon alerts follow the Quant Trail only. Ribbon BUY / SELL fire whenever the trail flips long / short, whether or not a BUY or SELL label printed. Signal Profile, Signal Mode and Show Signals do not affect them. Ribbon EXIT Long / Short fire when the trail flips against an open long / short side. They fire on the same bars as EXIT Long / Short - Quant Trail; only the message format (JSON, for webhooks) is different. Ribbon Any Signal fires on any of the four.
- Any Signal fires on any BUY, SELL or exit alert (1-14). It does not include the Ribbon alerts.
Timing: with Confirmed Bars Only off (the default), alerts can fire on the live bar. For close-only alerts, turn Confirmed Bars Only on, or set the alert trigger to Once Per Bar Close in TradingView. See Setting Up Alerts for the full walkthrough.
12. Can I use it on any market and timeframe?
Yes. It works on stocks, indices, commodities, forex and crypto, on any timeframe. On symbols with no volume data, only the Volume Sentiment row is affected (it shows n/a).
13. Does it use real machine learning?
Not in the sense of a trained model. “AI” here means the engine adapts on its own: it keeps scoring a set of candidate ATR bands and moves toward the ones that have been working (k-means grouping on Classic, a weighted blend on Adaptive). It is fully rule-based and runs entirely inside Pine Script.
14. How should I start?
- Add the indicator and keep the defaults (Classic engine, Pulse Gate).
- Watch how the BUY/SELL labels line up with the Quant Trail and the candle colours.
- Read the dashboard for trend strength, volatility and squeeze.
- Try another Signal Profile (Swing Mode or Counter-Trend Mode) or Auto-Tune if it fits your style.
- Decide whether you want live-bar or close-only signals, and set Confirmed Bars Only to match.
- Set alerts only after you understand how the signals behave.
Always test on paper trade first before using live trade.
15. Final thoughts
The toolkit is built to support your trading judgement, not replace it. It brings trend, momentum, volatility and exits into one view so you can read the market faster. It is analytical software, not investment advice.
