• Overview
  • Reviews
  • Comments (6)
  • What's new

VolumeDeltaM1 MT5

This indicator provides the analysis of tick volume deltas. It monitors up and down ticks and sums them up as separate volumes for buys and sells, as well as their delta volumes. In addition, it displays volumes by price clusters (cells) within a specified period of bars. This indicator is similar to VolumeDeltaMT5, which uses almost the same algorithms but does not process ticks and therefore cannot work on M1. This is the reason for VolumeDeltaM1 to exist. On the other hand, VolumeDeltaMT5 can show its signals on the history because it reads M1 volumes for calculations on higher timeframes, while VolumeDeltaM1 collects "tick" statistics on M1 online and can show signals only for the periods when the indicator was online and saved live data to special files (one file per day).

The indicator can work on any higher timeframe, by reading the data collected on M1. This mode only reads the file. To store new ticks to a file, it is still necessary to have an instance of the indicator on M1.

This is a limited substitution of market delta analysis based on real volumes, which are not available on Forex.

The indicator displays the following data in its sub-window:

  • light-blue histogram - buy (long) volumes;
  • orange histogram - sell (short) volumes;
  • light green histogram - delta between buys and sells;
  • green line - cumulative delta, EMA of delta; its values are multiplied by CumulativePeriod for scale adjustment - this makes it approximately the same size as the histograms;
  • blue and red arrows - mark those bars where volume direction contradicts price direction, that may be considered as a short-term signal for the next bar;

Also, the indicator displays a table of split volumes for the last CumulativePeriod bar in the main window. The table rows correspond to price clusters. The table contains the following columns:

  • price (a range of prices from specified value up to the next range);
  • sell volume;
  • delta of buy and sell volumes (positives are blue, negatives are red);
  • buy volume;
  • total volume (cells with values near the maximum one are highlighted in green).


Parameters

  • FileNamePrefix - name prefix of the file with ticks statistics; file name has the following structure: VDM1[T|P]-Prefix-Symbol-YYYYMMDD.csv; default - none, empty prefix; T or P denotes the Mode used (see below);
  • Mode - ticks, pips, real_volumes; in ticks mode, only the number of price changes is used; in pips mode, the size of every price change in pips is taken into account; real_volumes takes real volumes into account (if they are provided); default - ticks;
  • TesterReadOnlineData - default - false - means that the indicator works in tester similar to online mode; if set to true, the indicator reads data from existing csv files, which should be copied into tester/files folder from the MQL4/Files folder. This mode allows you to view real stats in the tester. NB: 0-th bar is always calculated based on generated ticks, but once it moves to the 1st position, its data is loaded from the file;
  • PointsPerCell - number of points forming a single price cluster; every cluster is shown as a row in a table with split volumes (this is a kind of "Time and Sales" feed); default value - 5;
  • CumulativePeriod - period for calculation of cumulative delta by EMA; default - 7;
  • ShowTable - show/hide the table with volume clusters; default - false;
  • ShowMark - show/hide price marks for clusters with maximal total volume (green) and maximal delta (yellow); default - false;
  • ShowAskBidInTable - highlight the table rows that correspond to current Ask and Bid prices; default - false;
  • Corner - corner of the main window to display the table; default value - top right corner;
  • CellWidth - width of the table cells; default - 40;
  • CellHeight - height of the table cells; default - 15;
  • ColorBG - table background color; default - black;
  • FontSize - table font size; default - 8;
  • Method - special selector for ticks categorization method, can be: ask_versus_bid (default) or ask_and_bid. It takes effect for tick volumes only (the parameter Mode should be set to ticks or pips, but not real_volumes). When set to ask_versus_bid, the volumes are considered for buy if Ask price increases, and considered for sell if Bid decreases. However, on some accounts the Bid changes occur more frequently than the Ask changes, which introduces a negative bias. To solve this problem, use ask_and_bid, which analyses the changes in the sum of Ask and Bid.

Supported timeframes: M1 (full-function mode), M5 and higher (reading data from M1).

No reviews
Version 1.5 - 2017.08.29
Added new mode of operation based on tick history. It is available only when the Mode parameter is set to real_volumes. Additionally, the number of bars for which to plot the volume graph should be specified in the new parameter UseTickHistory. If UseTickHistory is 0 (default), the indicator operates as before - it monitors new ticks online and saves them to a file. If UseTickHistory is larger than 0, tick history is requested for specified number of bars. Attention: the operation may take some time and additional memory.
Version 1.4 - 2017.06.20
- Removed the limit on working only on the M1 timeframe. The indicator can now work on any higher timeframe, by reading the data collected on M1. This mode is read-only. To collect and save ticks, it is necessary to have an instance of the indicator on M1.
- Added the Method parameter with the values ask_versus_bid (default) and ask_and_bid. It takes effect for tick volumes only (the parameter Mode should be set to ticks or pips, but not real_volumes). The value ask_versus_bid denotes the method used in the previous version. In this mode, the volumes are considered for buy if Ask price increases, and considered for sell if Bid decreases. However, on some accounts the Bid changes occur more frequently than the Ask changes, which introduces a negative bias. To solve this problem, use ask_and_bid, which analyses the changes in the sum of Ask and Bid.
Version 1.3 - 2016.12.27
Added operation mode based on the real volumes (real_volumes) for the 'Mode' parameter;
Fixed the error with incorrect display of the Ask and Bid prices in the table.