HPotter

Modified Price-Volume Trend Indicator

The related article is copyrighted material from Stocks & Commodities Apr 2010.
Remove from Favorite Scripts Add to Favorite Scripts
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 01/10/2014
//  The related article is copyrighted material from
//  Stocks & Commodities.
////////////////////////////////////////////////////////////
study(title="Modified Price-Volume Trend Indicator", shorttitle="MPVT")
Level = input(0)
Scale = input(1)
xOHLC4 = ohlc4
xV = volume
rV = xV / 50000
xCumPVT = nz(xCumPVT[1]) + (rV * (xOHLC4 - xOHLC4[1]) / xOHLC4[1])
nRes = Level + Scale * xCumPVT
plot(nRes, color=red, title="MPVT", linewidth = 2)
mardek
2 years ago
Great job! Any change of getting an divergence on the indicator?
Thank you!
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out