OPEN-SOURCE SCRIPT
WaveTrend Oscillator Lite [SolQuant]

The WaveTrend Oscillator Lite [SolQuant] indicator provides single-timeframe WaveTrend momentum analysis with overbought and oversold zone detection. It displays the core WT1/WT2 oscillator lines with color-coded gradient fills, making it easy to identify momentum extremes at a glance.
This is the free version of WaveTrend Oscillator [SolQuant], offering the core oscillator engine on a single timeframe without the multi-timeframe overlays, chart signals, alignment stars, or dashboard available in the full version.
█ USAGE
Reading the Oscillator
Two WaveTrend lines (WT1 and WT2) oscillate around a zero line. When WT1 is above WT2, momentum is bullish (default: blue). When below, momentum is bearish (default: magenta). A gradient fill extends between the lines and toward zero, providing an intuitive visual cue of momentum strength and direction.
Extreme Zones
When either WT line crosses above the overbought level, the lines turn red and a red fill highlights the extreme zone. When below the oversold level, the lines turn green with a green fill. These extreme readings indicate potential reversal areas where momentum has stretched to unsustainable levels.
█ DETAILS
The WaveTrend oscillator is calculated in three steps:
1 — An EMA of the typical price (HLC3) is computed over the channel length
2 — The absolute deviation from this EMA is smoothed with another EMA
3 — The normalized difference (CI) is smoothed with an EMA of the average length to produce WT1, and a simple SMA of WT1 produces WT2
█ SETTINGS
• Channel Length: EMA period for the price channel (default: 10).
• Average Length: EMA period for final smoothing (default: 21).
• Over Bought Level 1 / 2: Upper threshold levels for extreme zone detection (default: 60 / 53).
• Over Sold Level 1 / 2: Lower threshold levels for extreme zone detection (default: -60 / -53).
This indicator is an oscillator-based tool and does not constitute financial advice. Overbought and oversold conditions do not guarantee reversals. Past performance does not guarantee future results.
This is the free version of WaveTrend Oscillator [SolQuant], offering the core oscillator engine on a single timeframe without the multi-timeframe overlays, chart signals, alignment stars, or dashboard available in the full version.
█ USAGE
Reading the Oscillator
Two WaveTrend lines (WT1 and WT2) oscillate around a zero line. When WT1 is above WT2, momentum is bullish (default: blue). When below, momentum is bearish (default: magenta). A gradient fill extends between the lines and toward zero, providing an intuitive visual cue of momentum strength and direction.
Extreme Zones
When either WT line crosses above the overbought level, the lines turn red and a red fill highlights the extreme zone. When below the oversold level, the lines turn green with a green fill. These extreme readings indicate potential reversal areas where momentum has stretched to unsustainable levels.
█ DETAILS
The WaveTrend oscillator is calculated in three steps:
1 — An EMA of the typical price (HLC3) is computed over the channel length
2 — The absolute deviation from this EMA is smoothed with another EMA
3 — The normalized difference (CI) is smoothed with an EMA of the average length to produce WT1, and a simple SMA of WT1 produces WT2
█ SETTINGS
• Channel Length: EMA period for the price channel (default: 10).
• Average Length: EMA period for final smoothing (default: 21).
• Over Bought Level 1 / 2: Upper threshold levels for extreme zone detection (default: 60 / 53).
• Over Sold Level 1 / 2: Lower threshold levels for extreme zone detection (default: -60 / -53).
This indicator is an oscillator-based tool and does not constitute financial advice. Overbought and oversold conditions do not guarantee reversals. Past performance does not guarantee future results.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.