OPEN-SOURCE SCRIPT

Weis Wave Candle

110
█Overview
The Weis Wave Candle indicator is a technical tool designed for the TradingView platform, enabling traders to analyze market dynamics by identifying price waves. The indicator relies solely on candlestick data, making it functional on markets where volume data is unavailable. It employs two trend detection methods, dynamic color gradients, trend change alerts, and clear visualization to assist in identifying trend strength and potential reversal points.

█Concept
The Weis Wave Candle indicator was developed to overcome limitations associated with the lack of volume data in certain markets, offering an alternative to traditional volume-based indicators like Weis Wave. Instead of volume, it measures candle size (body or body plus half the candle range) and accumulates it within a price wave. The indicator includes two trend calculation methods:
-LazyBear Style: Based on the popular Weis Wave adaptation by LazyBear, likely the most recognized version of this tool, it uses closing price comparisons and trend confirmation via trend functions. Results may differ from the original Weis Wave, as candle size does not always align with volume.
-Impulse Trend: A method that evaluates trend strength by summing price movements over a specified period, where each candle with a higher close than the previous adds +1, a lower close subtracts -1, and no change adds 0. The trend strength is determined by the sum: positive indicates an uptrend, negative a downtrend, and zero a continuation of the prior trend.

Results are visualized using dynamic color gradients, and alerts notify users of trend direction changes, facilitating quick decision-making.

█Why Use It?
-Volume-Free Operation: Ideal for markets without volume data.
-Flexibility: Two trend detection methods allow adaptation to various trading strategies.
-Dynamic Visualization: Color gradients and semi-transparent backgrounds simplify quick interpretation of trend strength.
-Alerts: Notifications for trend changes (from uptrend to downtrend and vice versa) support active trading.
-Customization: Options to adjust colors, analysis periods, and candle shadow inclusion.

█How It Works?
-Candle Size Calculation: Depending on the setting, candle size includes only the body (difference between close and open) or the body plus half the candle range (calculated as 0.5 * (high - low)) (setting Include candle shadows).
-Trend Detection:
LazyBear Style: Compares closing prices of adjacent candles to determine direction (uptrend, downtrend, or neutral) and confirms the trend using ta.rising or ta.falling functions over the specified period.
Impulse Trend: Sums price movements over the analysis period (+1 for a candle with a higher close than the previous, -1 for a lower close, 0 for no change). A positive sum indicates an uptrend, a negative sum a downtrend, and zero a continuation of the prior trend.
-Wave Accumulation: Candle sizes are accumulated within a single wave until the trend changes.
-Normalization and Gradients: Wave values are normalized to a 0-100 scale solely for color gradient purposes, enabling dynamic color changes from base to intense, reflecting wave strength relative to historical values. The height of columns (representing waves) is not normalized and corresponds to the accumulated candle size.
-Alerts: The indicator generates notifications when the wave direction changes (from uptrend to downtrend or vice versa), enabling quick responses to trend shifts.
-Visualization: Upward and downward waves are plotted as columns with dynamic colors, and the chart background changes color for better visibility.

█Settings and Customization
-Trend Detection Method: Choose between LazyBear Style (default) and Impulse Trend.
-Trend Analysis Period: Number of candles for trend analysis (default: 4).
-Include Candle Shadows: Determines whether to include half the candle range (high - low) in addition to the body (default: enabled).
-Lookback Period for Dynamic Thresholds: Number of candles to calculate the maximum and minimum wave values for color gradient normalization (default: 70).
-Gradient Minimum/Maximum Value: Threshold values defining the normalization range for color gradients (default: 0/100). A lower minimum value reduces the threshold for lighter colors, while a higher maximum value increases the threshold for more intense colors.
-Wave Colors: Options to select base and intense colors for upward and downward waves.
-Alerts: Enable alerts in TradingView settings (Upward Trend Change and Downward Trend Change) for trend change notifications.

█Usage Examples
-Trend Analysis: Upward waves (green columns) indicate buying pressure, while downward waves (red columns) indicate selling pressure. The more intense the color, the stronger the wave relative to historical values.
-Comparing Timeframes: Analyze trends across multiple timeframes (e.g., 1H, 4H, 1D) for broader context. For example, enter a position on the 4H timeframe after confirming trend alignment on 1H, 4H, and 1D, along with validation from a key level, such as a Fibonacci level or a Break of Structure (BOS).
-Using Alerts: Configure alerts in TradingView to receive notifications of trend changes, useful for active trading.

█Notes for Users
-Experiment with the Trend Analysis Period and Include Candle Shadows settings to tailor the indicator to your market and timeframe.
-Combine the indicator with other tools, such as support/resistance levels or RSI, to enhance signal accuracy.
-The Impulse Trend method may be more sensitive to short-term price changes, while LazyBear Style performs better in clear trends. Results from LazyBear Style may differ from the original Weis Wave, as candle size does not always align with volume.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.