The Tick Volume Indicator was invented by William Blau and has been
published in his book "Momentum, Direction and Divergence" (1995, page
The indicator starts with separating the upticks and downticks in each price bar. The resulting arrays are smoothed with DEMA (two-pass EMA with periods r and s subsequently). The raw TVI is calculated with the following formula:
DEMA(upticks) - DEMA(downticks)
TVI_Raw = 100 * ---------------------------------
DEMA(upticks) + DEMA(downticks)
... and the final TVI shape is made by additional EMA smoothing with a period of u.
Besides using TVI for divergence, I have found the change of TVI slope to be a very useful and precise
proxy for change in price direction, especially in periods of high volatility in
The indicator was implemented in MQL4 by Profitrader
many years ago, using all available buffers for calculations and
plotting a single line. I have found a few colored histogram versions
across the Net, all of them called the tvi.mq4 via iCustom() and all repaint because of poor coding. So I decided to make myself a proper
stand-alone histogram variant. 7 native buffers and 6 extra buffers (via
arrays) are used. It will never repaint.
Система состоит из двух советников, один выставляет любую заданную вами сетку ордеров, а второй закрывает ордера при получении прибыли.VR---SETKA
Советник основан на откатной теории ......