INVITE-ONLY SCRIPT
KPV by Killpips

This Pine Script code is an indicator for the TradingView platform that calculates and plots volume percentiles over different time frames (daily, weekly, and monthly). It includes a volume percentile histogram.
Main Code Logic:
Historical Volatility (hvv):
The fHV function is called to calculate the volatility for the logarithmic volume values.
Volume Percentile (hvvp):
The fHVP function calculates the volume percentile based on the calculated historical volatility (hvv).
Percentile Ranks:
prv: The percentile rank of the volume percentile (hvvp) over the last avg periods (to represent the average volume percentile).
prv_1week: The percentile rank of the volume percentile over the last 5 times the avg period (to represent the weekly volume percentile, assuming 5 trading days in a week).
prv_1month: The percentile rank of the volume percentile over the last 22 times the avg period (to represent the monthly volume percentile, assuming 22 trading days in a month).
Volume Percentile Histogram (VV):
The VV variable represents the current value of the volume percentile (hvvp), which is plotted as a histogram. The color of the bars changes depending on the value of VV:
Maroon if above 90
Orange if between 80 and 90
Yellow if between 71 and 79
Green if between 50 and 70
Blu if between 49 and 31
Gray if below 30
Main Code Logic:
Historical Volatility (hvv):
The fHV function is called to calculate the volatility for the logarithmic volume values.
Volume Percentile (hvvp):
The fHVP function calculates the volume percentile based on the calculated historical volatility (hvv).
Percentile Ranks:
prv: The percentile rank of the volume percentile (hvvp) over the last avg periods (to represent the average volume percentile).
prv_1week: The percentile rank of the volume percentile over the last 5 times the avg period (to represent the weekly volume percentile, assuming 5 trading days in a week).
prv_1month: The percentile rank of the volume percentile over the last 22 times the avg period (to represent the monthly volume percentile, assuming 22 trading days in a month).
Volume Percentile Histogram (VV):
The VV variable represents the current value of the volume percentile (hvvp), which is plotted as a histogram. The color of the bars changes depending on the value of VV:
Maroon if above 90
Orange if between 80 and 90
Yellow if between 71 and 79
Green if between 50 and 70
Blu if between 49 and 31
Gray if below 30
仅限邀请脚本
只有经作者批准的用户才能访问此脚本。您需要申请并获得使用权限。该权限通常在付款后授予。如需了解更多详情,请按照以下作者的说明操作,或直接联系killpips。
请注意,此私密的、仅限受邀者使用的脚本尚未经过脚本管理员的审核,并且不确定它是否符合网站规则。 除非您完全信任其作者并了解脚本的工作原理,否則TradingView不建议您付费或使用脚本。您还可以在我们的社区脚本中找到免费的开源替代方案。
作者的说明
Main Code Logic:
Historical Volatility (hvv):
The fHV function is called to calculate the volatility for the logarithmic volume values.
Volume Percentile (hvvp):
The fHVP function calculates the volume percentile based on the calculated historical vola
提醒:在请求访问权限之前,请阅读仅限邀请脚本指南。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
仅限邀请脚本
只有经作者批准的用户才能访问此脚本。您需要申请并获得使用权限。该权限通常在付款后授予。如需了解更多详情,请按照以下作者的说明操作,或直接联系killpips。
请注意,此私密的、仅限受邀者使用的脚本尚未经过脚本管理员的审核,并且不确定它是否符合网站规则。 除非您完全信任其作者并了解脚本的工作原理,否則TradingView不建议您付费或使用脚本。您还可以在我们的社区脚本中找到免费的开源替代方案。
作者的说明
Main Code Logic:
Historical Volatility (hvv):
The fHV function is called to calculate the volatility for the logarithmic volume values.
Volume Percentile (hvvp):
The fHVP function calculates the volume percentile based on the calculated historical vola
提醒:在请求访问权限之前,请阅读仅限邀请脚本指南。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。