OPEN-SOURCE SCRIPT
Flat VWMA Highs 3

The Flat VWMA High3 is a short-term resistance detection indicator based on the Volume-Weighted Moving Average (VWMA) applied to the high prices of candles. By default, it uses a length of 3, averaging the last three highs while weighting them according to traded volume.
Because higher-volume candles have a greater influence on the calculation, the indicator is designed to highlight areas where significant selling pressure or price rejection may be occurring. When the VWMA of highs becomes nearly horizontal, the script projects a short blue resistance segment into future bars, helping traders identify potential overhead supply zones.
Usage
The indicator is intended to be used similarly to traditional support and resistance analysis:
The indicator works particularly well for:
Identifying repeated upper wick rejection areas
Optional Features
Because higher-volume candles have a greater influence on the calculation, the indicator is designed to highlight areas where significant selling pressure or price rejection may be occurring. When the VWMA of highs becomes nearly horizontal, the script projects a short blue resistance segment into future bars, helping traders identify potential overhead supply zones.
Usage
The indicator is intended to be used similarly to traditional support and resistance analysis:
- Bullish Signal: Price breaks and closes above a resistance segment, suggesting supply may have been absorbed.
- Bearish / Resistance Holding: Price rejects from the segment, indicating sellers may still be defending that area.
The indicator works particularly well for:
Identifying repeated upper wick rejection areas
- Detecting short-term supply zones
- Visualizing potential institutional resistance levels
- Combining with gap analysis, moving averages, or volume studies
Optional Features
- VWMA Length
Default: 3 - Increase the length to identify broader or smoother resistance areas.
- Flatness Threshold (%)
Default: 0.15% - Controls how “flat” the VWMA must be before a resistance segment is drawn. Higher-volatility stocks may require a larger threshold.
- Extend Segment Right Bars
Default: 5 - Controls how far the resistance segment projects into future bars.
- Show VWMA High
- Displays the underlying VWMA(high) line directly on the chart for additional visualization.
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.