PROTECTED SOURCE SCRIPT
Telah dikemas kini Transactional Rate of Change (TROC)

TRANSACTIONAL RATE OF CHANGE (TROC) INDICATOR
Transaction Rate of Change (TROC) is an advanced momentum indicator that analyzes the rate of change in cumulative inferred buy/sell volume data to identify shifts in buying and selling acceleration and deceleration of transaction flow, providing early signals of potential trend changes, exhaustion/absorption, and momentum shifts. It builds further upon the official Volume Delta indicator released by TradingView.
If a stock price is a rocket climbing, then volume delta is the total fuel burned, and TROC is the fuel burn rate. A rocket can keep rising even after engines start throttling down (decelerating TROC), but it won't go much higher without more thrust. When TROC shows extreme positive readings, the engines are at maximum burn—expect explosive price movement. When TROC drops to zero while price is still high, the fuel is depleted and gravity (selling pressure) takes over. Are buyers pushing on the gas, or are they backing off? Are more buyers coming to the table, or are they losing interest or taking profits? Are excited retail buying highs while smart money close their positions using the excited retail liquidity?
KEY FEATURES
• Volume Delta Analysis - Approximates up and down volume from lower timeframe data to calculate true buying vs. selling pressure.
• Rate of Change Calculation - Measures the momentum of cumulative delta over a customizable period. Essentially, it displays the rate of change between buying and selling. How fast is it going, is it slowing, how excited are they?
• Momentum State Detection - Automatically identifies four distinct market states: accelerating up, decelerating up, accelerating down, and decelerating down
• Extreme Threshold Zones - Bands based on standard deviation to highlight unusually high or low transaction rates, helping to spot potential extreme values, blow offs, and capitulation.
• Z-Score Normalization - Optional standardization for comparing momentum across different timeframes and instruments.
• Momentum Strength Index (MSI) - Filters out weak signals by highlighting only bars with momentum exceeding a threshold.
• Flexible Reset Modes - Reset cumulative delta daily, weekly, monthly, or per session to prevent data drift, or leave it default for continual cumulative data.
APPLICATION
Trend Confirmation
When price makes a new high but TROC is decelerating (lighter colors), it suggests weakening buying pressure and potential exhaustion. Conversely, strong acceleration (darker colors) confirms robust trend continuation. Either buyers are supporting the move, or they aren't. Same goes for selling. It can also assist spotting short covering.
Divergence Trading
Use it similar to MACD divergence strategies. Is price movement confirmed by expansion in TROC, or is the TROC showing weakness while price is continuing it's trend?
Momentum Breakouts
When TROC crosses above the upper threshold zone with strong momentum (MSI activated), it signals institutional-level buying that often precedes significant price moves. Use this for breakout entries.
Mean Reversion
Extreme readings beyond the threshold zones often precede short-term reversals as transaction rates normalize. Consider taking profits or counter-trend positions when TROC reaches statistical extremes. Utilizing the extreme threshold bands can help you identify tops and bottoms.
Absorption Detection
Spot areas where buying or selling is being done, but price is hitting a wall or floor and not moving. This can indicate a hidden seller or a buyer reloading at price levels/zones.
SETTINGS
Timeframe for Volume Delta Calculation
Select the lower timeframe used to calculate buying and selling volume. Default: 1S (1 second)
• 1S or 5S - Maximum precision for scalping and intraday trading on liquid markets
• 1m or 5m - Balanced precision for swing trading and less liquid instruments
• Higher timeframes - Provide more historical data but reduce accuracy
Note: Higher frequency data yields more accurate delta calculations but may not be available for all symbols or historical periods. If you are using higher timeframes (Daily, Weekly) you will need to change this setting to a higher timeframe.
Rate of Change Period
Determines how many bars back to measure the momentum change. Default: 14
• Short periods (7-10) - More responsive, ideal for scalping and quick momentum shifts
• Medium periods (14-20) - Balanced sensitivity for day trading
• Long periods (25-50) - Smoother readings for swing trading and trend analysis
Shorter periods generate more signals but increase false positives; longer periods reduce noise but may lag significant changes.
Extreme Threshold Zones
Bands that highlight unusual transaction rate extremes based on standard deviation.
• Show Zones - Enable/disable the upper and lower threshold lines (Default: Enabled)
• Multiplier - Standard deviation multiplier for zone placement (Default: 2.0)
Values of 1.5-2.0 catch moderate extremes
Values of 2.5-3.0 identify only the most extreme readings
• Lookback Period - Number of bars used to calculate mean and standard deviation (Default: 100)
Shorter lookback (50-75) adapts faster to changing market conditions
Longer lookback (150-200) provides more stable, consistent zones
Smooth Cumulative Delta
Applies Adaptive Moving Average to reduce noise in the cumulative volume delta before calculating rate of change. Default: Enabled
• Smoothing Length - period (Default: 5)
Lower values (3-5) preserve responsiveness
Higher values (7-10) significantly reduce noise on choppy markets
Smoothing is particularly useful on volatile instruments or when using very short ROC periods.
Momentum Strength Index (MSI)
Filters the histogram to highlight only bars exceeding a specified momentum threshold, eliminating weak signals.
• Show MSI - Enable/disable momentum strength filtering (Default: Disabled)
• MSI Threshold - Minimum momentum strength multiplier (Default: 2.0)
Values of 1.5-2.0 show above-average momentum
Values of 2.5-3.5 isolate only exceptional momentum bars
When enabled, bars meeting the threshold display in the "Strong Up/Down" colors, while normal bars use standard momentum colors.
Display Settings
• Histogram Bar Width - Visual thickness of the columns (Default: 1, Range: 1-10)
• Use Z-Score Normalization - Standardizes TROC values for cross-asset comparison (Default: Disabled)
Enable when comparing multiple instruments or timeframes simultaneously
Z-Score converts values to standard deviations from the mean
• Z-Score Threshold - When using Z-Score Normalization mode, sets the extreme zone levels (Default: 2.0)
Represents standard deviations from mean (2.0 = ~95% confidence interval)
Cumulative Transaction Reset
Determines when the cumulative volume delta resets to zero, preventing infinite accumulation. Default: None
• None - Cumulative delta never resets (continues from symbol history start)
• Daily - Resets at the start of each new trading day
• Weekly - Resets at the start of each week
• Monthly - Resets at the start of each month
• On session change - Resets when market opens (useful for 24-hour markets)
Reset modes prevent cumulative drift that can distort ROC calculations over extended periods.
Color Customization Fully customizable color scheme.
-------------------------------------------------------------------
Note: This indicator requires volume data from your data vendor. It uses inferred buy/sell volume. To learn more, read the TradingView Volume Delta documentation. Optimal performance is achieved on liquid instruments with high-frequency data.
Transaction Rate of Change (TROC) is an advanced momentum indicator that analyzes the rate of change in cumulative inferred buy/sell volume data to identify shifts in buying and selling acceleration and deceleration of transaction flow, providing early signals of potential trend changes, exhaustion/absorption, and momentum shifts. It builds further upon the official Volume Delta indicator released by TradingView.
If a stock price is a rocket climbing, then volume delta is the total fuel burned, and TROC is the fuel burn rate. A rocket can keep rising even after engines start throttling down (decelerating TROC), but it won't go much higher without more thrust. When TROC shows extreme positive readings, the engines are at maximum burn—expect explosive price movement. When TROC drops to zero while price is still high, the fuel is depleted and gravity (selling pressure) takes over. Are buyers pushing on the gas, or are they backing off? Are more buyers coming to the table, or are they losing interest or taking profits? Are excited retail buying highs while smart money close their positions using the excited retail liquidity?
KEY FEATURES
• Volume Delta Analysis - Approximates up and down volume from lower timeframe data to calculate true buying vs. selling pressure.
• Rate of Change Calculation - Measures the momentum of cumulative delta over a customizable period. Essentially, it displays the rate of change between buying and selling. How fast is it going, is it slowing, how excited are they?
• Momentum State Detection - Automatically identifies four distinct market states: accelerating up, decelerating up, accelerating down, and decelerating down
• Extreme Threshold Zones - Bands based on standard deviation to highlight unusually high or low transaction rates, helping to spot potential extreme values, blow offs, and capitulation.
• Z-Score Normalization - Optional standardization for comparing momentum across different timeframes and instruments.
• Momentum Strength Index (MSI) - Filters out weak signals by highlighting only bars with momentum exceeding a threshold.
• Flexible Reset Modes - Reset cumulative delta daily, weekly, monthly, or per session to prevent data drift, or leave it default for continual cumulative data.
APPLICATION
Trend Confirmation
When price makes a new high but TROC is decelerating (lighter colors), it suggests weakening buying pressure and potential exhaustion. Conversely, strong acceleration (darker colors) confirms robust trend continuation. Either buyers are supporting the move, or they aren't. Same goes for selling. It can also assist spotting short covering.
Divergence Trading
Use it similar to MACD divergence strategies. Is price movement confirmed by expansion in TROC, or is the TROC showing weakness while price is continuing it's trend?
Momentum Breakouts
When TROC crosses above the upper threshold zone with strong momentum (MSI activated), it signals institutional-level buying that often precedes significant price moves. Use this for breakout entries.
Mean Reversion
Extreme readings beyond the threshold zones often precede short-term reversals as transaction rates normalize. Consider taking profits or counter-trend positions when TROC reaches statistical extremes. Utilizing the extreme threshold bands can help you identify tops and bottoms.
Absorption Detection
Spot areas where buying or selling is being done, but price is hitting a wall or floor and not moving. This can indicate a hidden seller or a buyer reloading at price levels/zones.
SETTINGS
Timeframe for Volume Delta Calculation
Select the lower timeframe used to calculate buying and selling volume. Default: 1S (1 second)
• 1S or 5S - Maximum precision for scalping and intraday trading on liquid markets
• 1m or 5m - Balanced precision for swing trading and less liquid instruments
• Higher timeframes - Provide more historical data but reduce accuracy
Note: Higher frequency data yields more accurate delta calculations but may not be available for all symbols or historical periods. If you are using higher timeframes (Daily, Weekly) you will need to change this setting to a higher timeframe.
Rate of Change Period
Determines how many bars back to measure the momentum change. Default: 14
• Short periods (7-10) - More responsive, ideal for scalping and quick momentum shifts
• Medium periods (14-20) - Balanced sensitivity for day trading
• Long periods (25-50) - Smoother readings for swing trading and trend analysis
Shorter periods generate more signals but increase false positives; longer periods reduce noise but may lag significant changes.
Extreme Threshold Zones
Bands that highlight unusual transaction rate extremes based on standard deviation.
• Show Zones - Enable/disable the upper and lower threshold lines (Default: Enabled)
• Multiplier - Standard deviation multiplier for zone placement (Default: 2.0)
Values of 1.5-2.0 catch moderate extremes
Values of 2.5-3.0 identify only the most extreme readings
• Lookback Period - Number of bars used to calculate mean and standard deviation (Default: 100)
Shorter lookback (50-75) adapts faster to changing market conditions
Longer lookback (150-200) provides more stable, consistent zones
Smooth Cumulative Delta
Applies Adaptive Moving Average to reduce noise in the cumulative volume delta before calculating rate of change. Default: Enabled
• Smoothing Length - period (Default: 5)
Lower values (3-5) preserve responsiveness
Higher values (7-10) significantly reduce noise on choppy markets
Smoothing is particularly useful on volatile instruments or when using very short ROC periods.
Momentum Strength Index (MSI)
Filters the histogram to highlight only bars exceeding a specified momentum threshold, eliminating weak signals.
• Show MSI - Enable/disable momentum strength filtering (Default: Disabled)
• MSI Threshold - Minimum momentum strength multiplier (Default: 2.0)
Values of 1.5-2.0 show above-average momentum
Values of 2.5-3.5 isolate only exceptional momentum bars
When enabled, bars meeting the threshold display in the "Strong Up/Down" colors, while normal bars use standard momentum colors.
Display Settings
• Histogram Bar Width - Visual thickness of the columns (Default: 1, Range: 1-10)
• Use Z-Score Normalization - Standardizes TROC values for cross-asset comparison (Default: Disabled)
Enable when comparing multiple instruments or timeframes simultaneously
Z-Score converts values to standard deviations from the mean
• Z-Score Threshold - When using Z-Score Normalization mode, sets the extreme zone levels (Default: 2.0)
Represents standard deviations from mean (2.0 = ~95% confidence interval)
Cumulative Transaction Reset
Determines when the cumulative volume delta resets to zero, preventing infinite accumulation. Default: None
• None - Cumulative delta never resets (continues from symbol history start)
• Daily - Resets at the start of each new trading day
• Weekly - Resets at the start of each week
• Monthly - Resets at the start of each month
• On session change - Resets when market opens (useful for 24-hour markets)
Reset modes prevent cumulative drift that can distort ROC calculations over extended periods.
Color Customization Fully customizable color scheme.
-------------------------------------------------------------------
Note: This indicator requires volume data from your data vendor. It uses inferred buy/sell volume. To learn more, read the TradingView Volume Delta documentation. Optimal performance is achieved on liquid instruments with high-frequency data.
Nota Keluaran
Update: - When applying this indicator to your chart, the default settings are for a 1 minute timeframe for scalping.
- For higher timeframe analysis you will need to manually adjust the settings. In future updates I will add the option for automatic chart timeframe detection for ease of use.
- In future updates I will add an alert system.
IMPORTANT: I WON'T BE MAKING THIS SCRIPT PUBLIC, NOR WILL I SEND IT TO ANYONE SO PLEASE DON'T ASK. I WON'T PROVIDE A "HOW TO TRADE" EXPLANATION. I HAVE GIVEN YOU SOME IDEAS AND AN EXPLANATION HOW THE INDICATOR WORKS.
If you find some great settings, be sure to leave a comment and help your fellow traders.
Some rough manual settings for higher timeframes to get you started..
5-Minute Chart
Timeframe for Volume Delta: 1 or 5 Seconds
Rate of Change Period: 10-12
Smoothing Length: 3-5
Zone Multiplier: 1.8-2.0
Lookback Period for Zones: 80-100
MSI Threshold: 1.8-2.0
Z-Score Threshold: 2.0-2.5
15-Minute Chart
Timeframe for Volume Delta: 5 or 15 Seconds
Rate of Change Period: 10-14
Smoothing Length: 5-7
Zone Multiplier: 1.5-2.0
Lookback Period for Zones: 60-80
MSI Threshold: 1.5-1.8
Z-Score Threshold: 2.0-2.5
1-Hour Chart
Timeframe for Volume Delta: 1 Minute
Rate of Change Period: 14-21
Smoothing Length: 7-10
Zone Multiplier: 1.5-1.8
Lookback Period for Zones: 50-70
MSI Threshold: 1.5
Z-Score Threshold: 2.5-3.0
4-Hour Chart
Timeframe for Volume Delta: 5 or 15 Minutes
Rate of Change Period: 14-21
Smoothing Length: 10-14
Zone Multiplier: 1.2-1.5
Lookback Period for Zones: 40-60
MSI Threshold: 1.2-1.5
Z-Score Threshold: 2.5-3.0
Daily Chart
Timeframe for Volume Delta: 30 Minutes or 1-hour
Rate of Change Period: 14-21
Smoothing Length: 14-21
Zone Multiplier: 1.0-1.5
Lookback Period for Zones: 50-100
MSI Threshold: 1.0-1.2
Z-Score Threshold: 3.0
Some trading style settings to get you started..
Scalping (30s - 5min)
Zone Multiplier: 2.0-2.5
Lookback: 80-100
MSI Threshold: 2.0-2.5 (higher to filter noise)
Z-Score Threshold: 2.0-2.5
ROC Period: 7-10
Smoothing: 3-5
Day Trading (5min - 1hr)
Zone Multiplier: 1.5-2.0
Lookback: 60-80
MSI Threshold: 1.5-2.0
Z-Score Threshold: 2.0-2.5
ROC Period: 10-14
Smoothing: 5-7
Swing Trading (1hr - Daily)
Zone Multiplier: 1.2-1.5
Lookback: 50-70
MSI Threshold: 1.2-1.5
Z-Score Threshold: 2.5-3.0
ROC Period: 14-21
Smoothing: 10-21
Position Trading (Daily - Weekly)
Zone Multiplier: 1.0-1.5
Lookback: 50-100
MSI Threshold: 1.0-1.2 (lower to catch rare extreme moves)
Z-Score Threshold: 3.0
ROC Period: 21-30
Smoothing: 21-30
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.