Skip to main content

Price Volume Trend Stochastic for Amibroker (AFL)

Copy & Paste Friendly
function PVT()
{
	return Cum( Volume * ROC( C, 1 ) * 0.01 );
}





Fline=MA((PVT()-LLV(PVT(),19))/(HHV(PVT(),19)-LLV(PVT(),19)), 5);
Sline=MA(MA((PVT()-LLV(PVT(),19))/(HHV(PVT(),19)-LLV(PVT(),19)), 5),3);

Plot(Fline, "Fline", colorRed);
Plot(Sline, "Sline", colorYellow);