OPEN-SOURCE SCRIPT

Big Candle Trend

152
█ OVERVIEW
The "Big Candle Trend" indicator is a technical analysis tool written in Pine Script® v6 that identifies large signal candles on the chart and determines the trend direction based on the analysis of all candles within a specified period. Designed for traders seeking a simple yet effective tool to identify key market movements and trends, the indicator provides clarity and precision through flexible settings, trend line visualization, and retracement lines on signal candles.

█ CONCEPTS
The goal of the "Big Candle Trend" indicator was to create a tool based solely on the size of candle bodies and their relative positions, making it universal and effective across all markets (stocks, forex, cryptocurrencies) and timeframes. Unlike traditional indicators that often rely on complex formulas or external data (e.g., volume), this indicator uses simple yet powerful price action logic. Large signal candles are identified by comparing their body size to the average body size over a selected period, and the trend is determined by analyzing price changes over a longer period relative to the average candle body size. Additionally, the indicator draws horizontal lines on signal candles, aiding in setting Stop Loss levels or delayed entries.

█ FEATURES
*Large Signal Candle Detection: Identifies candles with a body larger than the average body multiplied by a user-defined multiplier, aligned with the trend (if the trend filter is enabled). Signals are displayed as triangles (green for bullish, red for bearish).
*Trend Analysis: Determines the trend (uptrend, downtrend, or neutral) by comparing the price change over a selected period (trend_length) to the average candle body size multiplied by a trend strength multiplier. The trend starts when:
*Uptrend: The price change (difference between the current close and the close from an earlier period) is positive and exceeds the average candle body size multiplied by the trend strength multiplier (avg_body_trend * trend_mult).
*Downtrend: The price change is negative and exceeds, in absolute value, the average candle body size multiplied by the trend strength multiplier.
*Neutral Trend: The price change is below the required threshold, indicating no clear market direction.The trend ends when the price change no longer meets the conditions for an uptrend or downtrend, transitioning to a neutral state or switching to the opposite trend when the price change reverses and meets the conditions for the new trend. This approach differs from standard methods as it focuses on price dynamics in the context of candle body size, offering a more intuitive and direct way to gauge trend strength.

*Smoothed Trend Line: Displays a trend line based on the average price (HL2, i.e., the average of the high and low of a candle), smoothed using a user-defined smoothing parameter. The trend line reflects the market direction but is not tied to breakouts, unlike many other trend indicators, allowing for more flexible interpretation.
*Retracement Lines: Draws horizontal lines on signal candles at a user-defined level (e.g., 0.618). The lines are displayed to the right of the candle, with a width of one candle. For bullish candles, the line is measured from the top of the body (close) downward, and for bearish candles, from the bottom of the body (close) upward, aiding in setting Stop Loss or delayed entries.
*Trend Option: Option to enable a trend filter that limits large candle signals to those aligned with the current trend, enhancing signal precision.
*Customizable Visualization: Allows customization of colors for uptrend, downtrend, and neutral states, trend line style, and shadow fill between the trend line and price.
*Alerts: Built-in alerts for large signal candles (bullish and bearish) and trend changes (start of uptrend, downtrend, or neutral trend).

█ HOW TO USE
Add to Chart: Apply the indicator to your TradingView chart via the Pine Editor or Indicators menu.
Configure Settings:

Candle Settings:
*Average Period (Candles): Sets the period for calculating the average candle body size.
*Large Candle Multiplier: Multiplier determining how large a candle’s body must be to be considered "large".

Trend Settings:
*Trend Period: Period for analyzing price changes to determine the trend.
*Trend Strength Multiplier: Multiplier setting the minimum price change required to identify a significant trend.
*Trend Line Smoothing: Degree of smoothing for the trend line.
*Show Trend Line: Enables/disables the display of the trend line.
*Apply Trend Filter: Limits large candle signals to those aligned with the current trend.

Trend Colors:
*Customize colors for uptrend (green), downtrend (red), and neutral (gray) states, and enable/disable shadow fill.

Retracement Settings:
*Retracement Level (0.0-1.0): Sets the level for lines on signal candles (e.g., 0.618).
*Line Width: Sets the thickness of retracement lines.

Interpreting Signals:
*Bullish Signal: A green triangle below the candle indicates a large bullish candle aligned with an uptrend (if the trend filter is enabled). A horizontal line is drawn to the right of the candle at the retracement level, measured from the top of the body downward.
*Bearish Signal: A red triangle above the candle indicates a large bearish candle aligned with a downtrend (if the trend filter is enabled). A horizontal line is drawn to the right of the candle at the retracement level, measured from the bottom of the body upward.
*rend Line: Shows the market direction (green for uptrend, red for downtrend, gray for neutral). Unlike many indicators, the trend line’s color is not tied to its breakout, allowing for more flexible interpretation of market dynamics.

*Alerts: Set up alerts in TradingView for large signal candles or trend changes to receive real-time notifications.
*Combining with Other Tools: Use the indicator alongside other technical analysis tools, such as support/resistance levels, RSI, moving averages, or Fair Value Gaps (FVG), to confirm signals.

█ APPLICATIONS
*Price Action Trading: Large signal candles can indicate key market moments, such as breakouts of support/resistance levels or strong price rejections. Use signal candles in conjunction with support/resistance levels or FVG to identify entry opportunities. Retracement lines help set Stop Loss levels (e.g., below the line for bullish candles, above for bearish) or delayed entries after price returns to the retracement level and confirms trend continuation. Note that large candles often generate Fair Value Gaps (FVG), which should be considered when setting Stop Loss levels.
*Trend Strategies: Enable the trend filter to limit signals to those aligned with the dominant market direction. For example, in an uptrend, look for large bullish candles as continuation signals. The indicator can also be used for position pyramiding, adding positions as subsequent large candles confirm trend continuation.

Practical Approach:
*Large candles with high volume may indicate strong market participation, increasing signal reliability.
*The trend line helps visually assess market direction and confirm large candle signals.
*Retracement lines on signal candles aid in identifying key levels for Stop Loss or delayed entries.

█ NOTES
*The indicator works across all markets and timeframes due to its universal logic based on candle body size and relative positioning.
*Adjust settings (e.g., trend period, large candle multiplier, retracement level) to suit your trading style and timeframe.
*Test the indicator on various markets (stocks, forex, cryptocurrencies) and timeframes to optimize its performance.
*Use in conjunction with other technical analysis tools to enhance signal accuracy.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.