OPEN-SOURCE SCRIPT

Price Analysis with Custom Lookback

Cập nhật
This TradingView indicator analyzes price data over a customizable lookback period to identify key metrics:

The highest daily close, representing the peak closing price during the specified period.
The highest wick, showing the maximum price reached within the same timeframe.
The lowest daily close, indicating the lowest closing price.
The lowest wick, reflecting the minimum price reached during the lookback period.

The indicator is useful for traders looking to understand recent price extremes and ranges. It provides a visual representation of these metrics on the chart, with customizable settings for the analysis period.
Phát hành các Ghi chú

This TradingView indicator analyzes price data over a customizable lookback period to identify key metrics:

The highest daily close, representing the peak closing price during the specified period.
The highest wick, showing the maximum price reached within the same timeframe.
The lowest daily close, indicating the lowest closing price.
The lowest wick, reflecting the minimum price reached during the lookback period.
The indicator is useful for traders looking to understand recent price extremes and ranges. It provides a visual representation of these metrics on the chart, with customizable settings for the analysis period.
Phát hành các Ghi chú
This TradingView indicator analyzes price data over a customizable lookback period to identify key metrics:

The highest daily close, representing the peak closing price during the specified period.
The highest wick, showing the maximum price reached within the same timeframe.
The lowest daily close, indicating the lowest closing price.
The lowest wick, reflecting the minimum price reached during the lookback period.
The indicator is useful for traders looking to understand recent price extremes and ranges. It provides a visual representation of these metrics on the chart, with customizable settings for the analysis period.
Phát hành các Ghi chú
This TradingView indicator analyzes price data over a customizable lookback period to identify key metrics:

The highest daily close, representing the peak closing price during the specified period.
The highest wick, showing the maximum price reached within the same timeframe.
The lowest daily close, indicating the lowest closing price.
The lowest wick, reflecting the minimum price reached during the lookback period.
The indicator is useful for traders looking to understand recent price extremes and ranges. It provides a visual representation of these metrics on the chart, with customizable settings for the analysis period.
Phát hành các Ghi chú
This TradingView indicator analyzes price data over a customizable lookback period to identify key metrics:

The highest daily close, representing the peak closing price during the specified period.
The highest wick, showing the maximum price reached within the same timeframe.
The lowest daily close, indicating the lowest closing price.
The lowest wick, reflecting the minimum price reached during the lookback period.
The indicator is useful for traders looking to understand recent price extremes and ranges. It provides a visual representation of these metrics on the chart, with customizable settings for the analysis period.
Phát hành các Ghi chú
This TradingView indicator analyzes price data over a customizable lookback period (in calendar days), regardless of the chart's timeframe or bar length. It calculates and displays the following metrics directly overlaid on the main price chart:

Highest Daily Close: The maximum closing price within the specified lookback period.
Highest Wick: The highest price (upper wick) reached during the lookback period.
Lowest Daily Close: The minimum closing price within the same timeframe.
Lowest Wick: The lowest price (lower wick) reached during the lookback period.
Current Price: The most recent closing price of the asset.
Key Features:
Customizable Lookback Period: The user can input the number of calendar days for analysis, ensuring consistent results regardless of the chart's timeframe (e.g., hourly, daily, or weekly bars).
Dynamic Updates: The indicator recalculates metrics dynamically for bars within the specified lookback period.
Overlay Design: The lines for the calculated metrics are displayed directly on the main price chart for ease of comparison with candlesticks or bars.
Efficient Implementation: Handles time filtering accurately using Pine Script's conditional logic.
This tool is ideal for traders looking to analyze recent price extremes (highs and lows) and track current price movements in relation to historical levels.
Phát hành các Ghi chú
This TradingView indicator calculates the Highs and Lows for the last X days and displays these values only on the current candle (based on the chart's timeframe).

Key Features:
Customizable Lookback Period:

The user can set the lookback period (X days) to define how many days to aggregate for calculating the high and low.
Rolling Highs and Lows:

The indicator dynamically calculates the highest and lowest prices over the specified lookback period.
Current Candle Display:

The calculated high and low values are displayed exclusively for the current candle, keeping the chart clean and focused.
Overlay Design:

The high and low values are plotted as horizontal lines overlaid on the main price chart.
Use Case:
This indicator is ideal for traders who want to reference the rolling highs and lows of the past X days while focusing on the current price action. It’s particularly useful for:

Monitoring key levels during active trading sessions.
Evaluating recent price extremes relevant to the latest candle.
Inputs:
Lookback Period (Days): The number of days to consider for calculating the highs and lows (default: 5 days).
How to Use:
Set the desired lookback period (e.g., 5 days).
Observe the high and low levels displayed on the latest candle.
Use these levels to identify key price zones for potential trading decisions.
This script ensures a clean and efficient display of critical price levels without cluttering the chart.
Phát hành các Ghi chú
No major updates, just labels.
Phát hành các Ghi chú
Reverted code back to OG
High-Low Indexprices

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm