KPV by Killpips

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としては「非推奨」としています。コミュニティスクリプトの中で、その代わりとなる無料かつオープンソースのスクリプトを見つけられる可能性もあります。
作者の指示
警告: 招待専用スクリプトへのアクセスをリクエストする前に弊社のガイドをお読みください。
免責事項
招待専用スクリプト
こちらのスクリプトにアクセスできるのは投稿者が承認したユーザーだけです。投稿者にリクエストして使用許可を得る必要があります。通常の場合、支払い後に許可されます。詳細については、以下、作者の指示をお読みになるか、killpipsに直接ご連絡ください。
このプライベートの招待専用スクリプトは、まだスクリプトモデレーターによるレビューを受けていません。ハウスルールに準拠しているかについては不明です。 スクリプトの機能を理解し、その作者を全面的に信頼しているのでなければ、お金を支払ってまでそのスクリプトを利用することをTradingViewとしては「非推奨」としています。コミュニティスクリプトの中で、その代わりとなる無料かつオープンソースのスクリプトを見つけられる可能性もあります。
作者の指示
警告: 招待専用スクリプトへのアクセスをリクエストする前に弊社のガイドをお読みください。