Volume Positive Negative (VPN)

6333 visualizzazioni
The idea and calculations for the Volume Positive Negative ( VPN ) indicator were created by Markos Katsanos. Markos wrote about the indicator in the article Detecting High-Volume Breakouts, published in Technical Analysis of Stocks & Commodities April, 2021 (Vol. 39, Issue 5).

The goal of the VPN indicator is to detect breakouts using only volume . The basic idea is to compare volume on up days versus volume on down days. The indicator can oscillate between the range of -100 and 100. Values between 0 and 20 are generally considered bullish , negative are bearish .

When the plotted VPN crosses over what Markos refers to as the critical value, that may indicate a high volume breakout. The critical value can be adjusted between 0 to 20, 10 is the default,

Volume Positive Negative Calculation ( VPN )

VPN = (VP - VN) / MAV / Period * 100

VP - sum of positive volume
VN - sum of negative volume
MAV - moving average of volume

Volume is considered positive when the average price is higher than the previous day's price by more than .1 of the ATR ( average true range ).

Note di rilascio: version 2.0

From Markos Katsanos - "Each trading day the volume is classified as positive if the average stock price is higher than yesterday’s average price by more than 1/10 ATR (average true range) and the opposite for negative volume. If the average price difference is between +/- 0.10 ATR the volume is ignored."

■ Allow configuration of the fractional amount of ATR.
Note di rilascio: Publish a new chart to show Volume Positive Negative (VPN) examples.
Note di rilascio: version 3.0

■ Additional configuration options for the VPN moving average, including length and type (SMA or EMA).
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?
30+ years in software dev. Technology author. Growth stock & crypto trader.

If you find my indicators helpful, please consider a donation:

Bitcoin: 36A51Xdi4HVGYxH86kRvQ74Tzp5xWU1HvU


such a great indicator. what period would you suggest on smaller timeframes such as M5 or M15 ?
+5 Rispondi
JohnMuchow Thinkologist
I generally experiment with various values based on the type of stocks that I am trading and the overall market condition.
Hi John. This is a great indicator, thanks. Is it possible to set an alert for a red to green event? Thanks
+1 Rispondi
JohnMuchow filthyrich1000
The code is open source, you are welcome to add alerts for your own use.
+1 Rispondi
Awesome Indicator..Sir Can we Make Scanner To identify Stock about to Breakout with volume
+1 Rispondi
JohnMuchow Xhartboy
It's not currently possible to create scanners using scripts. You can look at the scanner in TradingView to see if you can create similar functionality.
Can you please add a backtesting?
+1 Rispondi
JohnMuchow mrcash45
The code is open source, you can add backtesting for your own use, if interested.
i cannot see style part of indicator
i want to change line colors etc
+1 Rispondi
MasBart aktifgirisimci
@aktifgirisimci, seconded. For me as I prefer white background, the lines are too thin and hard to see.
+1 Rispondi