1. Overview and Features of the Indicator This indicator is a tool designed to analyze chart waveforms based on Dow Theory, identifying swing lows (support) and swing highs (resistance). It allows users to quickly and consistently determine trend direction. Compared to manual analysis, it provides more efficient and accurate results.
By using swing lows and swing highs, the indicator offers a more detailed understanding of trends than simple updates to highs and lows, aiding in the creation of effective trading strategies.
2. Identifying Wave Lows and Highs Stock prices do not move in straight lines; instead, they rise and fall in waves. This indicator starts by identifying the wave lows and wave highs. - Wave Low: The lowest point during a temporary price decline. - Wave High: The highest point during a temporary price increase.
These are automatically identified using Pine Script’s built-in functions `pivotlow` and `pivothigh`.
3. Drawing the Waveform The identified wave lows and highs are alternately connected to draw the waveform. However, there are cases where wave lows or highs occur consecutively: - Consecutive Wave Lows: The lower low is used for drawing the waveform. - Consecutive Wave Highs: The higher high is used for drawing the waveform.
4. Tracking Swing Lows/Highs and Trend Determination Swing lows and swing highs are crucial markers that indicate the state of wave progression: - Swing Low: The starting point of a wave (wave low) when the closing price exceeds the previous wave high. - Swing High: The starting point of a wave (wave high) when the closing price falls below the previous wave low.
The changes in swing lows and swing highs as the waves progress allow for trend state determination.
5. Examples of Trend States During an Uptrend: - When the price surpasses a wave high, the swing low is updated, confirming the continuation of the uptrend.
End of an Uptrend: - When the price falls below the swing low, the swing low disappears, and a swing high appears, signaling the end of the uptrend.
Sideways Movement: - Swing lows and swing highs alternately appear, indicating a sideways trend.
Start of a Downtrend: - When the price breaks below a wave low for the first time, the swing high is updated, confirming the start of the downtrend.
During a Downtrend: - When the price breaks below a wave low, the swing high is updated, confirming the continuation of the downtrend.
End of a Downtrend: - When the price surpasses a wave high, the swing high disappears, and a swing low reappears, signaling the end of the downtrend.
Restart of an Uptrend: - When the swing low is updated, the uptrend resumes. The uptrend begins when the price surpasses a wave high, and the swing low is updated for the first time.
6. Applications Trade Entries and Exits: - Set stop orders for entry at the price level where a trend starts. - Set stop orders for exit at the price level where a trend ends.
Trend Filtering: - Use the indicator to confirm whether market conditions are suitable for entry based on the trend state. Analyze waveforms to aid trading strategies.
Guide for Drawing Trendlines: - Utilize wave lows and highs as starting and ending points when drawing trendlines with drawing tools.
7. Parameters and Display Items Pivot Points: - Wave lows are marked with circles below the candlestick’s low, and wave highs are marked with circles above the candlestick’s high.
Number of Bars for Pivot Calculation: - Specify the number of bars on either side used to identify highs (default: 2).
Waveform: - Specify the color (default: blue) or toggle its visibility (default: visible).
Swing Lows/Highs: - Displayed as large circles. The rightmost large circle on the chart indicates the current swing low or swing high. Historical swing points are also displayed to show the progression of state changes. Specify the color (default: green) or toggle visibility (default: visible).