Help formula PVT(Price and Volume Trend)

#1
Any body can help to make the PVT formula?

This is good formula to looking trend!

PVT(Price and Volume Trend)

1. Overview

This is a trade volume indicator developed by modifying OBV. While OBV expresses a difference between cumulative sum of trade volumes during the days of increase over n days and cumulative sum of trade volume during the days of decrease over n days, PVT is an indicator that adds a trade volume equivalent to today's price increase rate in comparison to the previous day to the previous day's PVT.

2. Formula

PVT = [{(Today's closing price - closing price of the previous day) / closing price of the previous day} X today's trade volume] + PVT of the previous day (The first day's PVT is fixed as the first day's trade volume.)

signal = 10-day moving average of PVT



3. Interpretation and Use

Interpreting divergence
When stock price has reached a new high, but PVT formed the highest point at a level lower than before, it is a bearish divergence and therefore interpreted as sell signal. The opposite case is a bullish divergence and therefore is interpreted as buy signal.

Using signal
When PVT crosses above signal, it is interpreted as buy signal. If PVT crosses below signal, it is interpreted as sell signal.


Thank you
 

KelvinHand

Well-Known Member
#2
Any body can help to make the PVT formula?

This is good formula to looking trend!

PVT(Price and Volume Trend)

1. Overview

This is a trade volume indicator developed by modifying OBV. While OBV expresses a difference between cumulative sum of trade volumes during the days of increase over n days and cumulative sum of trade volume during the days of decrease over n days, PVT is an indicator that adds a trade volume equivalent to today's price increase rate in comparison to the previous day to the previous day's PVT.

2. Formula

PVT = [{(Today's closing price - closing price of the previous day) / closing price of the previous day} X today's trade volume] + PVT of the previous day (The first day's PVT is fixed as the first day's trade volume.)

signal = 10-day moving average of PVT



3. Interpretation and Use

Interpreting divergence
When stock price has reached a new high, but PVT formed the highest point at a level lower than before, it is a bearish divergence and therefore interpreted as sell signal. The opposite case is a bullish divergence and therefore is interpreted as buy signal.

Using signal
When PVT crosses above signal, it is interpreted as buy signal. If PVT crosses below signal, it is interpreted as sell signal.


Thank you
Code:
_SECTION_BEGIN("PVT");
bgTop = ParamColor("BgTop",    colorBlack);
bgBot = ParamColor("BgBottom", colorBlack);
SetChartBkGradientFill( bgTop ,bgBot, colorLightGrey);


iSig = Param("Signal", 10, 1, 300);


PVT[0]=V[0];

for(i=1; i<BarCount; i++)
   PVT[i] = PVT[i-1] + V[i]*(C[i]- C[i-1])/C[i-1];

Plot(PVT, "PVT", colorAqua, styleNoLabel);
Plot( MA(PVT, iSig), "Signal", colorRed, styleNoLabel);


_SECTION_END();
 
Last edited:
#5
Here is colaboration formula and I add scanner and buy sell signal.
Thank you all

_SECTION_BEGIN("PVT");
bgTop = ParamColor("BgTop", colorBlack);
bgBot = ParamColor("BgBottom", colorBlack);
SetChartBkGradientFill( bgTop ,bgBot, colorLightGrey);


iSig = Param("Signal", 10, 1, 300);


PVT[0]=V[0];

for(i=1; i<BarCount; i++)
PVT = PVT[i-1] + V*(C- C[i-1])/C[i-1];

Plot(PVT, "PVT", colorAqua, styleNoLabel);
Plot( MA(PVT, iSig), "Signal", colorRed, styleNoLabel);

Plot(oss=(PVT-MA(PVT, iSig)),"OSSILATOR", IIf(Oss>0, colorBlue,colorRed), styleThick | styleHistogram | styleOwnScale);

Buy = Cross(PVT,MA(PVT,iSig));
Sell = Cross( MA(PVT,iSig), PVT);


PlotShapes( Buy*shapeUpArrow, colorGreen);
PlotShapes( Sell*shapeDownArrow, colorRed);



_SECTION_END();
 

Similar threads