Imbalances Indicator

Created 24 Nov 2023 · Updated 09 Nov 2024

The Imbalances indicator is a Free NinjaTrader 8 indicator that highlights diagonal volume imbalances on both footprint charts and regular candlestick charts.

Prerequisites

To properly use this indicator you should have the following prerequisites available.


Description

Imbalance on a footprint or candlestick chart highlights the price levels where buy trade volume is in excess over sell trade volume. Diagonal Bid/Ask imbalance displays aggressive buy market orders lifting the offer and aggressive sell market orders hitting the bid.

You can specify the minimum ratio between buyers' and sellers' volume — for example, Ratio = 3 will show on the chart all the imbalances where the excess of buying over selling is above 300%.

Stacked Imbalances shows zones of multiple consecutive imbalances that occur on the bid or ask side. These zones are important support/resistance levels because they mark where participants aggressively wanted to get into the market — when the market retests those levels, the same participants may appear again. For example, getting stacked imbalances of 3 or more on top of one another is a good sign of strong pressure in the market, and that the market will continue in that direction.

Examples

Imbalances on a Footprint Chart

Adding the indicator to a footprint chart (e.g. MES) draws rectangles on each bid/ask level with a diagonal volume imbalance. With an imbalance ratio of 3 and a minimum imbalance volume of 100, the buy imbalance color is cyan and the sell imbalance color is magenta.

Imbalances on a footprint chart example
Click to enlarge
Imbalances on a Candlestick Chart

The indicator can also be added to a candlestick chart (e.g. a 2-minute chart), where it draws rectangles on price levels with diagonal imbalances — cyan for buy imbalances (ask side) and gold for sell imbalances (bid side).

Imbalances on a candlestick chart example
Click to enlarge
Stacked Imbalances

When Only Draw Stacked Imbalances is enabled, single (non-stacked) imbalances are filtered out. A rectangle drawn on a sell stacked imbalance can signal aggressive sellers stepping in — a signal to enter a short trade. The same coloring convention (cyan for buy/ask, gold for sell/bid) applies on both footprint and candlestick charts.

Stacked imbalances on a footprint chart
Click to enlarge
Stacked imbalances on a candlestick chart
Click to enlarge
Stacked Imbalances Zone Extension and Retest

After stacked sell imbalances form, price may reverse to retest the zone they define — visible on both footprint and candlestick charts.

Stacked imbalances zone extension on a footprint chart
Click to enlarge
Stacked imbalances zone extension on a candlestick chart
Click to enlarge
Trapped Traders Detection

A stacked sell imbalance can become "trapped" before the market reverses long — strong aggressive selling volume pushes the market down, but the market eventually reverses to the long side.

Trapped traders detection on a candlestick chart
Click to enlarge

Features

The Imbalances indicator has a set of unique features:

  • Free. The indicator is completely free to use.
  • Can be used on footprint charts or regular candlestick charts (time-based or price-based)
  • Highly customizable and can be adapted to a wide range of instruments
  • Can be run on historical data (TickReplay should be enabled)
  • Can expand rendering of stacked imbalance zones until retested by price, which can be used as a signal to enter a trade

Parameters

We always try to keep the parameters to a minimum.

License
LicenseThis is the free license key you get when you create an account on automated-trading.ch. After creating an account, copy your license key from the billing page. You need to set this parameter only once per month — once the license key is validated it will be remembered for the rest of the billing cycle.
General
Min Imbalance VolumeSets the minimum volume value on the strong side (bid/ask) to consider an imbalance.
Min Imbalance RatioSets the minimum ratio between the diagonal bid/ask volumes to consider an imbalance.
Stacked Imbalances
Max Imbalance Gap (Ticks)Sets a gap tolerance between stacked imbalance levels — multiple imbalances that aren't perfectly stacked (with tick gaps between them) are still considered a cluster of stacked imbalances if this parameter is higher than one.
Min Stacked Imbalance CountSets the minimum number of imbalances in a cluster of stacked imbalances — generally 3 or more.
Only Draw Stacked ImbalancesRestricts drawing to stacked imbalances only — no single imbalances will be drawn.
Draw Until RetestedExpands the drawing of stacked imbalances until price retests them.
Stop Extending @ New DayStops the zone's drawing from extending into a new day.
Mitigation Method Sets which method is used to consider an imbalance extension zone mitigated by price (after which it stops extending).
  • Bar Close: the zone is considered mitigated when a candle closes inside it
  • Zone Touched: the zone is considered mitigated as soon as price touches it, even with just a bar wick
Play Sound / Play Sound FilePlays a sound alert when a price bar closes with a stacked imbalance, and sets which .wav file is played.
Rendering
Buy ImbalancesColor used to draw buy-side (ask) imbalances.
Sell ImbalancesColor used to draw sell-side (bid) imbalances.
Render Opacity (1-100)Opacity used to render imbalances and retest zones.

Download & Installation Instructions

License Requirements

At automated-trading.ch you can choose to either purchase a monthly subscription to use our premium products, or use our free products without subscribing.

In both cases, you need to create an account so you can get a License you can use for both premium and free products.

To obtain your license, simply sign up and then get your license on the billing page.

Important: This is a Free product — no paid subscription is required to run it live, though creating an account is still required to get your license.
Download
Sign in to download this file.
Latest Version v1.4.0.0 · Published 1 year ago
This file was downloaded 3182 times. Last download was 3 hours ago.

You can also download this strategy — and every other automated-trading.ch strategy or indicator — anytime from your centralized Downloads page.

Installation Steps
1
Import the downloaded .zip file into NinjaTrader using the Import NinjaScript menu item.
2
Open a new chart window. Tick Replay can be checked or not — the indicator works seamlessly with or without it.
3
Right-click the chart and choose Indicators... to add the indicator to the chart.
4
Paste your license (found on the billing page) into the license parameter.
5
After adding the indicator to the chart, it runs on the chart's historical data first, then continues to run on live market data.

Frequently Asked Questions

General

Yes — if you have an idea that you believe can improve this indicator, use the contact page to send us a message.

No, the source code of the indicator is protected for copyright reasons.

No, this indicator only does rendering and doesn't provide data that can be used from within a strategy — check out our other strategies for one based on this same concept.

Yes, you can use this indicator without TickReplay, but bear in mind that in this case the indicator will not detect events on historical candles — it will only start detecting them on real-time volume and price data.

Release Notes

  • Tick Replay no longer needed; Added "Stop Extending @ New Day"; Added "Mitigation Method"

  • Added License check capabilities

  • Added Play Sound and Play Sound File parameters

  • First Release of the indicator
discord
Join our Discord community
Questions, feedback, or just want to chat with other traders? Come say hi.
Join Discord
Quick Facts
Platform NinjaTrader 8
Category Indicator
Plan Required Free
Latest Version v1.4.0.0
Last Updated 1 year ago
Downloads 3182