# Level ll data on chart

This functionality allows to actualize the possibility to represent the structure of changing of Level II on 1 Tick Chart. The functionality becomes available after activation of checkbox 'Order Flow surface':

![](https://1243456536-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMCqxhh2XAdWPUjcvxR%2F-MiQ7pa1ljDV-vwCZZKR%2F-MiQASVz02S2HgAXzuvm%2Flevel2.gif?alt=media\&token=e1890c5c-24c5-44dd-8cdc-279e19516fac)

The checkbox synchronizes with the same checkbox in the chart settings.

{% hint style="warning" %}
This feature is available only for 1 Tick aggregation.
{% endhint %}

In checkbox 'Order Flow surface', the default state is false, the checkbox is available only if 'Value' = 1, otherwise the checkbox is disabled.

Other place for activating functionality is the menu Setting -> Data style (only for 1 tick aggregation).

![](https://1243456536-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMCqxhh2XAdWPUjcvxR%2F-LMm7mJGt3yZmYe7s8LB%2F-LMm8nDISPCD8fRuLmW6%2F37.png?alt=media\&token=998d8f73-15be-43dd-9f48-53940e817595)

If 'Order Flow surface' is active, the rest of settings becomes available.

* Aggregation mode – combobox allows to indicate a method that determines how the maximum value of volume is calculated:

Auto - in this mode, the system independently calculates the maximum volume from the incoming level 2 data. This value is used while drawing a histogram. Auto mode is set by default.

Custom - in this mode, the user indicates the maximum value by himself.

* Value – numeric for custom maximal value. Numerics becomes available only when Aggregation mode = custom.
* Number of levels – numeric, by default = 5, min = 1, max = without limit, Step = 1. This numeric allows to indicate how many levels of Level II have to be shown on a chart.
* Font, Font color – allows to choose font style.
* Show volume markers – the default state of the checkbox is false, when this checkbox is activated, controls 'Font', 'Color', 'Area' are activated. This setting enables to display the volume markers on the Y axis. These markers show the current volume value at each level of Market depth.&#x20;

![](https://1243456536-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMCqxhh2XAdWPUjcvxR%2F-MiQAcnl-QRltqxAjw_t%2F-MiQAv6iPvV33qHhUo-Z%2Flevel2-2.gif?alt=media\&token=ed91d580-89a1-429f-9bc5-4db6b0cd1401)

The field is depicted in proportion to the maximum value.

Sell limit orders are depicted from the initial level down.

Buy limit orders are depicted from the initial level up.

**Histogram building**

Histogram building occurs in real time from the moment when the checkbox 'Order Flow surface' is activated. The redrawing of the histogram occurs after the emergence of a new quote, i.e. at the moment of its drawing. Building of a histogram does not depend on the Data type of a chart. Zooming of a chart does not change the functionality. The histogram which is built should have a lower Z-Index than the chart itself.

In the settings there is a combobox 'Coloring scheme' with two states - 'Histogram' and 'Gradient'.

![](https://1243456536-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMCqxhh2XAdWPUjcvxR%2F-LMm7mJGt3yZmYe7s8LB%2F-LMm9H_bnGr7XvPBEA-7%2F39.png?alt=media\&token=3a0ba63b-c45a-459c-917a-b5f961731f2e)

&#x20;The example of Gradient coloring scheme is shown above.​

![](https://1243456536-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMCqxhh2XAdWPUjcvxR%2F-LMm7mJGt3yZmYe7s8LB%2F-LMm9W8VyCYuVGdo9ilw%2F40.png?alt=media\&token=3147d352-ee60-4e0a-ba92-8df265b2e8a1)

* Limit orders - сolorpickers, default values for Buy limit - blue, for Sell limit - red.
* New limit order - the coloring occurs when the volume changes one time at this level, for example, if at the level of 2000 there is a volume of 200 lots and if at some time at this level the volume changes to 202 - at this moment coloring New limit order should occur. Default values for New buy limit - another shade of blue, New sell limit - another shade of red.

The example of Histogram coloring scheme is shown below:​

![](https://1243456536-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LMCqxhh2XAdWPUjcvxR%2F-MiQB3gHBUW5y_KiyCvq%2F-MiQBaHhDuF0kCZlCFrM%2Flevel2-3.gif?alt=media\&token=71f81c95-c2b6-459a-9535-a3e768f9e72e)
