Smart Bar Counter with Alerts🚀 Smart Bar Counter with Alerts 🚀
-----------------------------------------------------
Overview
-----------------------------------------------------
Ever wanted to count a specific number of bars from a key point on your chart—such as after a Break of Structure (BOS), the start of a new trading session, or from any point of interest— without having to stare at the screen?
This "Smart Bar Counter" indicator was created to solve this exact problem. It's a simple yet powerful tool that allows you to define a custom "Start Point" and a "Target Bar Count." Once the target count is reached, it can trigger an Alert to notify you immediately.
-----------------------------------------------------
Key Features
-----------------------------------------------------
• Manual Start Point: Precisely select the date and time from which you want the count to begin, offering maximum flexibility in your analysis.
• Custom Bar Target: Define exactly how many bars you want to count, whether it's 50, 100, or 200 bars.
• On-Chart Display: A running count is displayed on each bar after the start time, allowing you to visually track the progress.
• Automatic Alerts: Set up alerts to be notified via TradingView's various channels (pop-up, mobile app, email) once the target count is reached.
-----------------------------------------------------
How to Use
-----------------------------------------------------
1. Add this indicator to your chart.
2. Go to the indicator's Settings (Gear Icon ⚙️).
- Select Start Time: Set the date and time you wish to begin counting.
- Number of Bars to Count: Input your target number.
3. Set up the Alert ( Very Important! ).
- Right-click on the chart > Select " Add alert ."
- In the " Condition " dropdown, select this indicator: Smart Bar Counter with Alerts .
- In the next dropdown, choose the available alert condition.
- Set " Options " to Once Per Bar Close .
- Choose your desired notification methods under " Alert Actions ."
- Click " Create ."
-----------------------------------------------------
Use Cases
-----------------------------------------------------
• Post-Event Analysis: Count bars after a key event like a Break of Structure (BOS) or Change of Character (CHoCH) to observe subsequent price action.
• Time-based Analysis: Use it to count bars after a market open for a specific session (e.g., London, New York).
• Strategy Backtesting: Useful for testing trading rules that are based on time or a specific number of bars.
-----------------------------------------------------
Final Words
-----------------------------------------------------
Hope you find this indicator useful for your analysis and trading strategies! Feel free to leave comments or suggestions below.
Candlecounter
Engulfing Candle with Streaks and CountIdentifies Engulfing Candles + The Number of Consecutive Signals + Identifies 3rd/4th Consecutive Signals + Keeps Count of Most Recent Number of Signals as Decided by User.
- Have coded in the latest version 6
- This script allows the tracking of engulfing candles over a user defined amount of time (candles).
- The script will signal every engulfing candle and its consecutive corresponding number across the entire chart.
- The Engulfing Count box in the bottom right counts how many bullish and bearish engulfing candles have occurred over the number decided by the user.
- The Engulfing Signal that prints is triggered when an opposite next candle prints and the body is over 100% larger than the previous candle. It does not need to "fully engulf" the previous candle, the coding has an allowance for an "equal to and greater/smaller than" the previous close price. This allows for signals were the open of the engulfing candle can be equal to the close of the previous opposite, however the engulfing still must reach an over 100% sizing of the previous to print a signal.
- Where a piercing candle occurs and the open price is within the body of the previous candle, this will void the equation and no matter how big the candle is, it will not trigger an engulfing signal as I was only looking for true engulfing candles.
- The script keeps count of the same consecutive signals no matter the timeframe.
- It will print the consecutive number above or below the signal (depending if bullish or bearish).
- To assist with trend identification the 3rd consecutive signal will print blue, and the 4th consecutive signal will print yellow (or I prefer to use the term "Gold"). This can help filter out the noise on lower timeframes to assist to see where the momentum is going, or if there are signals going against the trend to try trick traders.
- Back testing I found the 3rd and 4th signals are uncommon on higher timeframes and tend to act as fake-outs before the trend reverses.
- Overall a good tool to add to your trend analysis, either for additional confluence or to assist with reversal identification.
- Colors are set as default, but everything can be changed by the user as I didn't want to limit its possibilities.
*** Please note that this script does not take into any consideration candle wicks. Although it can be used with Heikin Ashi it is somewhat unreliable. This indicator is designed to be used with standard candles only ***