OPEN-SOURCE SCRIPT
TechniTrend: CandleMetrics

๐ฆOverview
The TechniTrend: CandleMetrics Indicator is a powerful tool designed to give traders an in-depth analysis of candlestick structures. This indicator allows users to identify potential reversal points, trend continuations, and other crucial market behaviors by examining key ratios between candle componentsโsuch as body, shadow, and overall rangeโalongside volume conditions. The advanced filtering options offer flexibility for both novice and experienced traders, enabling tailored setups to suit different trading strategies.
๐ฆKey Features
๐ธCustomizable Ratios: Set thresholds for Body-to-Range, Shadow-to-Range, Upper Shadow-to-Range, and Lower Shadow-to-Range ratios.
๐ธVolume-Based Filters: Integrate volume conditions to strengthen the reliability of signals.
๐ธFlexible Conditions: Choose whether filters should work independently or in combination, allowing for precise pattern identification.
๐ธVisual Markers: Mark potential signals with a distinct background color and symbols on the chart.
๐ธAlerts: Receive notifications for each selected condition, ensuring you never miss an opportunity.
๐ฆHow It Works
The CandleMetrics Indicator operates by analyzing the relationship between different components of each candlestick, combined with volume data to determine the strength of signals. Hereโs a detailed breakdown of each feature:
๐ธBody to Range Ratio:
This filter compares the size of the candle's body to its total range (from high to low).
Example Setting: If youโre interested in spotting candles with small bodies relative to their total range, you might set the Body-to-Range Ratio to โLess than 0.3.โ
๐ธShadow to Range Ratio:
This examines the combined size of both shadows (upper and lower) relative to the entire candle range.
Example Setting: Use a Shadow-to-Range Ratio set to โMore than 0.8โ to find candles with significant wick lengths, suggesting market indecision.
๐ธUpper Shadow to Range Ratio:
This filter assesses the proportion of the upper shadow (wick) in relation to the candleโs full range.
Example Setting: โLess than 0.05โ can help identify situations where the upper shadow is minimal, indicating strong downward pressure.
๐ธLower Shadow to Range Ratio:
It measures the lower shadow compared to the entire candle range.
Example Setting: โMore than 0.7โ is useful for detecting potential rejection patterns at lower prices, hinting at a possible bullish reversal.
๐ธVolume Filter:
Integrates volume data to verify the reliability of each candle pattern.
Example Setting: Apply a Volume Filter Length of 100 with an SMA type to smooth volume data over a longer period, filtering out short-term noise and focusing on significant volume shifts.
๐ฆCombining Filters
The indicator offers an option to Combine Filters. When this setting is enabled, all selected conditions must be met simultaneously for a candle to be marked. If disabled, each condition functions independently, allowing more flexibility in detecting diverse patterns.
๐ฆExamples & Use Cases
๐ธExample 1: Spotting Reversal Opportunities
I used the following configuration to find potential bullish reversals:
Upper Shadow to Range Ratio: โLess than 0.05โ โ Looking for candles with almost no upper shadow.
Lower Shadow to Range Ratio: โMore than 0.7โ โ Highlighting candles with a significant lower shadow.
Volume Filter Length: 100 with SMA.
This setup effectively highlights candles where price rejection is happening at lower levels, suggesting a potential trend reversal to the upside.
๐ธExample 2: Detecting Market Uncertainty
If you want to focus on candles showing market hesitation, try:
Shadow to Range Ratio: โMore than 0.85โ โ Emphasizing long-wick candles that could indicate indecision.
Disable Combine Filters to allow flexibility, marking any candle meeting the above criteria.
๐ฆDetailed Explanation of Each Option
Hereโs a clear and concise breakdown of each option for a better understanding:
1. Body to Range Ratio
Purpose: This ratio shows how significant the candle's body is compared to its overall range. A smaller body-to-range ratio can indicate a potential reversal if the market appears indecisive.
How to Use: Increase the ratio to filter for stronger trend candles; decrease it to identify reversal or indecision candles.
2. Shadow to Range Ratio
Purpose: This filter captures the size of both shadows relative to the candle's total range. A larger ratio often points to market hesitation, while a smaller ratio suggests a decisive move.
How to Use: Adjust this filter to focus on candles with long wicks (indecision) or short wicks (decisiveness).
3. Upper Shadow to Range Ratio
Purpose: Helps to identify candles with strong downward moves by focusing on the upper wick length. A small upper shadow can imply sellers' dominance.
How to Use: Lower the ratio to detect candles with minimal upward rejection.
4. Lower Shadow to Range Ratio
Purpose: Targets candles with strong buying pressure by analyzing the lower shadow. A larger lower shadow may indicate a bullish reversal.
How to Use: Increase the ratio to spot rejection candles with significant lower shadows.
5. Volume Filter
Purpose: Adds a volume component to verify the validity of each candlestick pattern. Higher-than-average volume often signifies the strength of a move.
How to Use: Adjust the filter length and type to smooth out volume fluctuations based on your trading timeframe.
๐ฆIndicator Alerts
Each filter has its own alert configuration, enabling traders to stay updated on market conditions that meet their selected criteria. You can customize alerts to trigger whenever a condition is met, helping to manage trades even when away from the screen.
The TechniTrend: CandleMetrics Indicator is a powerful tool designed to give traders an in-depth analysis of candlestick structures. This indicator allows users to identify potential reversal points, trend continuations, and other crucial market behaviors by examining key ratios between candle componentsโsuch as body, shadow, and overall rangeโalongside volume conditions. The advanced filtering options offer flexibility for both novice and experienced traders, enabling tailored setups to suit different trading strategies.
๐ฆKey Features
๐ธCustomizable Ratios: Set thresholds for Body-to-Range, Shadow-to-Range, Upper Shadow-to-Range, and Lower Shadow-to-Range ratios.
๐ธVolume-Based Filters: Integrate volume conditions to strengthen the reliability of signals.
๐ธFlexible Conditions: Choose whether filters should work independently or in combination, allowing for precise pattern identification.
๐ธVisual Markers: Mark potential signals with a distinct background color and symbols on the chart.
๐ธAlerts: Receive notifications for each selected condition, ensuring you never miss an opportunity.
๐ฆHow It Works
The CandleMetrics Indicator operates by analyzing the relationship between different components of each candlestick, combined with volume data to determine the strength of signals. Hereโs a detailed breakdown of each feature:
๐ธBody to Range Ratio:
This filter compares the size of the candle's body to its total range (from high to low).
Example Setting: If youโre interested in spotting candles with small bodies relative to their total range, you might set the Body-to-Range Ratio to โLess than 0.3.โ
๐ธShadow to Range Ratio:
This examines the combined size of both shadows (upper and lower) relative to the entire candle range.
Example Setting: Use a Shadow-to-Range Ratio set to โMore than 0.8โ to find candles with significant wick lengths, suggesting market indecision.
๐ธUpper Shadow to Range Ratio:
This filter assesses the proportion of the upper shadow (wick) in relation to the candleโs full range.
Example Setting: โLess than 0.05โ can help identify situations where the upper shadow is minimal, indicating strong downward pressure.
๐ธLower Shadow to Range Ratio:
It measures the lower shadow compared to the entire candle range.
Example Setting: โMore than 0.7โ is useful for detecting potential rejection patterns at lower prices, hinting at a possible bullish reversal.
๐ธVolume Filter:
Integrates volume data to verify the reliability of each candle pattern.
Example Setting: Apply a Volume Filter Length of 100 with an SMA type to smooth volume data over a longer period, filtering out short-term noise and focusing on significant volume shifts.
๐ฆCombining Filters
The indicator offers an option to Combine Filters. When this setting is enabled, all selected conditions must be met simultaneously for a candle to be marked. If disabled, each condition functions independently, allowing more flexibility in detecting diverse patterns.
๐ฆExamples & Use Cases
๐ธExample 1: Spotting Reversal Opportunities
I used the following configuration to find potential bullish reversals:
Upper Shadow to Range Ratio: โLess than 0.05โ โ Looking for candles with almost no upper shadow.
Lower Shadow to Range Ratio: โMore than 0.7โ โ Highlighting candles with a significant lower shadow.
Volume Filter Length: 100 with SMA.
This setup effectively highlights candles where price rejection is happening at lower levels, suggesting a potential trend reversal to the upside.
๐ธExample 2: Detecting Market Uncertainty
If you want to focus on candles showing market hesitation, try:
Shadow to Range Ratio: โMore than 0.85โ โ Emphasizing long-wick candles that could indicate indecision.
Disable Combine Filters to allow flexibility, marking any candle meeting the above criteria.
๐ฆDetailed Explanation of Each Option
Hereโs a clear and concise breakdown of each option for a better understanding:
1. Body to Range Ratio
Purpose: This ratio shows how significant the candle's body is compared to its overall range. A smaller body-to-range ratio can indicate a potential reversal if the market appears indecisive.
How to Use: Increase the ratio to filter for stronger trend candles; decrease it to identify reversal or indecision candles.
2. Shadow to Range Ratio
Purpose: This filter captures the size of both shadows relative to the candle's total range. A larger ratio often points to market hesitation, while a smaller ratio suggests a decisive move.
How to Use: Adjust this filter to focus on candles with long wicks (indecision) or short wicks (decisiveness).
3. Upper Shadow to Range Ratio
Purpose: Helps to identify candles with strong downward moves by focusing on the upper wick length. A small upper shadow can imply sellers' dominance.
How to Use: Lower the ratio to detect candles with minimal upward rejection.
4. Lower Shadow to Range Ratio
Purpose: Targets candles with strong buying pressure by analyzing the lower shadow. A larger lower shadow may indicate a bullish reversal.
How to Use: Increase the ratio to spot rejection candles with significant lower shadows.
5. Volume Filter
Purpose: Adds a volume component to verify the validity of each candlestick pattern. Higher-than-average volume often signifies the strength of a move.
How to Use: Adjust the filter length and type to smooth out volume fluctuations based on your trading timeframe.
๐ฆIndicator Alerts
Each filter has its own alert configuration, enabling traders to stay updated on market conditions that meet their selected criteria. You can customize alerts to trigger whenever a condition is met, helping to manage trades even when away from the screen.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.