The indicator allows you to analyze the deltas of tick volumes. It tracks the up and down ticks and calculates the tick volumes for purchases and sales (separately), as well as their difference. In addition, it displays volumes broken down by price clusters (cells) within the specified period of bars. This indicator is similar to VolumeDeltaMT5 (it uses almost the same algorithms, but does not process ticks and therefore cannot be used on M1). This is why VolumeDeltaM1 was created. On the other hand, VolumeDeltaMT5 can show data on any history, since it reads volumes from M1 and translates them to higher timeframes, and VolumeDeltaM1 collects statistics of ticks online on M1 and can display its data only for those periods where ticks were collected and stored in special files (one file per day).
The indicator can work on higher timeframes by reading the data collected on M1. In this case, only reading from the file is performed, and to write new ticks to the file, you still need to have an instance of the indicator on M1.
This is a limited replacement for market delta analysis, which is traditionally based on real volumes, but they are not available in Forex.
This is a limited replacement for market delta analysis, which is traditionally based on real volumes, but they are not available in Forex.
[spoiler title=”Read More…”]
The indicator displays graphs of the following data in its subwindow:
- light blue histogram – purchase volumes;
- orange histogram – sales volumes;
- light green histogram – the difference between purchases and sales;
- the green line is the cumulative delta, smoothed by the EMA difference; it is increased by a CumulativePeriod of times to maintain a roughly equal scale with the histograms;
- blue and red arrows-mark those bars where the direction of the volume delta contradicts the direction of the price, which can serve as a signal for short-term trading on the next bar.
The indicator also displays a table of split volumes for the last CumulativePeriod bars in the main window. The table rows correspond to the price clusters. The table contains the following columns:
- price (range from the specified value to the next one at the top);
- sales volume;
- delta between purchases and sales (positive-blue, negative-red);
- purchase volume;
- total volume (cells with values near the maximum are highlighted in green).
- FileNamePrefix-prefix in the file name with tick statistics; the file name has the structure: VDM1[T|P] – Prefix-Symbol-YYYYMMDD.csv; by default-empty; T or P means the Mode used (see below);
- Mode – ticks, pips, real_volumes; in ticks mode, only the number of price changes is counted, in pips mode, the size of each change in points is taken into account; real_volumes-real volumes are read (if they are broadcast); by default-ticks;
- TesterReadOnlineData-by default-false, which means working in the tester is similar to online; if set to true, the indicator reads data from existing csv files, which should be copied to tester/files from MQL4/Files. This mode allows you to see real data in the tester. Attention: the 0th bar is always recalculated based on the generated ticks, but at the moment when it becomes the first, the data for it is read from the file;
- PointsPerCell – the number of points in one price cluster; each cluster is displayed as a separate row in the table of split volumes (this is a kind of analog of the Time and Sales feed); by default-5;
- CumulativePeriod – cumulative delta calculation period, EMA; default-7;
- ShowTable – enable / disable cluster table output; default-false;
- ShowMark-enable / disable the output of price labels for clusters with the maximum total volume (green) and the maximum delta (yellow); by default, false;
- ShowAskBidInTable-enable highlighting of the table rows corresponding to the current Ask and Bid prices; by default – false;
- Corner – the corner of the main window where the table will be displayed; by default, the upper – right corner;
- cellWidth – the width of the table cells; by default-40;
- cellHeight – height of table cells; default – 15;
- ColorBG – table background color; default-black;
- FontSize – font size in the table; default is 8;
- Method-switch for the method of categorizing ticks; valid values are ask_versus_bid (by default) and ask_and_bid; it has an effect only for tick volumes (the Mode parameter must be equal to ticks or pips, but not real_volumes). When set to ask_versus_bid, the volumes refer to buying when the ask price increases and selling when the bid price decreases. However, on some accounts, bid price changes are broadcast more often than ask, which leads to a downward bias. To solve this problem, you can choose the ask_and_bid option, which analyzes changes in the ask and bid amounts.
Valid timeframes: M1 (full-function mode), M5 and higher (reading data from M1).
[/spoiler]