OPEN-SOURCE SCRIPT
Pring Special K|a2m

# 📈 Pring Special K | a2m
The **Pring Special K (PSK)** is a momentum indicator developed by **Martin Pring**, designed to capture both short-term and long-term market cycles in one oscillator.
This version includes **customizable smoothing** and **Bollinger Bands** for enhanced visualization of momentum shifts.
---
## 🏷️ Tagline
**“Multi-cycle momentum oscillator with smoothing & Bollinger Bands for trend confirmation and early reversals.”**
---
## 📄 Short Description
The Pring Special K blends **short-term and long-term ROC cycles** into one powerful momentum oscillator.
This version adds **SMA, EMA, WMA, RMA, VWMA smoothing options** and optional **Bollinger Bands**.
Use it to:
- Confirm **long-term trends**
- Spot **early reversals**
- Identify **divergences around the zero line**
---
## ⚙️ Features
✅ **Core PSK Calculation** (Martin Pring’s weighted ROC methodology)
✅ **Momentum Color-Coding** → Green (bullish) / Red (bearish)
✅ **Smoothing Options** → SMA, EMA, WMA, SMMA (RMA), VWMA
✅ **Optional Bollinger Bands** (with adjustable length & StdDev multiplier)
✅ **Zero Line Reference** for trend confirmation
---
## 🎛️ User Inputs
- **Source** → Default: `close`
- **Type** → `"None"`, `"SMA"`, `"SMA + Bollinger Bands"`, `"EMA"`, `"SMMA (RMA)"`, `"WMA"`, `"VWMA"`
- **Length** → Default: `20`
- **BB StdDev** → Default: `2.0` (active only with SMA + Bollinger Bands)
---
## 📊 How to Use
1. **Trend Identification**
- PSK rising above 0 → Long-term uptrend
- PSK falling below 0 → Long-term downtrend
2. **Momentum Shifts**
- Watch PSK crossing its **smoothing MA** for entry/exit signals.
- Bollinger Bands help spot **momentum extensions** or **contractions**.
3. **Divergences**
- Compare PSK vs. price swings to catch early **trend reversals**.
---
## 🖼️ Visual Guide
- **Green PSK Line** → Bullish momentum
- **Red PSK Line** → Bearish momentum
- **Blue Line** → Smoothing MA
- **Shaded Green Bands** → Bollinger Bands (if enabled)
- **Gray Dotted Line** → Zero momentum baseline
---
The **Pring Special K (PSK)** is a momentum indicator developed by **Martin Pring**, designed to capture both short-term and long-term market cycles in one oscillator.
This version includes **customizable smoothing** and **Bollinger Bands** for enhanced visualization of momentum shifts.
---
## 🏷️ Tagline
**“Multi-cycle momentum oscillator with smoothing & Bollinger Bands for trend confirmation and early reversals.”**
---
## 📄 Short Description
The Pring Special K blends **short-term and long-term ROC cycles** into one powerful momentum oscillator.
This version adds **SMA, EMA, WMA, RMA, VWMA smoothing options** and optional **Bollinger Bands**.
Use it to:
- Confirm **long-term trends**
- Spot **early reversals**
- Identify **divergences around the zero line**
---
## ⚙️ Features
✅ **Core PSK Calculation** (Martin Pring’s weighted ROC methodology)
✅ **Momentum Color-Coding** → Green (bullish) / Red (bearish)
✅ **Smoothing Options** → SMA, EMA, WMA, SMMA (RMA), VWMA
✅ **Optional Bollinger Bands** (with adjustable length & StdDev multiplier)
✅ **Zero Line Reference** for trend confirmation
---
## 🎛️ User Inputs
- **Source** → Default: `close`
- **Type** → `"None"`, `"SMA"`, `"SMA + Bollinger Bands"`, `"EMA"`, `"SMMA (RMA)"`, `"WMA"`, `"VWMA"`
- **Length** → Default: `20`
- **BB StdDev** → Default: `2.0` (active only with SMA + Bollinger Bands)
---
## 📊 How to Use
1. **Trend Identification**
- PSK rising above 0 → Long-term uptrend
- PSK falling below 0 → Long-term downtrend
2. **Momentum Shifts**
- Watch PSK crossing its **smoothing MA** for entry/exit signals.
- Bollinger Bands help spot **momentum extensions** or **contractions**.
3. **Divergences**
- Compare PSK vs. price swings to catch early **trend reversals**.
---
## 🖼️ Visual Guide
- **Green PSK Line** → Bullish momentum
- **Red PSK Line** → Bearish momentum
- **Blue Line** → Smoothing MA
- **Shaded Green Bands** → Bollinger Bands (if enabled)
- **Gray Dotted Line** → Zero momentum baseline
---
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.