Dynamic Candle Balance Indicator (Binary)
Dynamic Candle Balance Indicator
The Dynamic Candle Balance Indicator is a powerful tool designed to identify imbalances in candle colors on a chart, which can indicate potential reversals or changes in market direction. This indicator is specifically developed for traders operating on short timeframes, such as 1-minute candles, and is particularly useful for identifying opportunities in binary options.
How to Use:
Set Parameters
Initial Position: Specify the number of initial candles to be considered for calculation.
Count: Determine the total number of candles to be analyzed, including the initial position.
Interpret Results:
Green: Indicates the number of bullish candles (where the closing price is higher than the opening price).
Red: Indicates the number of bearish candles (where the closing price is lower than the opening price).
Absent: Indicates the number of candles that were not considered due to the selected interval.
Performance Analysis:
The indicator calculates the percentage of green and red candles relative to the total number of analyzed candles, providing insights into market balance or imbalance.
Identify Trading Opportunities:
Significant imbalances between candle colors can indicate potential reversals or changes in market direction.
Traders can use this information to make informed decisions about their trading strategies, such as identifying entry or exit points.
Example:
In the last 40 candles, there were 13 green candles and 27 red candles, indicating a higher likelihood of the next candle being green.
Usage Tips:
The indicator is most effective when used on a 1-minute timeframe for binary options trading, especially during periods of high imbalance.
Adjust the parameters according to your trading strategy and the timeframe being analyzed.
Combine the Dynamic Candle Balance Indicator with other technical analysis tools to confirm trading signals.
Legal Disclaimer:
This indicator is provided for educational and informational purposes only. It represents a theory and should be used as part of a comprehensive trading strategy. Past performance is not indicative of future results. Traders should always conduct their own analysis before making trading decisions.
Try out the Dynamic Candle Balance Indicator and leverage its functionalities to identify trading opportunities on short-term charts, especially in 1-minute timeframes for binary options trading during periods of high imbalance. Remember to test the indicator on a practice account before using it on a real account.
Balance
Period Value ZonesPeriod Value Zones is designed to help traders understand where current value is being found by splitting the day into 3 key periods based on common reversal times recognized for intraday trading.
By splitting the day into 3 periods, we can more efficiently determine where short-term value lies by using only the data we consider relevant during these periods of time.
> Overview
This indicator is recommended for low timeframe trading during the New York RTH Session.
By only trading within this session, we can ensure that volume and volatility remain fairly consistent.
Within each Period, you will find on the chart:
Value Area Points from Previous period (Value High(VAH)/Value Low(VAL)/Point of Control(POC))
Volume Weighted Average Price (VWAP) Cloud, based on High and Low values during the period.
Value Zone based Potential Reversal Zones.
Additional Displays:
Potential Reversal Detection Signals with Invalidation Levels
Forward Plotted Key Market times.
> Components
• Value Area Points
VAH/VAL/POC are important volume profile points which display where the market has previously held value.
We use these specific levels as support and resistance to confirm direction by monitoring interactions between price and these important levels.
The VAH and VAL lines change colors based on price's interaction with them to confirm whether that level should be regarded as support or resistance.
• VWAP Cloud
VWAP is a common metric used to determine the strength of a trend, and provides a point to look for re-bid & re-offer.
When price breaks out of our Fixed Value zone, VWAP helps us determine further direction.
Also included is VWAP deviation bands, for traders who would prefer to view the standard deviation away from this cloud as well.
• Value Reversal Zones
These Zones are calculated based on extensions of the Period Value Zone.
While in a balanced market, these zones have been shown to provide potential reversal opportunities.
• Potential Reversal Signals
These signals are based on an advanced method for confirming a higher-low or lower-high to reasonably create a signal that is not very laggy but also rooted in sound logic.
While helpful, These are NOT buy or sell signals, and you should always use further analysis to decide the next steps to take.
When a signal appears, an associated invalidation level is also displayed, if this level is crossed the associated signal is no longer considered relevant.
• Key Market Times
These are important times within the day that normally produce volatility caused by daily market catalysts.
Each key time is forward plotted 1 hour before it occurs to provide a clear heads up for potential opportunity.
Opening Fuel: Known for having an increase in Volume after the formation of the 15min Opening Range.
1st Reversal: Common Area for seeing initial large positioning effecting the market, often causing reversals.
Initial Balance Close: End of the first hour, a common positioning tool for futures traders.
2nd Reversal: Positioning is typically reactionary to IB Close, alongside Euro Traders Exiting Positions.
Euro Close: Close of Europe Session, a common positioning tool for futures traders.
Lunch: Usually Low Volume, traders are often out to lunch.
Lunch End: Volume tends to re-enter, as traders come back from lunch.
1st Reversal: New Hour, common area to see large position re-enter the market.
Bonds Close: Bonds markets close, Equities reacting to close of the bond market.
1st MOC: Initial Market on Close orders are places, market reaction is normally expected off of MOC positioning.
MOC Close: As MOC orders are reported, volatility is likely found within the market.
> Methodology
This indicator can be used with the same principles as trading balanced volume profiles.
Rule 1: Unless the price breaks and holds Value High or Value Low, we should expect buyers and sellers to maintain the current balance.
Rule 2: If we break and push away from the Period Value High, we should treat that level as supportive on retest unless we look back below and sellers defend on retest.
Rule 3: If we break and push away from the Period Value Low, we should treat that level as resistance on retest unless we look back above and buyers defend on retest.
Rule 4: If we recover Value Low, and it becomes supportive, we look for our Period POC and Period Value High as our targets above.
Rule 5: If we fail to hold Period Value High, and it becomes resistance, we look for our Period POC and Period Value Low as targets below.
Balance in the context of this indicator is considered as the area between Period Value High and Period Value Low
Acceptance outside of balance in the context of this indicator is considered as Period Value Low or High, becoming supportive or resistance.
> Examples
Theoretical Example:
In the bullish example below, price holds VWAP and makes POC supportive, showing interest from buyers pushing to Value High.
Real-World Example:
Below is an example of the same setup as the theoretical example, taking place on a real futures chart.
By utilizing these rules, we can look for opportunities at these levels and have a plan for how we should be interacting with them.
This will help us determine likely targets and risk-off levels that are based on volume and current "value" from participants.
Central Banks Balance Sheets ROI% ChangeIntroducing the "Central Banks Balance Sheets ROI% Change" indicator, a tool designed to offer traders and analysts an understanding of global liquidity dynamics.
This indicator tracks the Return on Investment (ROI) percentage changes across major central banks' balance sheets, providing insights into shifts in global economic liquidity not tied to cumulative figures but through ROI calculations, capturing the pulse of overall economic dynamics.
Key Enhancements:
ROI Period Customization: Users can now adjust the ROI calculation period, offering flexibility to analyze short-term fluctuations or longer-term trends in central bank activities, aligning with their strategic time horizons.
Chart Offset Feature: This new functionality allows traders to shift the chart view, aiding in the alignment of data visualization with other indicators or specific analysis needs, enhancing interpretive clarity.
Central Bank Selection: With options to include or exclude data from specific central banks among the world's top 15 economies (with the exception of Mexico and the consolidation of the EU's central bank data), traders can tailor the analysis to their regional focus or diversification strategies.
US M2 Option: Recognizing the significance of the M2 money supply as a liquidity metric, this indicator offers an alternative view focusing solely on the US M2, allowing for a concentrated analysis of the US liquidity environment.
Comprehensive Coverage: The tool covers a wide array of central banks, including the Federal Reserve, People's Bank of China, European Central Bank, and more, ensuring a broad and inclusive perspective on global liquidity.
Visualization Enhancements: A histogram plot vividly distinguishes between positive and negative ROI changes, offering an intuitive grasp of liquidity expansions or contractions at a glance.
This indicator is a strategic tool designed for traders who seek to understand the undercurrents of market liquidity and its implications on global markets.
Whether you're assessing the impact of central bank policies, gauging economic health, or identifying investment opportunities, the "Central Banks Balance Sheets ROI% Change" indicator offers a critical lens through which to view the complex interplay of global liquidity factors.
Opening RangeThe opening range or first 30 minutes of trading during the day sets the tone and becomes an important reference through the rest of the day. Price will react as it reaches the high and low of the opening range.
Backtesting has shown that the strategies based on the opening range have merit and provide an edge in trading. By not being aware of these points of reference you put yourself at risk.
In addition to the opening range, the distance from the high or low of the opening range plus the width of the opening range forms another important reference point.
Opening Range Rules.
Price must break out of the opening range in order to have a trending day. As long as price is inside the opening range, expect the trade to be choppy.
Once price leaves the opening range the market can begin to trend. However, before it trends most times it will retest the boundary of the opening range. This is a critical point, and a better than average entry for a position to join the trend. However, if price closes back inside the opening range watch out. Re-entry to the opening range has a high probability of going to the middle of the opening range, and a better than average probability of crossing the entire opening range.
In the above chart we can see price broke below the opening range then returned to retest the opening range before beginning a downward trend that delivered 175 pts on NQ.
Upon re-entering the opening range price tried to break down again but ultimately traveled up until it hit the 50% mark of the opening range.
Once a trend has begun the first target is the green line which is 1 width of the opening range outside of the opening range.
Once price broke out of the opening range to the upside, it came back to retest the opening range high, before beginning an uptrend that delivered 120 pts on NQ.
VWAP Balance ZonesVWAP Balance Zones (VBZ) Is based on 3 concepts.
Many Traders use VWAP to help determine Price Trends.
Trends are typically identified by new Highs or new Lows.
Balanced is found when Supply and Demand are mostly Equal.
VBZ tracks the daily, weekly, and monthly highs and lows; Then plots the average (50%) between the VWAP and the respective extremes.
50% VWAP Zones can be considered significant since they attempt to identify the equilibrium between market participants within the current trend, serving as key reference points to consider for decision making. >While in an uptrend, Buyers may see price falling to the Hi 50% as an attractive value entry for the continuation upwards.
>While ALSO in an uptrend, Sellers may see price falling to the Hi 50% as a change in sentiment with more downwards movement on the way.
Because of these conflicting mindsets, these zones are thought to display areas of balance between buyers and sellers, which can serve as potential decision points throughout the day.
VBZ Draws Zones from the Daily (High/Low/Close) VWAPs and the Day's (High/Low/Close) extremes as seen below.
Technically speaking, an average between vwap and extreme is a single point, to make these into zones I am using multiple sources for vwap and tracking different points of the bar throughout the day (ex. Close VWAP & Daily Highest Close)
Weekly and Monthly are only displaying the Average Price between the VWAP and the (Weekly or Monthly) High/Low.
These hold up as important levels for speculation; however, since most action will be discovered at the daily zones, I am not displaying the zones for the Weekly and Monthly to keep noise to a minimum.
Unique Behaviors:
- Weekly values are hidden on the first day of the week since they are similar to the daily values on the first day of the week.
- Monthly values are hidden in the first week of the month for the same reason.
Initial Balance (customizable)Introducing the Initial Balance
Discover precision and clarity in your trading decisions with the Initial Balance. Crafted for traders who seek an edge, this tool pinpoints the range established during the first hour of the trading session, offering a holistic understanding of market sentiments right from the start.
Key Features:
Accurate Visualization: See the initial balance range plotted seamlessly on your chart, providing a transparent view of early market movement.
Customizable Timeframes: Whether you're an early bird catching the first market moves or prefer trading a bit later, set your own start time to fit your trading strategy.
Subtle Aesthetics: With non-intrusive lines and a customizable transparency setting, this indicator integrates smoothly with any chart, ensuring your view remains clear and undistracted.
Adaptable to Any Market: No matter your trading domain - be it stocks, forex, or commodities - this tool adjusts to offer valuable insights.
Why Use the Initial Balance Indicator?
Understanding the initial balance gives a trader the advantage of interpreting the day's potential trend. It's a reflection of early market consensus and serves as a foundation for the day's trading action. By leveraging this, you can better align your strategies with market momentum and improve your trading outcomes.
Add clarity and precision to your trading toolkit. Try the Initial Balance and elevate your trading insights.
On Balance Volume CrossoversCheck on balance volume but with crossover. You can choose the smoothing method, which is set by default to use the Volume Weighted Moving Average (bringing volume to the equation is always a good idea) but you can change to SMA, MA, EMA, ...
Hope you guys enjoy it and don't forget to rate it up! :)
I plan to include % from 0-100 OBV in here later! Stay tuned.
Feedback is cool.
Fed Net Liquidity Indicator v2Updated script for jlb05013's original Fed Net Liquidity Indicator. TradingView was bringing in the FRED data in different units than they used to. This code fixes it.
This indicator aims to present a "Net Liquidity" indicator comprised of the Fed Balance sheet , less the TGA account and Overnight Reverse REPO agreements.
Net Liquidity = Fed Balance Sheet - ( TGA + Reverse REPO)
This is an overlay that can be added to stock or other charts (like SPY ) to see how the market may appear correlated to Net Liquidity - injection of liquidity into the markets.
This was hypothesized by Max Anderson, this is just a script realizing that posting.
New updates include a resolution feature, and an option to offset backwards by 2 days per original intent.
MyBalanceThe purpose of this indicator is to give a quick snapshot of the balance between buyers and sellers. I've identified a few patterns which accurately indicate the market faze. If anyone identifies patterns or alternate uses, please share.
Fed Net Liquidity IndicatorThis indicator aims to present a "Net Liquidity" indicator comprised of the Fed Balance sheet , less the TGA account and Overnight Reverse REPO agreements.
Net Liquidity = Fed Balance Sheet - ( TGA + Reverse REPO)
This is an overlay that can be added to stock or other charts (like SPY ) to see how the market may appear correlated to Net Liquidity - injection of liquidity into the markets.
This was hypothesized by Max Anderson, this is just a script realizing that posting.
New updates include a resolution feature, and an option to offset backwards by 2 days per original intent.
Ichimoku ImbalanceYou may have heard the word balance or imbalance
This indicator is designed based on Ichimoku periods to display imbalances in each period
When you see a black mark, it means that one of the Ichimoku periods is saturated or unbalanced
If the current candle was equal to the lowest price on 9/26/52 of the last period and the highest price was equal to the last candle from left on 9/26/52 of the last period
If the current candle was equal to the highest price on 9/26/52 of the last period and the lowest price was equal to the last candle from right on 9/26/52 of the last period
This indicator is a useful and powerful tool for Ichimoku traders to understand overbought and oversold points in different time periods.
Note: This is an auxiliary tool and does not issue buy and sell signals
Combo 2/20 EMA & Bull And Bear Balance This is combo strategies for get a cumulative signal.
First strategy
This indicator plots 2/20 exponential moving average. For the Mov
Avg X 2/20 Indicator, the EMA bar will be painted when the Alert criteria is met.
Second strategy
This new indicator analyzes the balance between bullish and
bearish sentiment.
One can cay that it is an improved analogue of Elder Ray indicator.
To get more information please see "Bull And Bear Balance Indicator"
by Vadim Gimelfarb.
WARNING:
- For purpose educate only
- This script to change bars colors.
OPAL - LibraI publish my OBV script for Volumes analysis & Volumes switch spotting.
This indicator include : On Balance Volumes, 6 EMAs based on Volumes, Regular and Hidden divergences with double pivot confirmation
OBV Colors is gradient : momentums with power will turn to lighter colors, momentums without power will turn to darker colors
1) OBV : On Balance Volumes
On-balance volume (OBV) is a form of technical analysis which enables traders to make predictions about future price movements based on the asset’s previous trading volume
OBV is mostly used in shares trading, because the volume has an especially large influence on the way share prices move
Trading volume is the amount that an asset has been traded during a given time period
Traders who use OBV believe that a sharp increase in trading volume , without a reciprocal increase in the asset’s price, will cause the market price to suddenly increase or decrease
Calculation :
OBV is a cumulative result, which means that it is effectively a running total of an asset’s trading volume
The OBV is the total volume , and it accounts for both positive and negative changes in an asset’s trading volume
2) EMAs & Cloud :
A bunch of 6 EMAs adapted on volumes, the last of the 6 EMAs ( EMA 6) forms a colored cloud with the OBV Line
EMA 1 is the first filter for OBV colors
EMA6 is the last filter for OBV colors
3) Multi Divergences :
Divergence detection based on 2 pivot levels verification (taken from OPAL - Newton)
Plots Regular and Hidden Divergences
Filtered with EMA 6
4) Alerts:
Set alerts on Divergences, regular, hidden, or both
Set alerts on OBV fast Crosses with EMA 1
Set alerts on OBV slow Crosses with EMA 6
This might help you to see OBV (volumes) movements clearly, that is not a bounded indicator like RSI or stoch's
Stick with the trends)
Everything is customizable, all the settings are unlocked
Wishing you success !
<o/
IB + ExtensionsInitial Balance with Extensions.
Other traders have posted similar indicators. I wrote my own because I wanted additional features.
Features:
Supports up to 9 extensions. Default = 3.
Each extension is filled using an automatic gradient. Fill can be disabled if you like.
IB levels extend into the future to the end of the current session.
By default only the current IB levels are shown, but you can enable past IB's as well.
When showing past IB's, each session has a clean break - no awkward lines connecting one session to the other (this really annoyed me about other IB indicators!)
The IB midpoint is also supported. It is on by default, but can be disabled.
You may notice the midpoint of past IB's looks different than the current IB . There is a technical reason for this that I won't go into here. Ask if you want the full explanation.
NOTE: This indicator was designed for the crypto charts. It may have some rendering issues when used with other markets.
Auxiliary Equity Configurator (AXE)Auxiliary Equity Configurator (AXE) is a whole new level money management auxiliary that calculates statistically preferable lot based on the Account balance, Winning rate, Risk reward ratio, and Kelly multiplier configured a priori in the input panel.
On the chart, RR visualization bands, Expected balance history matrix in the worst successive trading loss (for displaying how many times you can trade with a given lot at simple/compound interest), and Info-table for the calculation details are shown.
Regarding RR visualization bands, whenever the Tolerable drawback input changes, the proper lot is calculated based on the given data. You can easily access how many lots you should possess and the take-profit/stop-loss price to set. A tolerable drawback can be placed in the quoted currency rate of the displayed chart, except the forex and part of CFD symbols (Gold, Silver, Platinum, WTI oil, Brent oil, Natural gas, and more in the future!) that is valued in Pips. Parameters are configurable in suit with the broker you are using. Also, RR visualization bands are brilliantly interactive, thanks to pine v5 interactive scripts.
The currency for Account balance and Tolerable drawback is automatically converted to USD for internal calculation; therefore, no mess-ups around thinking currency value conversion whatsoever! The design for each tool is highly customizable, too.
Unleash yourself from consuming the colossal amount of time thinking of money management with AXE!
Initial BalanceThis script calculates and draws the initial balance price levels which can be really interesting for intraday activities.
Note: Obviously, you need to wait for the calculation period to finish in order to see your daily levels
The tool includes the following options
Customization of the session used to calculate the initial balance (default 0930-1030)
Show/Hide the calculation period (as a background color)
Show/Hide extra levels (report the IBH-IBL delta above and under the IB area)
Show/Hide intermediate levels (displays 50% price levels in the IB and extra areas)
Show labels (Display levels names as well as their price on corresponding lines)
Levels names:
- IBH (Initial Balance High)
- IBH (Initial Balance Low)
- IBM (Initial Balance Middle)
- IBH x2
- IBL x2
Default colors are green for high levels, red for low levels, and orange for intermediate levels
Extend levels (extends the current levels to left/right/both/none sides of the chart)
NSDT Initial BalanceInitial Balance indicator plots the high and low of the first hour of US Futures Market session. Very useful for trading breakouts after market open. Also added range midline and background shading to identify first hour. Times are adjustable. All objects can be modified.
Initial Balance (IB) and Previous Day / Week High, Low & ClosePlots Historical key levels for volume profile idea.
Plots the following:
- Previous Day High
- Previous Day Low
- Previous Day Close
- Previous Day IB High
- Previous Day IB Low
- Current Days IB High
- Current Days IB Low
IB is based on first hour of trading.
Made specifically for ASX stocks, have not tested it on other exchanges or assets.
US Indices Cash Initial BalanceThis indicator plots the Cash Initial Balance for the ES, YM, NQ.
The Cash Initial Balance for US indices is the high & low from 9:30-10:30 ET, the first hour after the NYSE open.
ORB - Opening Range BreakoutThis script plots the high/low of any custom session and extends it until the daily close. It does not show on the timeframe higher than the length of custom opening session by default.
The time period of opening range & the max timeframe to display it on can be adjusted from the settings.
So for eg. if want to use 5m ORB to trade, then set "ORB total time" as 5min & "Session Time" as whatever is the opening 5mins time period of ticker that are trading.
Indicator: On Balance True RangeThis is original indicator by Thomas Bieravic from a book of "Trading Systems and Methods" (Wiley Trading) 6th Edition by Perry J. Kaufman.
The author was change volume on true range in formula and added signal line for analyze of volatility.
Enjoy it!
PseT Initial Balance Range (IBR)The Initial Balance is the range high and low printed on the first hour of the session.
It's meant for intraday trading and can be used as support/resistance.
Bar Balance [LucF]Bar Balance extracts the number of up, down and neutral intrabars contained in each chart bar, revealing information on the strength of price movement. It can display stacked columns representing raw up/down/neutral intrabar counts, or an up/down balance line which can be calculated and visualized in many different ways.
WARNING: This is an analysis tool that works on historical bars only. It does not show any realtime information, and thus cannot be used to issue alerts or for automated trading. When realtime bars elapse, the indicator will require a browser refresh, a change to its Inputs or to the chart's timeframe/symbol to recalculate and display information on those elapsed bars. Once a trader understands this, the indicator can be used advantageously to make discretionary trading decisions.
Traders used to work with my Delta Volume Columns Pro will feel right at home in this indicator's Inputs . It has lots of options, allowing it to be used in many different ways. If you value the bar balance information this indicator mines, I hope you will find the time required to master the use of Bar Balance well worth the investment.
█ OVERVIEW
The indicator has two modes: Columns and Line .
Columns
• In Columns mode you can display stacked Up/Down/Neutral columns.
• The "Up" section represents the count of intrabars where `close > open`, "Down" where `close < open` and "Neutral" where `close = open`.
• The Up section always appears above the centerline, the Down section below. The Neutral section overlaps the centerline, split halfway above and below it.
The Up and Down sections start where the Neutral section ends, when there is one.
• The Up and Down sections can be colored independently using 7 different methods.
• The signal line plotted in Line mode can also be displayed in Columns mode.
Line
• Displays a single balance line using a zero centerline.
• A variable number of independent methods can be used to calculate the line (6), determine its color (5), and color the fill (5).
You can thus evaluate the state of 3 different components with this single line.
• A "Divergence Levels" feature will use the line to automatically draw expanding levels on divergence events.
Features available in both modes
• The color of all components can be selected from 15 base colors, with 16 gradient levels used for each base color in the indicator's gradients.
• A zero line can show a 6-state aggregate value of the three main volume balance modes.
• The background can be colored using any of 5 different methods.
• Chart bars can be colored using 5 different methods.
• Divergence and large neutral count ratio events can be shown in either Columns or Line mode, calculated in one of 4 different methods.
• Markers on 6 different conditions can be displayed.
█ CONCEPTS
Intrabar inspection
Intrabar inspection means the indicator looks at lower timeframe bars ( intrabars ) making up a given chart bar to gather its information. If your chart is on a 1-hour timeframe and the intrabar resolution determined by the indicator is 5 minutes, then 12 intrabars will be analyzed for each chart bar and the count of up/down/neutral intrabars among those will be tallied.
Bar Balances and calculation methods
The indicator uses a variety of methods to evaluate bar balance and to derive other calculations from them:
1. Balance on Bar : Uses the relative importance of instant Up and Down counts on the bar.
2. Balance Averages : Uses the difference between the EMAs of Up and Down counts.
3. Balance Momentum : Starts by calculating, separately for both Up and Down counts, the difference between the same EMAs used in Balance Averages and an SMA of double the period used for the EMAs. These differences are then aggregated and finally, a bounded momentum of that aggregate is calculated using RSI.
4. Markers Bias : It sums the bull/bear occurrences of the four previous markers over a user-defined period (the default is 14).
5. Combined Balances : This is the aggregate of the instant bull/bear bias of the three main bar balances.
6. Dual Up/Down Averages : This is a display mode showing the EMA calculated for each of the Up and Down counts.
Interpretation of neutral intrabars
What do neutral intrabars mean? When price does not change during a bar, it can be because there is simply no interest in the market, or because of a perfect balance between buyers and sellers. The latter being more improbable, Bar Balance assumes that neutral bars reveal a lack of interest, which entails uncertainty. That is the reason why the option is provided to interpret ratios of neutral intrabars greater than 50% as divergences. It is also the rationale behind the option to dampen signal lines on the inverse ratio of neutral intrabars, so that zero intrabars do not affect the signal, and progressively larger proportions of neutral intrabars will reduce the signal's amplitude, as the balance calcs using the up/down counts lose significance. The impact of the dampening will vary with markets. Weaker markets such as cryptos will often contain greater numbers of neutral intrabars, so dampening the Line in that sector will have a greater impact than in more liquid markets.
█ FEATURES
1 — Columns
• While the size of the Up/Down columns always represents their respective importance on the bar, their coloring mode is independent. The default setup uses a standard coloring mode where the Up/Down columns over/under the zero line are always in the bull/bear color with a higher intensity for the winning side. Six other coloring modes allow you to pack more information in the columns. When choosing to color the top columns using a bull/bear gradient on Balance Averages, for example, you will end up with bull/bear colored tops. In order for the color of the bottom columns to continue to show the instant bar balance, you can then choose the "Up/Down Ratio on Bar — Dual Solid Colors" coloring mode to make those bars the color of the winning side for that bar.
• Line mode shows only the line, but Columns mode allows displaying the line along with it. If the scale of the line is different than that of the scale of the columns, the line will often appear flat. Traders may find even a flat line useful as its bull/bear colors will be easily distinguishable.
2 — Line
• The default setup for Line mode uses a calculation on "Balance Momentum", with a fill on the longer-term "Balance Averages" and a line color based on the "Markers Bias". With the background set on "Line vs Divergence Levels" and the zero line on the hard-coded "Combined Bar Balances", you have access to five distinct sources of information at a glance, to which you can add divergences, divergences levels and chart bar coloring. This provides powerful potential in displaying bar balance information.
• When no columns are displayed, Line mode can show the full scale of whichever line you choose to calculate because the columns' scale no longer interferes with the line's scale.
• Note that when "Balance on Bar" is selected, the Neutral count is also displayed as a ratio of the balance line. This is the only instance where the Neutral count is displayed in Line mode.
• The "Dual Up/Down Averages" is an exception as it displays two lines: one average for the Up counts and another for the Down counts. This mode will be most useful when Columns are also displayed, as it provides a reference for the top and bottom columns.
3 — Zero Line
The zero line can be colored using two methods, both based on the Combined Balances, i.e., the aggregate of the instant bull/bear bias of the three main bar balances.
• In "Six-state Dual Color Gradient" mode, a dot appears on every bar. Its color reflects the bull/bear state of the Combined Balances, and the dot's brightness reflects the tally of balance biases.
• In "Dual Solid Colors (All Bull/All Bear Only)" a dot only appears when all three balances are either bullish or bearish. The resulting pattern is identical to that of Marker 1.
4 — Divergences
• Divergences are displayed as a small circle at the top of the scale. Four different types of divergence events can be detected. Divergences occur whenever the bull/bear bias of the method used diverges with the bar's price direction.
• An option allows you to include in divergence events instances where the count of neutral intrabars exceeds 50% of the total intrabar count.
• The divergence levels are dynamic levels that automatically build from the line's values on divergence events. On consecutive divergences, the levels will expand, creating a channel. This implementation of the divergence levels corresponds to my view that divergences indicate anomalies, hesitations, points of uncertainty if you will. It excludes any association of a pre-determined bullish/bearish bias to divergences. Accordingly, the levels merely take note of divergence events and mark those points in time with levels. Traders then have a reference point from which they can evaluate further movement. The bull/bear/neutral colors used to plot the levels are also congruent with this view in that they are determined by price's position relative to the levels, which is how I think divergences can be put to the most effective use.
5 — Background
• The background can show a bull/bear gradient on four different calculations. You can adjust its brightness to make its visual importance proportional to how you use it in your analysis.
6 — Chart bars
• Chart bars can be colored using five different methods.
• You have the option of emptying the body of bars where volume does not increase, as does my TLD indicator, the idea behind this being that movement on bars where volume does not increase is less relevant.
7 — Intrabar Resolution
You can choose between three modes. Two of them are automatic and one is manual:
a) Fast, Longer history, Auto-Steps (~12 intrabars) : Optimized for speed and deeper history. Uses an average minimum of 12 intrabars.
b) More Precise, Shorter History Auto-Steps (~24 intrabars) : Uses finer intrabar resolution. It is slower and provides less history. Uses an average minimum of 24 intrabars.
c) Fixed : Uses the fixed resolution of your choice.
Auto-Steps calculations vary for 24/7 and conventional markets in order to achieve the proper target of minimum intrabars.
You can choose to view the intrabar resolution currently used to calculate delta volume. It is the default.
The proper selection of the intrabar resolution is important. It must achieve maximal granularity to produce precise results while not unduly slowing down calculations, or worse, causing runtime errors.
8 — Markers
Six markers are available:
1. Combined Balances Agreement : All three Bar Balances are either bullish or bearish.
2. Up or Down % Agrees With Bar : An up marker will appear when the percentage of up intrabars in an up chart bar is greater than the specified percentage. Conditions mirror to down bars.
3. Divergence confirmations By Price : One of the four types of balance calculations can be used to detect divergences with price. Confirmations occur when the bar following the divergence confirms the balance bias. Note that the divergence events used here do not include neutral intrabar events.
4. Balance Transitions : Bull/bear transitions of the selected balance.
5. Markers Bias Transitions : Bull/bear transitions of the Markers Bias.
6. Divergence Confirmations By Line : Marks points where the line first breaches a divergence level.
Markers appear when the condition is detected, without delay. Since nothing is plotted in realtime, markers do not appear on the realtime bar.
9 — Settings
• Two modes can be selected to dampen the line on the ratio of neutral intrabars.
• A distinct weight can be attributed to the count of the latter half of intrabars, on the assumption that later intrabars may be more important in determining the outcome of chart bars.
• Allows control over the periods of the different moving averages used in calculations.
• The default periods used for the various calculations define the following hierarchy from slow to fast:
Balance Averages: 50,
Balance Momentum: 20,
Dual Up/Down Averages: 20,
Marker Bias: 10.
█ LIMITATIONS
• This script uses a special characteristic of the `security()` function allowing the inspection of intrabars—which is not officially supported by TradingView.
• The method used does not work on the realtime bar—only on historical bars.
• The indicator only works on some chart resolutions: 3, 5, 10, 15 and 30 minutes, 1, 2, 4, 6, and 12 hours, 1 day, 1 week and 1 month. The script’s code can be modified to run on other resolutions, but chart resolutions must be divisible by the lower resolution used for intrabars and the stepping mechanism could require adaptation.
• When using the "Line vs Divergence Levels — Dual Color Gradient" color mode to fill the line, background or chart bars, keep in mind that a line calculation mode must be defined for it to work, as it determines gradients on the movement of the line relative to divergence levels. If the line is hidden, it will not work.
• When the difference between the chart’s resolution and the intrabar resolution is too great, runtime errors will occur. The Auto-Steps selection mechanisms should avoid this.
• Alerts do not work reliably when `security()` is used at intrabar resolutions. Accordingly, no alerts are configured in the indicator.
• The color model used in the indicator provides for fancy visuals that come at a price; when you change values in Inputs , it can take 20 seconds for the changes to materialize. Luckily, once your color setup is complete, the color model does not have a large performance impact, as in normal operation the `security()` calls will become the most important factor in determining response time. Also, once in a while a runtime error will occur when you change inputs. Just making another change will usually bring the indicator back up.
█ RAMBLINGS
Is this thing useful?
I'll let you decide. Bar Balance acts somewhat like an X-Ray on bars. The intrabars it analyzes are no secret; one can simply change the chart's resolution to see the same intrabars the indicator uses. What the indicator brings to traders is the precise count of up/down/neutral intrabars and, more importantly, the calculations it derives from them to present the information in a way that can make it easier to use in trading decisions.
How reliable is Bar Balance information?
By the same token that an up bar does not guarantee that more up bars will follow, future price movements cannot be inferred from the mere count of up/down/neutral intrabars. Price movement during any chart bar for which, let's say, 12 intrabars are analyzed, could be due to only one of those intrabars. One can thus easily see how only relying on bar balance information could be very misleading. The rationale behind Bar Balance is that when the information mined for multiple chart bars is aggregated, it can provide insight into the history behind chart bars, and thus some bias as to the strength of movements. An up chart bar where 11/12 intrabars are also up is assumed to be stronger than the same up bar where only 2/12 intrabars are up. This logic is not bulletproof, and sometimes Bar Balance will stray. Also, keep in mind that balance lines do not represent price momentum as RSI would. Bar Balance calculations have no idea where price is. Their perspective, like that of any historian, is very limited, constrained that it is to the narrow universe of up/down/neutral intrabar counts. You will thus see instances where price is moving up while Balance Momentum, for example, is moving down. When Bar Balance performs as intended, this indicates that the rally is weakening, which does necessarily imply that price will reverse. Occasionally, price will merrily continue to advance on weakening strength.
Divergences
Most of the divergence detection methods used here rely on a difference between the bias of a calculation involving a multi-bar average and a given bar's price direction. When using "Bar Balance on Bar" however, only the bar's balance and price movement are used. This is the default mode.
As usual, divergences are points of interest because they reveal imbalances, which may or may not become turning points. I do not share the overwhelming enthusiasm traders have for the purported ability of bullish/bearish divergences to indicate imminent reversals.
Superfluity
In "The Bed of Procrustes", Nassim Nicholas Taleb writes: To bankrupt a fool, give him information . Bar Balance can display lots of information. While learning to use a new indicator inevitably requires an adaptation period where we put it through its paces and try out all its options, once you have become used to Bar Balance and decide to adopt it, rigorously eliminate the components you don't use and configure the remaining ones so their visual prominence reflects their relative importance in your analysis. I tried to provide flexible options for traders to control this indicator's visuals for that exact reason—not for window dressing.
█ NOTES
For traders
• To avoid misleading traders who don't read script descriptions, the indicator shows nothing in the realtime bar.
• The Data Window shows key values for the indicator.
• All gradients used in this indicator determine their brightness intensities using advances/declines in the signal—not their relative position in a fixed scale.
• Note that because of the way gradients are optimized internally, changing their brightness will sometimes require bringing down the value a few steps before you see an impact.
• Because this indicator does not use volume, it will work on all markets.
For coders
• For those interested in gradients, this script uses an advanced version of the Advance/Decline gradient function from the PineCoders Color Gradient (16 colors) Framework . It allows more precise control over the range, steps and min/max values of the gradients.
• I use the PineCoders Coding Conventions for Pine to write my scripts.
• I used functions modified from the PineCoders MTF Selection Framework for the selection of timeframes.
█ THANKS TO:
— alexgrover who helped me think through the dampening method used to attenuate signal lines on high ratios of neutral intrabars.
— A guy called Kuan who commented on a Backtest Rookies presentation of their Volume Profile indicator . The technique I use to inspect intrabars is derived from Kuan's code.
— theheirophant , my partner in the exploration of the sometimes weird abysses of `security()`’s behavior at intrabar resolutions.
— midtownsk8rguy , my brilliant companion in mining the depths of Pine graphics. He is also the co-author of the PineCoders Color Gradient Frameworks .