Consecutive CandlesSummary
This indicator helps visualize short-term momentum by automatically drawing boxes around sequences of consecutive same-colored candles (bullish or bearish). It's designed to quickly highlight periods of sustained buying or selling pressure directly on your chart.
How it Works
Consecutive Candle Detection: The script monitors the chart bar by bar, tracking consecutive candles where close > open (bullish) or close < open (bearish).
Box Drawing: When a sequence of same-colored candles reaches a user-defined minimum length (default is 3) and this sequence is then broken by an opposite-colored candle or a doji, a box is drawn.
Box Boundaries:
The top of the box is set to the highest high price reached during the sequence.
The bottom of the box is set to the lowest low price reached during the sequence.
The left edge of the box aligns with the start time of the first candle in the sequence.
The right edge of the box aligns with the end time of the last candle in the sequence.
Stability: Uses xloc = xloc.bar_time to ensure boxes remain accurately anchored to the price bars when zooming or panning the chart.
Real-time Extension: For active sequences meeting the minimum length on the latest developing bar, the box is optionally extended to the right.
Features
Automatically identifies and boxes sequences of 3 or more (customizable) consecutive bullish candles.
Automatically identifies and boxes sequences of 3 or more (customizable) consecutive bearish candles.
Extends box in real-time for active qualifying sequences.
Customizable minimum candle count (>= 2).
Customizable colors for bullish/bearish boxes and borders.
Settings
You can customize the indicator via the Settings menu (gear icon):
Minimum Consecutive Candles: Define how many candles in a row are needed to draw a box (Default: 3).
Bullish Box Color: Set the fill color for boxes around bullish sequences.
Bearish Box Color: Set the fill color for boxes around bearish sequences.
Box Border Color: Set the color for the border of all boxes.
Potential Use Cases
Momentum Identification: Quickly spot periods of strong, uninterrupted buying or selling.
Exhaustion/Reversal Signals: Very long sequences might indicate potential exhaustion, setting up reversal opportunities.
Consolidation Breakouts: A box forming after a period of tight consolidation can highlight the range just before a potential breakout.
Confirmation: Use the boxes as confirmation for entries or exits based on momentum shifts.
Disclaimer: This indicator provides visual aids based on price action. It should not be used as a standalone trading system. Always use indicators in conjunction with your own analysis and risk management rules.
Indecisioncandle
IC breakoutThis indicator was implemented to detect indecision candles on a daily and 4-hour timeframe.
The settings of the indicator allow you to specify the maximum size (in percentage ) of the indecision candle, as well as the maximum price range (also in percentage ) between the low and the high of that indecision candle.
Moreover, as the title might indicate, the goal was not to only detect the indecision candles, but to get alerts (and information on the graph) when the high or low of an indecision candle is broken on the next block.
The alerts allow both merged and separate alerts.
The alert "1. IC breakout high/low" will be triggered for both a breakout under the previous low or above the previous high
The alert "2. IC breakout low" will be triggered only for a breakout under the previous low
The alert "3. IC breakout high" will be triggered only for breakout above the previous high
Leg Out & IndecisionDisplays Leg Outs & Indecission Candles.
Parameters can be adjusted:
- Length: the number of candles used for calculating the AVG body.
- Legout Scale: the scale factor of the legout based on the AVG. of previous lenght candles
- Indecission candles: Indecission candles which body are lower than % range of the candle