OPEN-SOURCE SCRIPT
Mis à jour

OHLC Lines – Yesterday & Today (Minimalist Option)

599
This indicator draws horizontal lines representing the Open, High, Low, and Close (OHLC) levels of yesterday and today directly on your chart. It automatically updates each day, showing only the lines for the previous day and the current day, keeping your chart clean and focused.

Features:

Display Yesterday’s OHLC levels.

Display Today’s OHLC levels.

Optional Minimalist Mode with customizable color, width, and line style.

Lines automatically update each day and remove old lines.

Fully customizable colors, visibility, and line width for each OHLC level.

Use Case:
Perfect for traders who want to monitor key daily price levels, identify support/resistance zones, or incorporate OHLC levels into intraday strategies.
Notes de version
This indicator draws horizontal lines representing the Open, High, Low, and Close (OHLC) levels of yesterday and today directly on your chart. It automatically updates each day, showing only the lines for the previous day and the current day, keeping your chart clean and focused.

Features:

Display Yesterday’s OHLC levels.

Display Today’s OHLC levels.

Optional Minimalist Mode with customizable color, width, and line style.

Lines automatically update each day and remove old lines.

Fully customizable colors, visibility, and line width for each OHLC level.

Use Case:
Perfect for traders who want to monitor key daily price levels, identify support/resistance zones, or incorporate OHLC levels into intraday strategies.
Notes de version
V1: Performance Optimization
The indicator's loading time was drastically improved by reducing the data requests from 11 to 2.

V2: Feature Enhancements
Price Labels: Optional text labels (e.g., "YH", "TL") were added directly to the lines.
Info Table: An optional table was added to the top-right corner to display all price levels clearly.

V3: Usability Improvements
The position of the price labels was corrected to prevent them from overlapping the lines.
The info table was updated to display "(Off)" when a line is disabled, making the status clearer.

V4: Dynamic Info Table
The info table was redesigned. Disabled lines are now completely removed from the table, allowing it to dynamically resize.

V5: Customizable Labels
A new option was added, allowing the user to choose whether the labels display the abbreviation ("YH") or the exact price ("150.25").

V6: Text Adjustment
A term in the dropdown options was adjusted for better clarity.

V7: Customizable Line Style
A new dropdown option was added to allow the user to select the line style (Solid, Dashed, Dotted) for the standard design.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.