PROTECTED SOURCE SCRIPT
Aggiornato Enhanced Bar Count Indicator

The Enhanced Bar Count Indicator is a versatile tool designed for traders who follow price action methodologies, particularly those inspired by Al Brooks. Built for TradingView and optimized for 5-minute charts during Regular Trading Hours, this indicator combines bar counting with multiple analytical features to help traders identify key market moments, trends, and potential reversal points. While it excels on intraday timeframes, its customizable settings make it adaptable to various trading styles and timeframes.
Key Features
Bar Counting and Diamond Placement
At its core, the indicator numbers each bar starting from the beginning of the trading day, helping traders keep track of bar sequences without manual counting. It highlights specific bars—such as the 7th, 18th, 40th, 48th, 67th, and 73rd bars—with colored diamonds. These bars are significant in Al Brooks’ trading approach for identifying potential reversals or key price action setups:
Bar 7 (Purple Diamond): Occurring around 35 minutes into the session, this bar often marks the end of the initial market open phase, signaling potential opening reversals or the formation of double tops/bottoms.
Bar 18 (Green Diamond): Statistically significant for marking the high or low of the day, making it a critical point for assessing potential trend reversals.
Bar 40 (Red Diamond): Positioned around midday, this bar is often associated with reversal opportunities as the market shifts from morning to afternoon trading.
Bar 48 (Purple Diamond): Around 11:50 AM EST, this bar signals the start of the afternoon swing setup, offering opportunities for midday swing trades.
Bar 67 (Purple Diamond): Appearing in the last hour (around 2:35 PM EST), this bar is key for late-day swing setups, often used for end-of-day strategies like buy-the-close or sell-the-close.
Bar 73 (Purple Diamond): Tied to a 12:30 PM PDT (3:30 PM EST) setup, this bar is significant for US market traders as a late-session decision point for trend continuation or reversal.
This feature allows traders to spot these critical bars at a glance, aligning with Al Brooks’ methodology for intraday trading.
Customizable 10-Period EMA for Scalping
A customizable 10-period Exponential Moving Average (EMA) is included to help scalpers quickly assess short-term trends. By default, it’s set to 10 periods, but users can adjust both the period and color to suit their strategy. When the price is above the EMA, it suggests an uptrend; below it, a downtrend. Scalpers can use pullbacks to the EMA as potential entry points in the direction of the trend. While optimized for 2-minute charts, it also provides valuable context on 5-minute charts for intraday traders.
Multi-Timeframe 20-Period EMAs
To provide a broader trend perspective, the indicator plots 20-period EMAs from three different timeframes—5-minute, 15-minute, and 60-minute—directly on the chart. This allows traders to see how the trend aligns across multiple timeframes, which is crucial for confirming the strength and direction of a move. Each EMA is toggleable and color-coded:
Green for 5m
Orange for 15m
Red for 60m
For instance, if all three EMAs are sloping upwards, it reinforces a strong uptrend, increasing the probability of successful trades in that direction.
Inside/Outside Bar Detection
The indicator automatically detects and marks inside bars with an 'i' and outside bars with an 'O' above the respective bars. Inside bars (where the high is lower than the previous high and the low is higher than the previous low) often signal consolidation and potential breakouts. Outside bars (where the high is higher and the low is lower than the previous bar) indicate increased volatility and possible trend reversals or continuations. These markers help traders quickly spot these patterns, which are essential for timing entries and exits in both range-bound and trending markets.
50% Pullback Retracement
Dynamic support and resistance levels are provided through the 50% retracement (midpoint) of the current and previous day’s price ranges. These levels are plotted as horizontal lines:
A solid line for the current day’s midpoint.
A dashed line for the previous day’s midpoint.
The lines are color-coded—green if below the current price and red if above—helping traders visualize potential reversal or continuation zones. This feature aligns with Fibonacci retracement principles and is particularly useful for intraday traders looking to identify areas where price might stall or reverse.
Customization and Usage
All features in the indicator are toggleable, allowing traders to enable or disable them based on their preferences. The settings are organized into groups—such as 'Bar Counting,' '10 EMA Scalp,' and 'Multi-Timeframe EMAs'—for easy navigation. This flexibility ensures that the indicator can be tailored to various trading styles, from scalping to swing trading. Traders can experiment with different combinations of features to find what works best for their strategy.
The Enhanced Bar Count Indicator is a comprehensive tool that brings together bar counting, trend analysis, pattern recognition, and dynamic support/resistance levels. Inspired by Al Brooks’ price action methodology, it offers traders a multifaceted approach to analyzing the markets. With its customizable and toggleable features, it adapts to different trading styles and timeframes, making it a valuable addition to any trader’s toolkit. Best of all, it’s available for free to the TradingView community—feel free to explore, customize, and integrate it into your trading strategy.
Key Features
Bar Counting and Diamond Placement
At its core, the indicator numbers each bar starting from the beginning of the trading day, helping traders keep track of bar sequences without manual counting. It highlights specific bars—such as the 7th, 18th, 40th, 48th, 67th, and 73rd bars—with colored diamonds. These bars are significant in Al Brooks’ trading approach for identifying potential reversals or key price action setups:
Bar 7 (Purple Diamond): Occurring around 35 minutes into the session, this bar often marks the end of the initial market open phase, signaling potential opening reversals or the formation of double tops/bottoms.
Bar 18 (Green Diamond): Statistically significant for marking the high or low of the day, making it a critical point for assessing potential trend reversals.
Bar 40 (Red Diamond): Positioned around midday, this bar is often associated with reversal opportunities as the market shifts from morning to afternoon trading.
Bar 48 (Purple Diamond): Around 11:50 AM EST, this bar signals the start of the afternoon swing setup, offering opportunities for midday swing trades.
Bar 67 (Purple Diamond): Appearing in the last hour (around 2:35 PM EST), this bar is key for late-day swing setups, often used for end-of-day strategies like buy-the-close or sell-the-close.
Bar 73 (Purple Diamond): Tied to a 12:30 PM PDT (3:30 PM EST) setup, this bar is significant for US market traders as a late-session decision point for trend continuation or reversal.
This feature allows traders to spot these critical bars at a glance, aligning with Al Brooks’ methodology for intraday trading.
Customizable 10-Period EMA for Scalping
A customizable 10-period Exponential Moving Average (EMA) is included to help scalpers quickly assess short-term trends. By default, it’s set to 10 periods, but users can adjust both the period and color to suit their strategy. When the price is above the EMA, it suggests an uptrend; below it, a downtrend. Scalpers can use pullbacks to the EMA as potential entry points in the direction of the trend. While optimized for 2-minute charts, it also provides valuable context on 5-minute charts for intraday traders.
Multi-Timeframe 20-Period EMAs
To provide a broader trend perspective, the indicator plots 20-period EMAs from three different timeframes—5-minute, 15-minute, and 60-minute—directly on the chart. This allows traders to see how the trend aligns across multiple timeframes, which is crucial for confirming the strength and direction of a move. Each EMA is toggleable and color-coded:
Green for 5m
Orange for 15m
Red for 60m
For instance, if all three EMAs are sloping upwards, it reinforces a strong uptrend, increasing the probability of successful trades in that direction.
Inside/Outside Bar Detection
The indicator automatically detects and marks inside bars with an 'i' and outside bars with an 'O' above the respective bars. Inside bars (where the high is lower than the previous high and the low is higher than the previous low) often signal consolidation and potential breakouts. Outside bars (where the high is higher and the low is lower than the previous bar) indicate increased volatility and possible trend reversals or continuations. These markers help traders quickly spot these patterns, which are essential for timing entries and exits in both range-bound and trending markets.
50% Pullback Retracement
Dynamic support and resistance levels are provided through the 50% retracement (midpoint) of the current and previous day’s price ranges. These levels are plotted as horizontal lines:
A solid line for the current day’s midpoint.
A dashed line for the previous day’s midpoint.
The lines are color-coded—green if below the current price and red if above—helping traders visualize potential reversal or continuation zones. This feature aligns with Fibonacci retracement principles and is particularly useful for intraday traders looking to identify areas where price might stall or reverse.
Customization and Usage
All features in the indicator are toggleable, allowing traders to enable or disable them based on their preferences. The settings are organized into groups—such as 'Bar Counting,' '10 EMA Scalp,' and 'Multi-Timeframe EMAs'—for easy navigation. This flexibility ensures that the indicator can be tailored to various trading styles, from scalping to swing trading. Traders can experiment with different combinations of features to find what works best for their strategy.
The Enhanced Bar Count Indicator is a comprehensive tool that brings together bar counting, trend analysis, pattern recognition, and dynamic support/resistance levels. Inspired by Al Brooks’ price action methodology, it offers traders a multifaceted approach to analyzing the markets. With its customizable and toggleable features, it adapts to different trading styles and timeframes, making it a valuable addition to any trader’s toolkit. Best of all, it’s available for free to the TradingView community—feel free to explore, customize, and integrate it into your trading strategy.
Note di rilascio
Dark Mode AddedIntroduced a new Dark Mode feature. This update enhances the visibility of bar numbering and labels, making them easier to read when you’re using a dark chart background.
Important Note: Dark Mode is off by default to preserve the indicator’s original look. If you’re working with a dark chart background and notice that the bar numbering isn’t visible, you’ll need to turn Dark Mode on.
How to Enable Dark Mode:
Simply head to the indicator settings, find the ‘Enable Dark Mode’ option under the ‘Appearance’ group, and check the box to activate it.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.