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.
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
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
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
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.