OPEN-SOURCE SCRIPT

Ultra High/Low

已更新
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.
發布通知
Update for minor bug fixes (correctly delete labels)
發布通知
minor bug fixes (source selection)
發布通知
Update for better visualization (Custom lines)
發布通知
Update (better vizualization for previous high/low)
發布通知
update (added Multi-Timeframe)
發布通知
Bugfix (display PDH & PWH or PDL & PWL within the same lebel correctly)
highliquidityLOWmultitimeframepivotPivot points and levelsTrend Analysis

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明