OPEN-SOURCE SCRIPT
up/down VolumeRatio

Idea:
Measure the directional dominance of trading volume by comparing aggregated up-volume versus down-volume, then stabilize the signal using a logarithmic transformation and EMA smoothing.
Rationale:
The ratio of up-volume to down-volume captures the imbalance between buying and selling pressure. Log transformation ensures symmetry and reduces extreme value distortion, while EMA extracts persistent trends in volume flow.
Usage:
Use the log ratio crossing its EMA as a signal of momentum shift. Positive values indicate bullish dominance, negative values indicate bearish dominance.
Measure the directional dominance of trading volume by comparing aggregated up-volume versus down-volume, then stabilize the signal using a logarithmic transformation and EMA smoothing.
Rationale:
The ratio of up-volume to down-volume captures the imbalance between buying and selling pressure. Log transformation ensures symmetry and reduces extreme value distortion, while EMA extracts persistent trends in volume flow.
Usage:
Use the log ratio crossing its EMA as a signal of momentum shift. Positive values indicate bullish dominance, negative values indicate bearish dominance.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.