OPEN-SOURCE SCRIPT
Telah dikemas kini

Comprehensive Volume and Metrics with Pre-Market Volume Data


This script is designed for traders who want a detailed view of market activity, including regular market and pre-market volume, dollar volume, relative volume (RVOL), average daily range (ADR), average true range (ATR), relative strength index (RSI), and the QQQ’s percentage change.

The script includes customizable metrics displayed in tables on the chart for easy analysis, with the option to toggle the visibility of each metric.

Key Features:
Volume and Dollar Volume:

Displays the volume of shares traded during the current day (or pre-market, if enabled).
Includes a calculation of dollar volume, representing the total dollar amount of trades (Volume × Close Price).
Relative Volume (RVOL):

Displays RVOL Day, which is the relative volume of the current day compared to the 2-day moving average.
Shows RVOL 90D, indicating relative volume over the past 90 days.
Both RVOL metrics are calculated as percentages and display the percentage change compared to the standard (100%).
Pre-Market Data:

Includes pre-market volume (PVOL) and pre-market dollar volume (P$ VOL) which are displayed only if pre-market data is enabled.
Tracks volume and dollar volume during pre-market hours (4:00 AM to 9:30 AM Eastern Time) for more in-depth analysis.
Optionally, shows pre-market RSI based on volume-weighted close prices.
Average Daily Range (ADR):

Displays the percentage change between the highest and lowest prices over the defined ADR period (default is 20 days).
Average True Range (ATR):

Shows the ATR, a popular volatility indicator, for a given period (default is 14 bars).
RSI (Relative Strength Index):

Displays RSI for the given period (default is 14).
RSI is calculated using pre-market data when available.
QQQ:

Shows the percentage change of the QQQ ETF from the previous day’s close.
The QQQ percentage change is color-coded: green for positive, red for negative, and gray for no change.
Customizable Inputs:
Visibility Options: Toggle the visibility of each metric, such as volume, dollar volume, RVOL, ADR, ATR, RSI, and QQQ.
Pre-Market Data: Enable or disable the display of pre-market data for volume and dollar volume.
Table Positioning: Adjust the position of tables displaying the metrics either at the bottom-left or bottom-right of the chart.
Text Color and Table Background: Choose between white or black text for the tables and customize the background color.
Tables:
The script utilizes tables to display multiple metrics in an organized and easy-to-read format.
The values are updated dynamically, reflecting real-time data as the market moves.
Pre-Market Data:
The script calculates pre-market volume and dollar volume, along with other key metrics like RSI and RVOL, to help assess market sentiment before the market officially opens.
The pre-market data is accumulated from 4:00 AM to 9:30 AM ET, allowing for pre-market analysis and comparison to regular market hours.
User-Friendly and Flexible:
This script is designed to be highly customizable, giving you the ability to toggle which metrics to display and where they appear on the chart. You can easily focus on the data that matters most to your trading strategy.
Nota Keluaran
Fixed RVOL and RVOL 90 Day to update correctly when selecting to display or not display RVOL or RVOL 90 in the output section.
Nota Keluaran
More tweaks on RVOL.
Nota Keluaran
Worked more on RVOL and RVOL 90. It displays NA when calculating.
Also added a PreMarket RVOL that looks at pre-market volume.

There are 4 "Quick Display" groups for when your on a mobile device.

Metrics - ADR, ATR, RSI, QQQ toggle
Pre-Market toggle which includes PRVOL
Volume toggle
RVOL toggle
Nota Keluaran
Comprehensive Volume and Metrics with Pre-Market Volume Data

Overview
The "Volume and Metrics Dashboard" script is a comprehensive tool designed for traders to monitor key volume and market metrics in real-time on their TradingView charts. This script stands out by providing an integrated dashboard displaying various volume-related metrics, relative volume (RVOL) comparisons, pre-market data, and other essential market indicators like Average Daily Range (ADR), Average True Range (ATR), and Relative Strength Index (RSI).

Key Features
Volume Metrics:

