Indicator Name: ClusterDelta_#Imbalance
The #Imbalance indicator is designed to display trade imbalances in the trading process. The most common form of imbalance is a significant ratio between buyers and sellers (more than 3 to 1, 4 to 1 in any direction) or the complete absence of one of them.
The #Imbalance indicator is designed to display the most common types of imbalance, such as the ratio of buyers and sellers within the same price, and market imbalance type, when the Ask price is always higher than the Bid price.
The imbalance is clearly visible on the cluster chart, but this indicator was created for easy viewing them on the price chart.
Pay attention to the image below, here is a cluster chart in the Ask x Bid mode (on the left there are orders executed at the Ask price and above, on the right - at the Bid price and below)
In the left part in blue rectangles, positions 307 and 27 are marked as imbalance (307: 27 > 11) in the mode when the Ask price is higher than the Bid price. On the right side in the red square, the position 309x355 (is really not an imbalance, but just an example) to understand how shows an imbalance with mode when Ask price = Bid price
Description of graphic panel:
-
1 - authorization status (for more details on authorization, see the How to install and use indicators section)
- Ask:Bid Ratio - the indicator will analyze the ratio between buyers (Ask orders) and sellers (Bid orders) assuming that the ask and bid order must be greater than zero.
- Zero Side - the indicator will looks for the imbalances only where the ask or bid size is absent (=0) and it is not located on the high or low price of the candle
- Price Ask = Bid - the indicator will look for the imbalance when the Ask and Bid price is the same
- Price Ask > Bid - the indicator will look for the imbalance when the Ask price is above Bid price
2 - the name of the indicator and the instrument - the data source. Using Drag & Drop, you can move the panel along the chart (to activate the panel, you may need to double-click the mouse)
3 - the icon to Expand/Collapse graphic panel
4 (Type) - indicator building mode corresponding to the Type_Data input parameter. .
5 (Mode) - indicator building mode corresponding to the Calculate_Mode input parameter.
6 (Days) - the number of days to build the indicator corresponding to the History_In_Days input parameter. The value defines the number of days to display the indicator data. The "Load More History" button additionally loads the current amount of history (in days).
7 (Strike) - the range of volume values that is used to plot on the chart. The minimum value is defined by the The Lowest Strike Value parameter; to optimize the load, the minimum value of Ask or Bid size is set at 10 lots but the allowed minimum is 1. The maximum is defined on the actual data. In the graphical panel, the current values can be changed with the slider or by editing the value in the text fields.
8 (Ratio/10) - the Ratio size corresponding to the RatioK input parameter. The value of this parameter means a ratio to a value of 10 (i.e., a value of 40 means 40:10 or 4: 1). To change the Ratio parameter, you need to move the slider or change its value in the text field. After changing the value of this parameter, an additional button will appear to the right of the slider with a new value and a "?" - as a proposal to change the parameter. To apply a new value, click on this button (when you hover the mouse over the button, the "?" Sign will change to "!").
You can hide the panel completely from the screen with the "Z" button - pressing it again will return the panel display.
The F5 button allows you to reinitialize the coordinates of the panel based on the current size of the chart window (it helps if the panel has disappeared from the workspace). Please note that resetting coordinates will not display the panel that is already hidden by the Z button or by the input "GUI" parameter.
When adding an indicator to a chart, priority is given to the input parameters. However, after making changes to the settings through the graphic panel, the indicator takes the current parameters from the graphic panel when the timeframe changes. In some cases, removing and re-attaching an indicator will help to solve a specific problem.
Description of indicator inputs:
- HELP_URL (default value "https://clusterdelta.com/imbalance") - this is the URL where you can get the full description of the indicator.
- ChartInstrument - select a futures from the dropdown list as the source for data. Value AUTO causes automatic detection of the instrument by the MT ticker.
- MetaTrader_GMT - the GMT value of your Metatrader. In 95% of cases leave AUTO.
- Forex_Shift_mode (default value is "Auto") - defines a method for calculating the difference in the prices between futures and forex.
Possible values of the Forex_Shift_mode:
- Auto - the offset will be calculated based on the "High" and "Low" prices of the forex and futures bar.
- Manual - the offset will be set manually via the Forex_Shift variable
- Forex_Shift (default value is "0") -the number of points by which the indicator data will move up or down if the Forex_Shift_mode parameter is set to "Manual". This variable can be either greater than or less than zero. It is intended to take into account the forward points (the difference between the prices of the futures and the forex/spot).
- Type_Data (default value is "Volumes") - selection of a source for calculating and plotting the data
The possible values of Type_Data:
- Ask:Bid Ratio - the indicator will analyze the ratio between buyers (Ask orders) and sellers (Bid orders) assuming that the ask and bid order must be greater than zero.
- Zero Side - the indicator will looks for the imbalances only where the ask or bid size is absent (=0) and it is not located on the high or low price of the candle
- History_in_Days (default value is "5") - the number of days to plotting data.
- Calculate_Mode (default value is "Ask Equal Bid") - selection of a method for calculating the data
The possible values of Calculate_Mode:
- Ask Equal Bid - the indicator will look for the imbalance when the Ask and Bid price is the same
- Ask Above Bid - the indicator will look for the imbalance when the Ask price is above Bid price
- Min_Strike (default value is "60") - the minimum value of the largest volume in the Ask:Bid pair
- Max_Strike (default value is "0") - the maximum value of the largest volume in the Ask:Bid pair. If the value is "0", the maximum value will be found from the loaded data.
- The Lowest Strike value
- The Lowest Strike value (default value is "10") - the minimum value of the volume size to download from the server to optimize the load when working with the graphical panel. The minimum values is 1
- Other_Settings (value is "--- Period for calculations ") - just a text comment describing the parameters below
- Online_Mode (default value is "until_NOW") - defines how to load data
- until_NOW - load data until the current moment
- until_CustomLastDate - load data until time defined in Custom_LastDate
- Custom_LastDate (default value is "2021.01.01 00:00") - defines the end datetime to load data if the Online_Mode parameter is set to "until_CustomLastDate"
- AskImbalance_Color (default value is "LimeGreen") - the color for displaying imbalances objects where the Ask volume is greater than Bid Volume
- BidImbalance_Color (default value is "OrangeRed") - the color for displaying imbalances objects where the Bid volume is greater than Ask Volume
- CircleMaxRadius (default value is "36") - maximum circle radius. Used to scale different values.
- ReverseChart (default value is "false") - for reverse currency pairs with names that differ from "USD/JPY", "USD/CAD", "USD/CHF", the value must be "true" to flip indicator data according to the direction of the price chart
- DO_NOT_SET_ReverseChart (for"...for USD/JPY, USD/CAD, USD/CHF --") - the comment in the inputs about the information describe above
- Comment_On_TimeFrame (value is "(0-All, 1-M1, 2-M5, 4-M15, 8-M30, ") - a comment describing Only_On_TimeFrame parameter possible values
- Comment_On_TimeFrame_ (value is "16-H1, 32-H4, 64-D1) - can be mixed")
- Only_On_TimeFrame (default value is "0") - used to display data on specific timeframes. Since objects are plotted directly on the chart, the native "display" tab and the data in it are ignored. To apply a data to specific timeframes it is necessary to add the numbers of these timeframes (the numbers are indicated in the comment above). For all timeframes, leave "0", to display only on the M5 timeframe, put "2", and, for example, for only M30 and H1 timeframes, add 8 and 16 and insert the result (24) into the Only_On_TimeFrame value.
- Comment_Alert (default value is "--- Alert Settings ") - just a text comment describing the parameters below
- Alert_StrikeSize (default value is "0") - the size of the value after that the sound alert will be played. If the value is "0", it determines automatically based on the current parameters.
- Alert_Numbers (default value is "3") - the number of times to play the alert if it triggered.
- Alert_Interval_sec (default value is "10") - interval (in seconds) between alert plays
- Alert_Filename (default value is "alert2") - the name of the file to play (the .wav files are located in the МТ4 \ Sounds folder, you do not need to specify the .wav extension) if alert is triggered
- Alert_Color (default value is "Tomato") - color text of alert message
- GUI (default values is "true") - flag indicating the need to draw a graphical user interface (control panel)
- GUI_Hint - using the keyboard : press "Z" to show/hide a graphical control panel