OPEN-SOURCE SCRIPT
Turnover

// ========================================
// TURNOVER INDICATOR (成交额指标)
// ========================================
//
// This indicator calculates and displays the turnover (trading value) for each bar,
// which represents the total monetary value of shares traded during that period.
// Turnover = Volume × Price
//
// KEY FEATURES:
// • Multiple price basis options: VWAP (recommended for intraday) or HLC3 average
// • Visual representation with colored columns (red/green for down/up bars)
// • Moving average overlay to smooth turnover trends
// • Rolling sum calculation for cumulative turnover over specified periods
// • Fully customizable parameters for different trading strategies
//
// USE CASES:
// • Identify periods of high/low market activity and liquidity
// • Analyze institutional money flow and market participation
// • Spot potential breakout or reversal points based on turnover spikes
// • Compare relative trading interest across different timeframes
// • Monitor market strength during trend formations
//
// PARAMETERS:
// • Price Basis: Choose between VWAP (intraday focus) or HLC3 (daily+ timeframes)
// • Visual Options: Toggle MA, rolling sum, and color coding
// • Timeframe Flexibility: Adjust MA and sum periods for your analysis needs
//
// ========================================
// TURNOVER INDICATOR (成交额指标)
// ========================================
//
// This indicator calculates and displays the turnover (trading value) for each bar,
// which represents the total monetary value of shares traded during that period.
// Turnover = Volume × Price
//
// KEY FEATURES:
// • Multiple price basis options: VWAP (recommended for intraday) or HLC3 average
// • Visual representation with colored columns (red/green for down/up bars)
// • Moving average overlay to smooth turnover trends
// • Rolling sum calculation for cumulative turnover over specified periods
// • Fully customizable parameters for different trading strategies
//
// USE CASES:
// • Identify periods of high/low market activity and liquidity
// • Analyze institutional money flow and market participation
// • Spot potential breakout or reversal points based on turnover spikes
// • Compare relative trading interest across different timeframes
// • Monitor market strength during trend formations
//
// PARAMETERS:
// • Price Basis: Choose between VWAP (intraday focus) or HLC3 (daily+ timeframes)
// • Visual Options: Toggle MA, rolling sum, and color coding
// • Timeframe Flexibility: Adjust MA and sum periods for your analysis needs
//
// ========================================
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.