OPEN-SOURCE SCRIPT
Trinity KST (known sure thing) Pro

This version is the **modern, low-lag evolution** of Martin Pring’s original 1990s KST.
Key differences from the classic KST
- Original uses only simple moving averages (SMA) on the four ROCs → quite a bit of lag.
- This version lets you replace every SMA with **ALMA, HEMA, TEMA, or EMA** → dramatically reduces lag while keeping the signal smooth and reliable.
- ALMA + progressive offset (0.90–0.97) is especially powerful because longer-term ROCs react almost as fast as the short ones without getting noisy.
- Histogram, clean labels inside the oscillator pane, alerts, background tint — all the quality-of-life stuff the original never had.
How traders actually use it in >2026
1. Primary signal: KST crosses above/below the red signal line = momentum shift (bullish/bearish).
2. Zero-line cross = confirmation of trend change (especially strong on daily/weekly).
3. Divergences between price and KST = high-probability reversals (works great on BTC, SPX, NAS100).
4. Histogram turning from red to green (or vice-versa) = early warning before the actual line cross.
Best settings I and many others run live right now (no table, just the winners)
- Crypto & Nasdaq: **ALMA + aggressiveness 0.93–0.96** → fastest valid signals.
- Forex pairs & Gold: **HEMA** (zero-lag Hull) → super clean, almost no whipsaw.
- Broad stock indices (SPX, DAX, etc.): **ALMA 0.91–0.93** or **TEMA** → perfect middle ground.
- Classic conservative daily/weekly swings: leave it on **SMA** (original Pring) or ALMA 0.88–0.90.
In short: same reliable KST logic you already know, but now it reacts 6–12 bars earlier and with far fewer fakeouts — exactly what you need in today’s fast markets.
Key differences from the classic KST
- Original uses only simple moving averages (SMA) on the four ROCs → quite a bit of lag.
- This version lets you replace every SMA with **ALMA, HEMA, TEMA, or EMA** → dramatically reduces lag while keeping the signal smooth and reliable.
- ALMA + progressive offset (0.90–0.97) is especially powerful because longer-term ROCs react almost as fast as the short ones without getting noisy.
- Histogram, clean labels inside the oscillator pane, alerts, background tint — all the quality-of-life stuff the original never had.
How traders actually use it in >2026
1. Primary signal: KST crosses above/below the red signal line = momentum shift (bullish/bearish).
2. Zero-line cross = confirmation of trend change (especially strong on daily/weekly).
3. Divergences between price and KST = high-probability reversals (works great on BTC, SPX, NAS100).
4. Histogram turning from red to green (or vice-versa) = early warning before the actual line cross.
Best settings I and many others run live right now (no table, just the winners)
- Crypto & Nasdaq: **ALMA + aggressiveness 0.93–0.96** → fastest valid signals.
- Forex pairs & Gold: **HEMA** (zero-lag Hull) → super clean, almost no whipsaw.
- Broad stock indices (SPX, DAX, etc.): **ALMA 0.91–0.93** or **TEMA** → perfect middle ground.
- Classic conservative daily/weekly swings: leave it on **SMA** (original Pring) or ALMA 0.88–0.90.
In short: same reliable KST logic you already know, but now it reacts 6–12 bars earlier and with far fewer fakeouts — exactly what you need in today’s fast markets.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.