The Relative Strength Index, applied to standard deviation of price.
It's a simple indicator allows to measure the volatility. It can be applied to determine flat zones by analysis of the Bollinger Bands narrowing and expanding.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/161
This robot uses a random number generator to simulate simply tossing a coin to decide on the direction of each trade. It provides an example of a minimal expert advisor programmed in an object-oriented style. It also provides a basis for quantifying the value added by alternative methods of entry.Pipser