Daily Volume: Displays the total volume traded for the current day.
Dollar Volume: Shows the total dollar volume traded for the current day, calculated as the daily close price multiplied by the daily volume.
Relative Volume (RVOL):

RVOL Day: Measures the current day's volume relative to the average volume over the past two days, presented as a percentage.
RVOL 90 Day: Compares the current day's volume to the average volume over the past 90 days, also shown as a percentage.
Pre-Market RVOL: Calculates the pre-market volume relative to the average volume over the past two days.
Pre-Market Data:

Pre-Market Volume (PVOL): Displays the total volume traded during the pre-market session.
Pre-Market Dollar Volume (P$ Vol): Shows the dollar volume traded during the pre-market session.
Market Metrics:

ADR (Average Daily Range): The script calculates the ADR using the formula 100 * (sma(dhigh / dlow, adrPeriod) - 1), where dhigh and dlow are the daily high and low prices, respectively. This metric gives traders an idea of the average volatility over a specified period (14 or 20 days).
ATR (Average True Range): Measures market volatility by averaging the true range over 14 days.
RSI (Relative Strength Index): Provides the RSI for the pre-market session, based on a 14-day period.
QQQ Change: Displays the percentage change in the QQQ ETF, indicating overall market sentiment.
Customization:

Users can customize the table positions, background colors, and text colors.
Visibility toggles for each metric allow users to configure the dashboard according to their preferences.
The ADR period can be set to either 14 or 20 days.
Underlying Concepts
Relative Volume (RVOL):
RVOL is a measure of the current trading volume compared to the historical average volume. A higher RVOL indicates increased trading activity, which could signify potential price movement. This script provides both short-term (2-day) and long-term (90-day) RVOL metrics to help traders gauge the current trading environment.

Average Daily Range (ADR):
ADR is a volatility indicator that shows the average range between the high and low prices over a specified period. By using the formula 100 * (sma(dhigh / dlow, adrPeriod) - 1), the script normalizes the range as a percentage, making it easier to compare across different stocks.

Pre-Market Data:
Pre-market trading can provide insights into how a stock might behave during the regular trading session. By tracking pre-market volume and dollar volume, traders can identify early trends and potential market movers.

Average True Range (ATR):
ATR is another volatility indicator that measures the average range of price movement over a specified period. It helps traders understand the typical price fluctuations and set appropriate stop-loss levels.

Relative Strength Index (RSI):
RSI is a momentum oscillator that measures the speed and change of price movements. It helps traders identify overbought or oversold conditions, which can signal potential reversals.

How to Use
Add the Script to Your Chart:

Apply the "Volume and Metrics Dashboard" script to any TradingView chart by selecting it from the Pine Script library or pasting the script code into the Pine Editor.
Configure Input Settings:

Customize the table positions (bottom left or bottom right) for volume and metrics data.
Toggle the visibility of each metric based on your preferences.
Set the ADR period to either 14 or 20 days.
Adjust table background colors and text colors to match your chart's theme.
Interpret the Metrics:

Use the volume metrics to monitor daily trading activity and identify unusual volume spikes.
Analyze the RVOL data to understand how the current volume compares to historical averages.
Check the pre-market data to gain early insights into potential market movers.
Utilize the ADR and ATR metrics to assess market volatility and set appropriate trading levels.
Monitor the RSI and QQQ change to gauge market sentiment and identify potential reversal points.
By providing a holistic view of key volume and market metrics, the "Volume and Metrics Dashboard" script empowers traders to make informed decisions and stay ahead of market trends.
Nota Keluaran
Changed RVOL(s) to calculate for day values.

Change how ADR calculates thanks to TheScrutinizer for the KQ calculation.
Nota Keluaran
Added Market Breadth "BRDTH" whihc shows price difference in percentage of ATHI vs ATLO with color coding.

Also added MMTW 20 day average.
Nota Keluaran
Hid the following so theres more real estate when the dashboard loads.

RSI
RVOL 90 Day
MMTW
Nota Keluaran
fixed pre-market display

Penafian