The indicator shows the difference in the estimated values of the current bar and the previous bar.
Estimated value is the difference between the arithmetic mean and geometric mean of the price.
The price is calculated according to the formula: (O+H+L+C)/4, where О — bar Open price, Н — bar High price, L — bar Low price, С — bar Close price.
The indicator settings:

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/16147
VATicks
Class for working with ticks in the MetaTrader 4. It is suitable for creating experts that make decisions on trading based on the analysis of tick data.
Indicator for monitoring the lot and profit
The indicator displays the total lot and profit for the current instrument.