OPEN-SOURCE SCRIPT
Diupdate 4C Data Table Suite

Overview
The 4C Data Table Suite is a versatile TradingView indicator, designed for traders who focus on the critical role of prior bar levels in their strategy. By highlighting the high and low points of previous bars, this tool aids in pinpointing crucial support and resistance zones, which often act as psychological triggers for market participants. The unique feature of this indicator is its dual-color coding: it colors bars green for bullish closes and red for bearish closes in the Prior Bar Table, and for the current timeframe, it highlights whether the current price is above (green) or below (red) these levels.
Concepts
1 — This sophisticated indicator is not just about visual cues; it provides a rich tableau of data including:
• Current timeframe countdown to bar close
• GMT-adjusted clock for precise trade timing
• Real-time updates on market internals and volatility measures such as the NYSE TICK and ATR
2 — The configuration is highly customizable, allowing users to:
• Adjust the table's positioning and text size
• Choose color settings for text, background, and borders to suit their visual preference
• Toggle the display of various data components based on their trading needs
3 — The Prior Bar Table is particularly valuable for:
• Traders using prior bar levels as triggers for trade entries and exits
• Quick visual assessment of market sentiment
• Real-time decision-making supported by dynamic color coding based on current price movements relative to prior highs and lows
Features
• Prior Bar Levels Table: Visualizes high and low levels of prior bars with intuitive color coding, aiding traders in assessing market trends.
• Dynamic Color Coding: Updates colors based on the closure of the previous bar and current price positions relative to the past bar's highs and lows.
• Comprehensive Market Data: Includes a suite of essential data such as market internals, the prior bar’s range, and the latest price information.
• Customizable Visuals: Offers extensive options for customizing the appearance and data presented, ensuring the tool fits seamlessly into any trader's strategy.
How to Use
1. To add the indicator, search for "4C Data Table Suite" under indicators on TradingView and apply it to your chart.
2. Navigate to the indicator settings to customize the display properties, including table position, color schemes, and which data points to display.
3. Utilize the toggles within the "Prior Bar Levels Table" settings to adjust the visibility and behavior of the table, depending on your trading approach.
Limitations
• This indicator is optimized for use on time-based charts and may not perform as intended on tick charts or non-standard timeframes.
• The color coding is based on the closure of bars, which may not always reflect intrabar movements, potentially affecting real-time decision-making in highly volatile markets.
Notes
• Ensure your TradingView interface is set to the correct timezone settings to align the GMT clock accurately.
• The dynamic color updates are designed to provide at-a-glance insights but should be used in conjunction with other analysis tools for best results.
*If you find that the indicator is blocking some of the candles at the bottom of the screen, go to (Chart) Settings, Canvas, and then adjust the Bottom/Top margin by increasing the % Amount.
Thanks
Special thanks to the TradingView community and developers whose feedback and insights have helped refine the functionalities of the 4C Data Table Suite. Your collaborative spirit is what makes continuous improvement possible.
The 4C Data Table Suite is a versatile TradingView indicator, designed for traders who focus on the critical role of prior bar levels in their strategy. By highlighting the high and low points of previous bars, this tool aids in pinpointing crucial support and resistance zones, which often act as psychological triggers for market participants. The unique feature of this indicator is its dual-color coding: it colors bars green for bullish closes and red for bearish closes in the Prior Bar Table, and for the current timeframe, it highlights whether the current price is above (green) or below (red) these levels.
Concepts
1 — This sophisticated indicator is not just about visual cues; it provides a rich tableau of data including:
• Current timeframe countdown to bar close
• GMT-adjusted clock for precise trade timing
• Real-time updates on market internals and volatility measures such as the NYSE TICK and ATR
2 — The configuration is highly customizable, allowing users to:
• Adjust the table's positioning and text size
• Choose color settings for text, background, and borders to suit their visual preference
• Toggle the display of various data components based on their trading needs
3 — The Prior Bar Table is particularly valuable for:
• Traders using prior bar levels as triggers for trade entries and exits
• Quick visual assessment of market sentiment
• Real-time decision-making supported by dynamic color coding based on current price movements relative to prior highs and lows
Features
• Prior Bar Levels Table: Visualizes high and low levels of prior bars with intuitive color coding, aiding traders in assessing market trends.
• Dynamic Color Coding: Updates colors based on the closure of the previous bar and current price positions relative to the past bar's highs and lows.
• Comprehensive Market Data: Includes a suite of essential data such as market internals, the prior bar’s range, and the latest price information.
• Customizable Visuals: Offers extensive options for customizing the appearance and data presented, ensuring the tool fits seamlessly into any trader's strategy.
How to Use
1. To add the indicator, search for "4C Data Table Suite" under indicators on TradingView and apply it to your chart.
2. Navigate to the indicator settings to customize the display properties, including table position, color schemes, and which data points to display.
3. Utilize the toggles within the "Prior Bar Levels Table" settings to adjust the visibility and behavior of the table, depending on your trading approach.
Limitations
• This indicator is optimized for use on time-based charts and may not perform as intended on tick charts or non-standard timeframes.
• The color coding is based on the closure of bars, which may not always reflect intrabar movements, potentially affecting real-time decision-making in highly volatile markets.
Notes
• Ensure your TradingView interface is set to the correct timezone settings to align the GMT clock accurately.
• The dynamic color updates are designed to provide at-a-glance insights but should be used in conjunction with other analysis tools for best results.
*If you find that the indicator is blocking some of the candles at the bottom of the screen, go to (Chart) Settings, Canvas, and then adjust the Bottom/Top margin by increasing the % Amount.
Thanks
Special thanks to the TradingView community and developers whose feedback and insights have helped refine the functionalities of the 4C Data Table Suite. Your collaborative spirit is what makes continuous improvement possible.
Catatan Rilis
Update DescriptionCustom Hourly Session Handling in TradingView
This update addresses a key issue with how TradingView handles hourly candles, particularly for users operating on EST. Unlike some other charting platforms, TradingView's hourly candles begin at 9:30 AM EST and close at 10:30 AM, rather than closing at the top of each hour as is standard (e.g., 10:00 AM, 11:00 AM, etc.). This discrepancy can create a significant disadvantage for traders who rely on hourly candles to align with broader market analysis.
To resolve this, we’ve implemented custom session handling within the indicator, along with a toggle option to easily switch between TradingView’s regular hourly bars and the adjusted sessions. This allows users to accurately calculate and plot hourly highs and lows as if the candles were closing at the top of each hour, starting at 10:00 AM. The 09:30 to 10:00 AM period is treated as a single 30-minute session, but it is considered as a "full hour" in terms of high and low calculation. Each subsequent session follows the standard hourly intervals (10:00 AM, 11:00 AM, etc.).
With this toggle option, users have the flexibility to choose between TradingView's default hourly bars and the custom sessions, ensuring that they can view hourly charts in a way that is consistent with other major platforms, without compromising the accuracy of moving averages or other time-sensitive indicators.
Catatan Rilis
<b>Version 6 Update — Major Table & Feature Upgrade</b><br><br>This update modernizes the <b>4C Data Table Suite</b> to Pine Script v6 and brings feature parity with the latest <b>4C Prior Bar Table</b>, along with layout fixes and performance improvements.
<br><br>
<b>🆕 New Features</b>
<ul> <li><b>NASDAQ Internals Support</b><br> ADD and Breadth can now be switched between <b>NYSE</b> and <b>NASDAQ</b> via a new exchange selector.</li> <li><b>Contract Calculator (ATR-Based Risk)</b><br> Added an optional contract calculator that displays: <ul> <li>Max contracts based on account size and risk %</li> <li>ATR-based stop distance (rounded to valid tick size)</li> </ul> Supports ES / MES / NQ / MNQ.</li> <li><b>Independent Internals Toggles</b><br> Market internals are now split into logical groups: <ul> <li>ADD + Breadth</li> <li>TICK + % Stocks Above VWAP</li> <li>Inverse Correlations (VIX / DXY)</li> </ul> </li> <li><b>Selectable ATR Smoothing</b><br> ATR now supports <b>RMA (Wilder), SMA, EMA, and WMA</b>, matching the Prior Bar Table.</li> </ul> <br>
<b>🧱 Layout & UI Improvements</b>
<ul> <li><b>Removed Dead Column / Spacing Gaps</b><br> Table column count adjusted to eliminate unused space and shift the Prior Bar suite left.</li> <li><b>“Last” Price Label Added</b><br> A dedicated <b>Last</b> header is now displayed above the current price for improved readability.</li> <li><b>Internals Re-Ordered for Readability</b><br> TICK and % > VWAP are positioned furthest left, followed by ADD and Breadth.</li> <li><b>Consistent Styling Across Tables</b><br> Fonts, colors, and text sizing now match the 4C Prior Bar Table for a unified look.</li> </ul> <br>
<b>⚙️ Performance & Code Improvements</b>
<ul> <li>Migrated fully to <b>Pine Script v6</b></li> <li>Table updates restricted to <b>barstate.islast</b> for lower runtime cost</li> <li>Simplified string formatting (removed fixed-width padding)</li> <li>Cleaner table construction and conditional rendering</li> </ul> <br>
<b>ℹ️ Notes</b>
<ul> <li>Stop distances are automatically rounded to valid tick increments.</li> <li>If a symbol is unsupported by the contract calculator, values gracefully display as “—”.</li> </ul> <br>
<b>As always — feedback is welcome. Happy trading. 🚀</b>
Catatan Rilis
Version 6 — Major Update (Data Table Suite)This update brings the Data Table Suite up to feature parity with the latest 4C Prior Bar Table, improves layout consistency, and upgrades the script to Pine Script v6.
New Features
- NASDAQ Internals Support
- ADD and Breadth can now be toggled between NYSE and NASDAQ via a new exchange selector.
- Contract Calculator (ATR-Based Risk)
- Optional contract calculator added.
Displays:
- Max contracts based on account size and risk %
- ATR-based stop distance
- Supports ES / MES / NQ / MNQ.
- Stop distance is rounded to valid tick increments.
- Selectable ATR Smoothing
- ATR now supports:
RMA (Wilder)
SMA
EMA
WMA
Layout & UI Improvements
Removed unused table columns that caused spacing gaps.
- Added a “Last” label above the current price cell.
- Reordered internals for clarity and consistency.
- Unified fonts, colors, and sizing with the Prior Bar Table indicator.
- Performance & Code Improvements
- Upgraded to Pine Script v6.
- Table rendering now runs only on the last bar for improved performance.
- Simplified table logic and conditional rendering.
Notes
- Unsupported symbols will display “—” in the contract calculator.
- Behavior and visuals now match the 4C Prior Bar Table for a consistent workflow.
Catatan Rilis
🔄 Update Notes — 4C Data Table SuiteContract Calculator Enhancements
- Added Stop Basis selector:
- ATR → Stop = ATR × Multiplier, tick-rounded (used for sizing & display)
- Prior Bar Range → Stop = prior candle high–low (used for sizing; raw range shown in table)
- Contract sizing now dynamically adapts to the selected stop basis while preserving existing risk logic.
Table Display Improvements
- “Stop” value now reflects the correct stop logic:
- ATR mode shows the actual stop used (multiplied + tick-rounded)
- Prior Bar Range mode shows the raw prior bar range for clarity
- Prevents confusion when adjusting stop multipliers during live sizing.
Settings Clarity
- Contract Calculator section label updated to explicitly describe:
- How stop distance is calculated
- How max contracts are derived from account risk ÷ stop risk
No Breaking Changes
No changes to:
- ATR calculation
- Risk math
- Contract rounding logic
- Table layout or visuals
- Existing ATR-based workflows remain fully intact by default.
Catatan Rilis
Contract Calculation Settings bug fixSkrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.