Introducing Liquidity Tracker indicator

Serg
Posts: 113
Joined: Mon Jun 11, 2018 12:40 pm
Has thanked: 15 times
Been thanked: 35 times

Introducing Liquidity Tracker indicator

Post by Serg » Wed Jan 16, 2019 1:42 pm

Here is one of the simple, but long requested indicators. Since Bookmap is all about market depth, then why not... But Bookmap is also about real market data, which isn't 1 minute or 1 hour bars, so unlike other trading platforms it allows unlimited time granularity and takes into account the entire full market depth.

What does it show
It shows various portions of Bid and Ask order book according to user selected configurations. Because different configurations may involve different number of price levels (up to the full market depth), it would be difficult to compare the summation of the order book sizes within different settings. Therefore the indicator allows to normalize the result according to the settings. If corresponding checkbox is selected, the output is the average order book size per price level within selected configuration. Think of it as an array of weights which has different length and shape according to the settings, but the sum of all weights is always 1 (100%). To clarify, this averaging is done over the involved price levels and according to weights defined by the computation mode. It has nothing common with averaging over time, so it doesn't cause any lag (if you wish to smooth the lines over time, configure the "Smooth" option). For instance, if you use "Number of price levels uniformly mode" with 10 levels, the indicator will show the sum of 10 levels divided by 10. If you switch to 5 levels, it will show sum of 5 levels divided by 5. This allows to change the settings, switch between computation modes, and compare the values on the same scale even if you switch into computation of all available price levels. Note that if you deselect "average per price level", the indicator will reload each time when you change the settings. This will not be needed soon, after we will allow backward computations with market depth (in development).


How to import Liquidity Tracker into Bookmap
Download its jar file here into, for instance, 'C:\Bookmap\MyAPICustomModules/' folder. In Bookmap click Settings->Strategies->Add... and select the jar file, select the indicator, and click Load. Then enable it with a checkbox on the left side and click on the Liquidity Tracker button to view or adjust its settings. You should see something like this:

01.png
01.png (442.05 KiB) Viewed 23188 times
For more detailed instructions on how to import API modules into Bookmap, please review this post. Also, please review API Requirements, limitations, and known bugs.


Configurations
All the configuration items are supposed to be self explaining. Exponential half-life parameter means that the weights given to price levels are gradually exponentially decaying farther from the market (best bid or ask) while the weight of the size at the first (best) price level is always 1 (i.e. 100%) and then drops by half every <half-life> number of levels. For instance, within half-life parameter of 10, the weights will be the following:
  • level=0 (best price), weight=100%
  • level=10, weight = 50%
  • level=20, weight = 25%
  • level=30, weight = 12.5%, and so on...
  • level=N, weight = exp(-log(2)*N/halflife)
One remark: while the first two options (all available price levels uniformly and exponentially) technically compute the entire order book, due to dynamic implementation, they are least expensive in terms of computation complexity. In other words feel free to set the exponential half-life parameter to 100 price levels or more while setting computation frequency every 50 milliseconds.


Your feedback, bugs report or improvement requests will be much appreciated.
Best,
Bookmap team

PS: Here is a challenge: explain this perfect correlation where the settings are:
  • All available price levels uniformly
  • "Display average per price level" deselected
  • Smoothing disabled (zero lag)
01.png
01.png (442.05 KiB) Viewed 23188 times
Limitations
It does not recalculate backwards when added and when settings are changed. Historical market depth is already supported by API, so only the indicator need / will be updated accordingly.
Attachments
03.png
03.png (298.65 KiB) Viewed 23188 times
02.png
02.png (265.41 KiB) Viewed 23188 times

SuperDriveGuy
Posts: 67
Joined: Thu Nov 01, 2018 1:50 pm
Has thanked: 38 times
Been thanked: 9 times

Re: Introducing Liquidity Tracker indicator

Post by SuperDriveGuy » Mon Jan 21, 2019 9:25 am

Hi Serg,
I get the following error whilst trying to load this indicator.
LiquidityTrackerError.jpg
LiquidityTrackerError.jpg (96.89 KiB) Viewed 23131 times
Attachments
LiquidityTrackerError_BMVersion.jpg
LiquidityTrackerError_BMVersion.jpg (21.58 KiB) Viewed 23131 times

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Introducing Liquidity Tracker indicator

Post by Andry API support » Mon Jan 21, 2019 11:10 am

Hi SuperDriveGuy,
Build rithmic-mbo-api-89c7b62cfe is a bit outdated for this indicator.
The newer build is being tested at the moment. It will be available for downloading within a couple of days.

flow_test
Posts: 1
Joined: Sun Nov 18, 2018 3:51 pm

Re: Introducing Liquidity Tracker indicator

Post by flow_test » Tue Feb 05, 2019 3:07 am

Excited to see the updates! Having a sleek and simple visualization tool for the whole order book will be eye-opening for many traders. I'm particularly hopeful that the individual bid & ask lines are shown well in future updates.

agan1337
Posts: 10
Joined: Tue Dec 10, 2019 9:31 pm
Been thanked: 1 time

Re: Introducing Liquidity Tracker indicator

Post by agan1337 » Wed Jun 03, 2020 4:30 pm

Hello Serg,

Looks very interesting.
Thank you very much !!!!
I try trade with it and it's helps

Best Regards !

AG

agan1337
Posts: 10
Joined: Tue Dec 10, 2019 9:31 pm
Been thanked: 1 time

Re: Introducing Liquidity Tracker indicator

Post by agan1337 » Thu Jun 04, 2020 4:06 pm

Hello Serg
Q. After some time on the chart indicator looks like remember some value  - if you scroll chart up/down indicator start to show different value (Diff line) - Is it a bug ?
Q.I setup Line.Width to 1 px. On screen it looks like 4 px
Same time in my custom indicators in attachment I been able to get 1px on primary screen (hard-coded)
Is it a limitation of BM or possible to fix?
Q.Bid/Ask Line - How accurate on your opinion cross lines confirm direction change?
Can  it be considered like price swing ?

Thank you

AG
 
Attachments
Capture2.JPG
Capture2.JPG (181.25 KiB) Viewed 10726 times

nocciolate
Posts: 1
Joined: Sat Sep 12, 2020 10:07 am

Re: Introducing Liquidity Tracker indicator

Post by nocciolate » Sat Sep 12, 2020 10:11 am

Hi, I keep getting the following error message. Can anyone help? Below the actual code copy-pasted.

I have the following configuration: window 10, 7.1 BM version, digital+ subscription, liquidity tracker free, binance data feed.

java.lang.NullPointerException
    at com.bookmap.api.lt.c.m.a(SourceFile:44)
    at com.bookmap.api.lt.c.f.accept(SourceFile:43)
    at com.bookmap.api.lt.a.a(SourceFile:159)
    at com.bookmap.api.lt.b.b.b(SourceFile:2054)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

 

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: Introducing Liquidity Tracker indicator

Post by Andry API support » Mon Sep 14, 2020 5:41 am

Hi nocciolate,
what is your build number?
Bookmap > Help > About... > Version: 7.1.0 build:???

Post Reply