Liquidity Index for NT8

Liquidity is one the most important signals traders can pay attention in the market. It shows how market participants are feeding the price levels. It is not only with limit orders but also related with the speed that traders and institutions can answer for new price actions. Liquidity comes along with Volatility because they are proportional inversely and for the complete technical analysis over market movement, traders must watch both signals.
QuantWise Trading provide this indicator as open code, and we explain the original concept and its respective algorithm.

∆L= ∆V/∆P

Knowing that the liquidity variation is the volume variation over the price (in tocks) variation.
This calculation is based on the volume variation over the same price rage movement. First, we have to find the Volume EMA from the bars – range = 10 ticks. The fixed bar size serves as a denominator for the volume references.

Now we have the average volume, we can see if market is providing or taking liquidity to move the price more slowly or quickly. If we need more contacts to fill up the same price range, it means that we have more liquidity from the other side, impacting on the price movement.
To calculate the discrepancy around the average we use the standard deviation. This is a very significant value because it shows how far from the mean the new incoming MA values are. The next step for our process is to normalize this number to make it relative and easy interpretation.
For this case we can use the same method as RSI indicator.

Now we have values from 0 to 100 representing the scale for Liquidity Index. As values are approaching 100 we see market participants providing liquidity to the market and most likely the price will change in a small range. The opposite works the same, with low liquidity, we can expect the price can change more rapidly, forming longer bars, breaking previous highs or lows.
This is not a directional indicator but works very well with others that can give a side signal.

Created By mcosta72
NinjaTrader Version 8
File Size 8.0 KB
Create Date 09/21/2021
# of Downloads 2688

Importing to NinjaTrader 8 is Easy!

To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:

  1. Download the app or add-on file to your desktop
  2. From the NinjaTrader Control Center window, select the menu Tools > Import > NinjaScript Add-On…
  3. Select the downloaded file from your desktop


Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.