OPEN-SOURCE SCRIPT
3/10 Divergence + Ante (Raschke)

Rule-based LBR 3/10 divergences with three quality gates, TICK-confirmed "triple" divergences (the blindfold trade), and the Anti/kiss continuation setup — all in one pane, all with alerts.
█ OVERVIEW
TradingView already has plenty of 3/10 oscillators. They all do the same thing: plot SMA(3) − SMA(10) with a 16-period signal line and stop there. You still have to eyeball every divergence and every pullback yourself.
This script codifies the two setups the oscillator was actually built around, as taught by Linda Bradford Raschke and Adam Grimes: the momentum divergence (with the quality filters that separate a real one from noise) and the Anti — the first pullback after a fresh momentum impulse.
█ WHY THIS IS DIFFERENT
Three things I could not find in any other public script, let alone together:
• Divergences are gated, not just "detected." Generic divergence scripts fire on any two
oscillator pivots that disagree with price, producing endless noise. Here a divergence must
pass three quality gates drawn from how Raschke actually teaches the pattern: the two swings
must be the right distance apart, the first swing must be a genuine extension outside a
Keltner band, and momentum must stay on one side of its signal line for the entire pattern.
Most signals that generic scripts print never make it through these filters — by design.
• Triple divergence with NYSE TICK. When the price/oscillator divergence is also confirmed
by the NYSE TICK diverging at the same two pivots, a separate higher-conviction signal prints.
This is LBR's famous "blindfold trade" — the setup she said she'd take without looking at the
chart. There are TICK-divergence scripts and there are 3/10 scripts; none require both to line
up at the same pivots.
• The Anti ("kiss") is detected mechanically. The first-pullback-after-impulse trade is
usually described discretionarily. Here it is codified: a new momentum extreme (the fast line
turns black so you can see the impulse), then a shallow retracement toward a sloping signal
line, then a turn back in trend direction. No zero-line crossing tricks, no repurposed
MACD-cross signals.
If you just want a plain 3/10, use any of the existing ones. This one is for trading the setups.
█ THE OSCILLATOR
• Fast line (blue): SMA(close, 3) − SMA(close, 10). Short-term momentum.
• Slow line (orange): SMA(fast, 16). The trend of momentum.
• Histogram: fast − slow. Teal above zero, red below.
• The fast line turns black on any bar where it makes a new momentum high or low over the
impulse lookback. Black = impulse — your visual cue that an Anti setup may be arming.
Simple moving averages throughout — not EMAs. Typing 3/10/16 into a standard MACD gives you the wrong indicator.
█ SIGNAL 1 — DIVERGENCE (green/red triangles)
A bullish divergence prints when ALL of the following are true (bearish is the mirror):
1 — Two price pivot lows the right distance apart (9–12 bars by default). Raschke's
divergences are a rhythm, not just a shape: the swings need enough separation to represent
two distinct tests, but not so much that the pattern goes stale.
2 — Price makes an equal or lower low while the fast line makes a higher low. The classic
definition: sellers pushed price to a new low but couldn't generate new momentum doing it.
3 — The first swing traded outside the Keltner band (20 EMA ± 2.0 × ATR by default).
This is the exhaustion filter. A divergence is a fade — and per both Raschke and Grimes you
only fade a move that is overextended. If the first low never left the channel, there was
nothing climactic to fade, and the signal is skipped.
4 — The fast line never reached the slow line between the two pivots. The histogram stays
below zero the whole time, proving momentum stayed one-sided through the pattern. You're
catching genuine seller exhaustion, not a choppy range where the oscillator whips across its
signal line.
The script draws a line connecting the two oscillator pivots and prints a triangle. Because pivots need right-side bars to confirm, the shape appears a few bars after the actual swing — it does NOT repaint once printed.
How to trade it — Raschke
A divergence is not an entry, it's a condition. It tells you the last push is suspect and the next reaction is likely to retrace. Enter on price confirmation — a break of the divergence bar's high for longs, or the first strong close back inside the range — with a stop beyond the divergence extreme. First target is the middle of the prior range or the moving average. Divergence trades are countertrend, so take profits actively.
How to trade it — Grimes
Grimes uses the same 3/10 and treats divergence primarily as a warning: a trend leg that fails to make a new momentum extreme is a leg whose next pullback you don't buy. So even if you never fade anything, the triangles have a second use — a bearish divergence printing in your uptrend means stand aside on the next pullback entry, because the trend's momentum sponsorship is fading.
█ SIGNAL 2 — TRIPLE DIVERGENCE (yellow diamonds)
Everything in Signal 1, PLUS the NYSE TICK diverging at the same two pivots:
• Bullish: price lower low + 3/10 higher low + TICK higher low.
• Bearish: price higher high + 3/10 lower high + TICK lower high.
TICK measures the breadth of program buying and selling across the whole exchange. When price makes a new low but TICK refuses to, the selling pressure across the market — not just your symbol — is drying up. Raschke called the three-way version the trade she'd take blindfolded.
The yellow diamond prints in addition to the regular triangle, never instead of it. TICK data is requested without lookahead (no repainting) and defaults to USI:TICK.
Practical notes: this signal is intraday, US-equities-hours only — TICK is flat overnight and meaningless for crypto, forex, and non-US symbols; toggle it off there. Best on index futures, SPY/QQQ, and liquid US stocks on intraday timeframes.
█ SIGNAL 3 — ANTI / "KISS" (aqua and fuchsia circles)
The with-trend setup — Raschke's Anti / first pullback, the pattern Grimes describes as the closest thing to a bread-and-butter trade. The sequence for longs (shorts are the mirror):
1 — Impulse. The fast line makes a new momentum high over the lookback window and turns
black on the chart. A fresh momentum extreme statistically begets a retest of the price
extreme after a pullback: strong momentum rarely dies on the first attempt. The extreme must
have occurred above the slow line.
2 — Kiss. The fast line pulls back toward the slow line but only shallowly — within a
configurable fraction of the impulse-high-to-slow-line band, while the histogram is still
positive. This is Grimes's "reluctant pullback": the best continuation entries come when the
countertrend push can barely dent momentum. If the fast line slices through the slow line,
the setup is voided — that's a different, weaker structure.
3 — Slope. The slow line itself must be rising. The pullback happens against a
still-advancing momentum trend — this is what makes it an Anti rather than a guess.
4 — Turn. The fast line ticks back up from a local low. The circle prints on the turn —
momentum resuming in trend direction. Grimes: enter when momentum turns back in the
direction of the trend.
How to trade it: the circle is the alignment signal; execute off price. Typical plan — buy the break of the prior bar's high, stop below the pullback swing low, first target the impulse high (the retest), runner beyond. Because the setup requires a recent momentum extreme, you are structurally always trading in the direction of proven strength.
█ FEATURES / INPUTS
• 3/10: fast, slow, and signal lengths for the oscillator (SMAs).
• Divergence: pivot lookback; min/max bars between pivots; Keltner EMA, ATR, and
multiplier for the exhaustion filter.
• Triple divergence: on/off toggle and the TICK symbol (swap for your feed's TICK).
• Anti (kiss): impulse lookback defining a "new momentum extreme"; kiss depth (smaller =
pullback must get closer to the slow line); slow-line slope length.
Six alert conditions: bullish/bearish divergence, triple bullish/bearish divergence, Anti long/short. All fire on confirmed, non-repainting conditions.
█ LIMITATIONS
• Divergence shapes appear a few bars after the pivot — the cost of using confirmed swings
instead of repainting ones.
• Triple divergence only works where TICK works: US equities, intraday, regular hours.
• Divergence signals are countertrend by nature. In a runaway trend the Keltner and spacing
gates will suppress most of them — that is intentional. Raschke's own warning: don't hunt
divergences in the strongest trending markets.
• Nothing here is an entry system by itself. Both Raschke and Grimes trigger off price; the
oscillator tells you when and where to look.
█ THANKS
Credit to Linda Bradford Raschke (Street Smarts, LBRGroup) and Adam Grimes (The Art and Science of Technical Analysis) for the underlying methodology. Educational tool, not financial advice.
█ OVERVIEW
TradingView already has plenty of 3/10 oscillators. They all do the same thing: plot SMA(3) − SMA(10) with a 16-period signal line and stop there. You still have to eyeball every divergence and every pullback yourself.
This script codifies the two setups the oscillator was actually built around, as taught by Linda Bradford Raschke and Adam Grimes: the momentum divergence (with the quality filters that separate a real one from noise) and the Anti — the first pullback after a fresh momentum impulse.
█ WHY THIS IS DIFFERENT
Three things I could not find in any other public script, let alone together:
• Divergences are gated, not just "detected." Generic divergence scripts fire on any two
oscillator pivots that disagree with price, producing endless noise. Here a divergence must
pass three quality gates drawn from how Raschke actually teaches the pattern: the two swings
must be the right distance apart, the first swing must be a genuine extension outside a
Keltner band, and momentum must stay on one side of its signal line for the entire pattern.
Most signals that generic scripts print never make it through these filters — by design.
• Triple divergence with NYSE TICK. When the price/oscillator divergence is also confirmed
by the NYSE TICK diverging at the same two pivots, a separate higher-conviction signal prints.
This is LBR's famous "blindfold trade" — the setup she said she'd take without looking at the
chart. There are TICK-divergence scripts and there are 3/10 scripts; none require both to line
up at the same pivots.
• The Anti ("kiss") is detected mechanically. The first-pullback-after-impulse trade is
usually described discretionarily. Here it is codified: a new momentum extreme (the fast line
turns black so you can see the impulse), then a shallow retracement toward a sloping signal
line, then a turn back in trend direction. No zero-line crossing tricks, no repurposed
MACD-cross signals.
If you just want a plain 3/10, use any of the existing ones. This one is for trading the setups.
█ THE OSCILLATOR
• Fast line (blue): SMA(close, 3) − SMA(close, 10). Short-term momentum.
• Slow line (orange): SMA(fast, 16). The trend of momentum.
• Histogram: fast − slow. Teal above zero, red below.
• The fast line turns black on any bar where it makes a new momentum high or low over the
impulse lookback. Black = impulse — your visual cue that an Anti setup may be arming.
Simple moving averages throughout — not EMAs. Typing 3/10/16 into a standard MACD gives you the wrong indicator.
█ SIGNAL 1 — DIVERGENCE (green/red triangles)
A bullish divergence prints when ALL of the following are true (bearish is the mirror):
1 — Two price pivot lows the right distance apart (9–12 bars by default). Raschke's
divergences are a rhythm, not just a shape: the swings need enough separation to represent
two distinct tests, but not so much that the pattern goes stale.
2 — Price makes an equal or lower low while the fast line makes a higher low. The classic
definition: sellers pushed price to a new low but couldn't generate new momentum doing it.
3 — The first swing traded outside the Keltner band (20 EMA ± 2.0 × ATR by default).
This is the exhaustion filter. A divergence is a fade — and per both Raschke and Grimes you
only fade a move that is overextended. If the first low never left the channel, there was
nothing climactic to fade, and the signal is skipped.
4 — The fast line never reached the slow line between the two pivots. The histogram stays
below zero the whole time, proving momentum stayed one-sided through the pattern. You're
catching genuine seller exhaustion, not a choppy range where the oscillator whips across its
signal line.
The script draws a line connecting the two oscillator pivots and prints a triangle. Because pivots need right-side bars to confirm, the shape appears a few bars after the actual swing — it does NOT repaint once printed.
How to trade it — Raschke
A divergence is not an entry, it's a condition. It tells you the last push is suspect and the next reaction is likely to retrace. Enter on price confirmation — a break of the divergence bar's high for longs, or the first strong close back inside the range — with a stop beyond the divergence extreme. First target is the middle of the prior range or the moving average. Divergence trades are countertrend, so take profits actively.
How to trade it — Grimes
Grimes uses the same 3/10 and treats divergence primarily as a warning: a trend leg that fails to make a new momentum extreme is a leg whose next pullback you don't buy. So even if you never fade anything, the triangles have a second use — a bearish divergence printing in your uptrend means stand aside on the next pullback entry, because the trend's momentum sponsorship is fading.
█ SIGNAL 2 — TRIPLE DIVERGENCE (yellow diamonds)
Everything in Signal 1, PLUS the NYSE TICK diverging at the same two pivots:
• Bullish: price lower low + 3/10 higher low + TICK higher low.
• Bearish: price higher high + 3/10 lower high + TICK lower high.
TICK measures the breadth of program buying and selling across the whole exchange. When price makes a new low but TICK refuses to, the selling pressure across the market — not just your symbol — is drying up. Raschke called the three-way version the trade she'd take blindfolded.
The yellow diamond prints in addition to the regular triangle, never instead of it. TICK data is requested without lookahead (no repainting) and defaults to USI:TICK.
Practical notes: this signal is intraday, US-equities-hours only — TICK is flat overnight and meaningless for crypto, forex, and non-US symbols; toggle it off there. Best on index futures, SPY/QQQ, and liquid US stocks on intraday timeframes.
█ SIGNAL 3 — ANTI / "KISS" (aqua and fuchsia circles)
The with-trend setup — Raschke's Anti / first pullback, the pattern Grimes describes as the closest thing to a bread-and-butter trade. The sequence for longs (shorts are the mirror):
1 — Impulse. The fast line makes a new momentum high over the lookback window and turns
black on the chart. A fresh momentum extreme statistically begets a retest of the price
extreme after a pullback: strong momentum rarely dies on the first attempt. The extreme must
have occurred above the slow line.
2 — Kiss. The fast line pulls back toward the slow line but only shallowly — within a
configurable fraction of the impulse-high-to-slow-line band, while the histogram is still
positive. This is Grimes's "reluctant pullback": the best continuation entries come when the
countertrend push can barely dent momentum. If the fast line slices through the slow line,
the setup is voided — that's a different, weaker structure.
3 — Slope. The slow line itself must be rising. The pullback happens against a
still-advancing momentum trend — this is what makes it an Anti rather than a guess.
4 — Turn. The fast line ticks back up from a local low. The circle prints on the turn —
momentum resuming in trend direction. Grimes: enter when momentum turns back in the
direction of the trend.
How to trade it: the circle is the alignment signal; execute off price. Typical plan — buy the break of the prior bar's high, stop below the pullback swing low, first target the impulse high (the retest), runner beyond. Because the setup requires a recent momentum extreme, you are structurally always trading in the direction of proven strength.
█ FEATURES / INPUTS
• 3/10: fast, slow, and signal lengths for the oscillator (SMAs).
• Divergence: pivot lookback; min/max bars between pivots; Keltner EMA, ATR, and
multiplier for the exhaustion filter.
• Triple divergence: on/off toggle and the TICK symbol (swap for your feed's TICK).
• Anti (kiss): impulse lookback defining a "new momentum extreme"; kiss depth (smaller =
pullback must get closer to the slow line); slow-line slope length.
Six alert conditions: bullish/bearish divergence, triple bullish/bearish divergence, Anti long/short. All fire on confirmed, non-repainting conditions.
█ LIMITATIONS
• Divergence shapes appear a few bars after the pivot — the cost of using confirmed swings
instead of repainting ones.
• Triple divergence only works where TICK works: US equities, intraday, regular hours.
• Divergence signals are countertrend by nature. In a runaway trend the Keltner and spacing
gates will suppress most of them — that is intentional. Raschke's own warning: don't hunt
divergences in the strongest trending markets.
• Nothing here is an entry system by itself. Both Raschke and Grimes trigger off price; the
oscillator tells you when and where to look.
█ THANKS
Credit to Linda Bradford Raschke (Street Smarts, LBRGroup) and Adam Grimes (The Art and Science of Technical Analysis) for the underlying methodology. Educational tool, not financial advice.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Get more in-depth analysis on my website: joerodtrades.substack.com
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Get more in-depth analysis on my website: joerodtrades.substack.com
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.