OPEN-SOURCE SCRIPT
Telah dikemas kini

Toolbar-Fren

300
Toolbar-Fren is a comprehensive, data-rich toolbar designed to present a wide array of key metrics in a compact and intuitive format. The core philosophy of this indicator is to maximize the amount of relevant, actionable data available to the trader while occupying minimal chart space. It leverages a dynamic color-coded system to provide at-a-glance insights into market conditions, instantly highlighting positive/negative values, trend strength, and proximity to important technical levels.

Features and Data Displayed
The toolbar displays a vertical column of critical data points, primarily calculated on the Daily timeframe to give a broader market context. Each cell is color-coded for quick interpretation.

DAY:
The percentage change of the current price compared to the previous day's close. The cell is colored green for a positive change and red for a negative one.

LOD:
The current price's percentage distance from the Low of the Day.

HOD
The current price's percentage distance from the High of the Day.

MA Distances (9/21 or 10/20, 50, 200)
These cells show how far the current price is from key Daily moving averages (MAs).
The values are displayed either as a percentage distance or as a multiple of the Average Daily Range (ADR), which can be toggled in the settings.
The cells are colored green if the price is above the corresponding MA (bullish) and red if it is below (bearish).

ADR
Shows the 14-period Average Daily Range as a percentage of the current price. The cell background uses a smooth gradient from green (low volatility) to red (high volatility) to visualize the current daily range expansion.
ADR%/50: A unique metric showing the distance from the Daily 50 SMA, measured in multiples of the 14-period Average True Range (ATR). This helps quantify how extended the price is from its mean. The cell is color-coded from green (close to the mean) to red (highly extended).

RSI
The standard 14-period Relative Strength Index calculated on the Daily timeframe. The background color changes to indicate potentially overbought (orange/red) or oversold (green) conditions.

ADX
The 14-period Average Directional Index (ADX) from the Daily timeframe, which measures trend strength. The cell is colored to reflect the strength of the trend (e.g., green for a strong trend, red for a weak/non-trending market). An arrow (▲/▼) is also displayed to indicate if the ADX value is sloping up or down.

User Customization
The indicator offers several options for personalization to fit your trading style and visual preferences:

MA Type
Choose between using Exponential Moving Averages (EMA 9/21) or Simple Moving Averages (SMA 10/20) for the primary MA calculations.

MA Distance Display
Toggle the display of moving average distances between standard percentage values and multiples of the Average Daily Range (ADR).

Display Settings
Fully customize the on-chart appearance by selecting the table's position (e.g., Top Right, Bottom Left) and the text size. An option for a larger top margin is also available.

Colors
Personalize the core Green, Yellow, Orange, and Red colors used throughout the indicator to match your chart's theme.

Technical Parameters
Fine-tune the length settings for the ADX and DI calculations.
Nota Keluaran
This update introduces significant enhancements to the indicator, focusing on customization, new data points, and improved display options.

Key Modifications and New Features

1. Modular and Customizable Display
The most significant change is the ability to fully customize the information displayed in the data table.

Individual Metric Toggles: You now have granular control over the visibility of each metric. In the indicator settings, under "Display Options," you can toggle on or off every single data point, including Day Change, HOD/LOD Distance, each Moving Average, ADR, RSI, and more. This allows you to create a cleaner, more personalized view that shows only the information you need.
Horizontal Layout: A new "Table Orientation" option has been added. You can now switch between the classic vertical layout and a new, compact horizontal layout. The horizontal mode is ideal for users who want to save vertical screen space.

2. New Data Points and Indicators
Several new metrics have been added to provide a more comprehensive market overview.

52-Week High and Low: The indicator now calculates and displays the current price's percentage distance from the 52-week high and 52-week low.
SMA 5: The 5-period Simple Moving Average has been included as a new short-term MA option.
ATR-LOD Distance: A new metric shows the distance from the low of the day as a percentage of the Average True Range (ATR), providing insight into intraday volatility and extension.

3. Enhanced Display and User Experience

Dark and Light Mode: A "Dark Mode" switch has been implemented. This will automatically adjust text and background colors for optimal visibility on both dark and light chart themes.
MA Tightness Indicator: A visual feature has been added to the vertical layout. A colored block will appear next to a moving average when the price is in close proximity to it. The sensitivity of this "tightness" can be adjusted in the settings via the "Tightness Threshold" input, which is based on ATR multiples.

4. Calculation Refinements

Improved MA Distance Calculation: The method for calculating moving average distances as ATR multiples has been refined for greater consistency. The calculation is now based on the daily ATR percentage, providing a more standardized measure of price deviation from its moving averages.
Nota Keluaran
New Features
1. Enhanced Tightness: Dynamic ATR Multiple Thresholds
The old binary "tight" vs. "loose" indicator has been replaced with a sophisticated 4-level system to dynamically measure price extension from its moving averages. This provides much deeper insight into whether a stock is overextended or if it is close to a moving average, possibly offering a good entry point.

Multi-Level Color-Coding
The distance of the price from each moving average is now colored based on its historical volatility:
Green: Normal distance (price is not extended).
Yellow: Extended distance. New buys are not recommended.
Orange: Very extended. This could be a signal to consider taking profits.
Red: Extreme extension, indicating high risk.

Adaptive Calculation: Instead of using a single fixed value, the thresholds for these colors are now calculated dynamically for each stock and each moving average. The indicator analyzes the last 252 bars (approx. 1 year) to learn the asset's unique behavior, making the extension readings far more accurate and relevant.

Full Customization: This feature can be turned on or off with the new "Use Dynamic ATR Thresholds" setting. You can also change the lookback period for the historical analysis. For advanced users, a "Show Threshold Debug Info" option has been added to see the exact ATR multiple values being used.

2. Relative Volume (RVol) Integration
You can now monitor Relative Volume directly from the toolbar, which is crucial for confirming trends and identifying high-conviction moves.

RVol Display: A new "RVol" cell shows the current bar's volume as a percentage of its 50-period average volume.
Gradient Coloring: The cell is color-coded to allow for an instant assessment of volume:
Red for low volume.
Orange for average volume.
Yellow for moderately high volume.
Green for high volume.
Blue for extremely high volume.

Smaller Improvements
Global Transparency Control: A new setting, "Transparency for background colors," has been added to easily adjust the transparency of all colored cells in the table at once.

Improved Readability: The script now automatically adjusts text color for better contrast against different background colors, making the table easier to read.

Adaptive ATR/50 Coloring: The "ATR/50" cell's background color now uses the same dynamic thresholds as the 50 SMA, making its color signals adaptive and more reliable than the previous fixed values.

Nota Keluaran
Sorry, missed a bug in the previous version.

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.