PROTECTED SOURCE SCRIPT
Volume Trailing Integral

About
This indicator is an attempt to quantify the volume of buying vs. selling in the last N bars. The hypothesis is that on upticks, there was more bull volume than bull volume, and vice versa. "Trailing Integral" refers to the fact that this indicator shows the sum of bear and bull volume in the last N bars, which is akin to an integral of money flow.
Method
To compute the bear vs. bull volume on a given day, the Z score of a price change is mapped to the volume. For example, for upticks, a highly negative Z score results in a ~50/50 bull/bear volume, while a highly positive Z score results in a ~(Max weighting)/(1-Max weighting) bull/bear volume (if max weighting is 0.8, then a large uptick results in 0.8V bull and 0.2V bear volume). Volume is then summed over the last N bars, where N is the length. EMAs are applied at various points to smooth things. Stdevs are calculated for upticks and downticks independently.
Usage
I like to use this like an enhanced OBV, with a smarter bias towards bull/bear ticks. Look first at the total volume and then look for follow through by bear/bull volume. For example, a rally on low volume, with bias towards bear volume is sellable; a bottom with more bull volume on consolidation is buyable, etc.
This indicator is an attempt to quantify the volume of buying vs. selling in the last N bars. The hypothesis is that on upticks, there was more bull volume than bull volume, and vice versa. "Trailing Integral" refers to the fact that this indicator shows the sum of bear and bull volume in the last N bars, which is akin to an integral of money flow.
Method
To compute the bear vs. bull volume on a given day, the Z score of a price change is mapped to the volume. For example, for upticks, a highly negative Z score results in a ~50/50 bull/bear volume, while a highly positive Z score results in a ~(Max weighting)/(1-Max weighting) bull/bear volume (if max weighting is 0.8, then a large uptick results in 0.8V bull and 0.2V bear volume). Volume is then summed over the last N bars, where N is the length. EMAs are applied at various points to smooth things. Stdevs are calculated for upticks and downticks independently.
Usage
I like to use this like an enhanced OBV, with a smarter bias towards bull/bear ticks. Look first at the total volume and then look for follow through by bear/bull volume. For example, a rally on low volume, with bias towards bear volume is sellable; a bottom with more bull volume on consolidation is buyable, etc.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。