PROTECTED SOURCE SCRIPT

Bullish Wave Structure

已更新
This indicator visualizes bullish waves and the uptrend structure. It highlights the wave patterns, breakout levels, and swing highs and lows, distinguishing major and minor swings. The script also incorporates labels to denote trend and wave numbers, enhancing clarity in trend and wave identification. The waves plotted on the chart aid in chart study, trend analysis, and decision-making. Drawing objects on the chart are customizable.

## Fundamental Trend Assumptions
  • A trend starts when there is a break above a major swing high. There is then a first wave.
  • Subsequent waves are validated when there is a break above the high of the preceding wave and another major swing high is detected.
  • The trend ends when the price trades below the swing low of the latest wave.


## Wave drawing mechanism
The drawing of a wave occurs when:
  • There is a break above a major swing high (or the high of a wave) and another major swing high is detected.
  • There is a break above a major swing high (or the high of a wave) and the price collapses below the lowest point between the highest high and the high of the previous wave. The script treats this false break high as a legitimate bullish wave, even if no major swing high has been detected. The trend ends because the low of the current wave has been breached. This is a false break high that falls back within the range of the preceding wave.
  • There is a break above a major swing high (or the high of a wave) and the price collapses below the low of the preceding wave. The script treats this false break high as a legitimate bullish wave, even if no major swing high has been detected. The trend ends because the low of the preceding wave has been breached. This is a false break high followed by a sharp sell-off.

In short, the script draws the wave if there is a break above a major swing high (or the high of a wave) and another swing high is detected (or there is a break below the low of a wave).

## Remarks
  • While lower timeframes could benefit from this indicator, it shows clearer wave and trend structures in higher timeframes, starting from the 1H chart.
  • This indicator does not provide price projections. The drawing occurs after the price patterns have been unveiled. In other words, it draws waves and performs labeling in hindsight. However, users can fully benefit from the indicator for trend study and various technical analyses to support trading decisions, as explained in the description above.

    ## Acknowledgement
    The script uses user-defined functions to look back and find indexes of the highest and lowest values when no swings have been found (i.e., one-bar false break high and collapse). The detection of regular minor and major swings has been accomplished by the built-in functions:

  • ta.pivothigh() [Pine Script Language Reference Manual — TradingView (tradingview.com/pine-script-reference/v5/
  • ta.pivotlow() [Pine Script Language Reference Manual — TradingView (tradingview.com/pine-script-reference/v5/
發行說明
Minor Modification
Fixed swing low drawing for one-bar breakout and collapse.
發行說明
Improvements
  • Break high above major swing highs can be determined by close price or high of bar.
  • Adjustments of drawings for major swing highs contained in a wave
發行說明

  1. Add a condition to start a new trend: "If the last trend has terminated and the price breaks above the previous wave's high (the last wave high of the last trend)."
  2. Change the color of the label when a new trend starts. Two colors are used alternatively to distinguish between old and new trends. When a new trend starts, the colors are swapped to highlight the change.


快照
發行說明
Fixed a minor drawing issue for an exit rule.
Bullish PatternsChart patternseducationalTrend Analysisuptrendwaves

受保護腳本

該腳本是閉源發佈的,您可以自由使用。您可以把它加入到常用以在圖表上使用它。您無法查看或修改其原始碼。

想在圖表上使用此腳本?

免責聲明