OPEN-SOURCE SCRIPT

Ultra High/Low

Cập nhật
The Ultra High/Low script helps traders track key price levels by automatically marking significant highs and lows on a chart, highlighting potential reversal points for future trading decisions.

Introduction
The Ultra High/Low script identifies and marks significant highs and lows on a trading chart. These are specific points where the price reached a peak or bottomed out before reversing. The script draws lines at these levels, which can be extended, and it also labels the exact price at these points. This makes it easy for traders to see where the price has changed direction previously, helping them make more informed trading decisions.

Detailed Description
In more detail, the Ultra High/Low script is designed using Pine Script™, a programming language used for creating custom indicators and strategies on the TradingView platform. Here's how it works:

..........
  1. Detection of Pivot Highs and Lows
    The script identifies "pivot highs" and "pivot lows." These are points on the chart where the price reached a local maximum or minimum, surrounded by lower highs (for pivot highs) or higher lows (for pivot lows).
    The user can customize how many bars to the left and right of the high or low the script should consider to confirm a pivot (Length argument in the settings).
    The script uses Pine Script functions for pivot detection. ta.pivothigh() and ta.pivotlow().


    ......
  2. Drawing Lines and Labels
    Once a pivot is identified, the script draws a dashed line from the pivot point to the current price bar. This line helps visualize where significant price reversals have occurred.
    The script also adds a label next to these lines showing the exact price of the pivot point. This label also shows "PDH" (Previous Day High) or "PDL" (Previous Day Low) if the pivot is PDH or PDL. Same for "PWH" (Previous Week High) and "PWL" (Previous Week Low).


    ......
  3. Purging and Extending Lines
    If the price crosses a pivot line after it has been drawn, the script can either delete the old line (purged line) or keep it and add additional indicators to show that the line has been liquidated.
    The script also has options to extend the lines into the right.


    ......
  4. Custom Inputs
    The script offers several customizable options, like the color of the lines and labels, whether to show the exact price or not, and whether to extend the lines. This allows traders to tailor the indicator to their specific needs and preferences.


..........
Overall, the Ultra High/Low script is a powerful visual aid for identifying critical price levels that may influence future price movements, making it easier for traders to make decisions based on historical price behavior.
Phát hành các Ghi chú
Update for minor bug fixes (correctly delete labels)
Phát hành các Ghi chú
minor bug fixes (source selection)
Phát hành các Ghi chú
Update for better visualization (Custom lines)
Phát hành các Ghi chú
Update (better vizualization for previous high/low)
Phát hành các Ghi chú
update (added Multi-Timeframe)
Phát hành các Ghi chú
Bugfix (display PDH & PWH or PDL & PWL within the same lebel correctly)
highliquidityLOWmultitimeframepivotPivot points and levelsTrend Analysis

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