This is a modified version of ZigZag indicator that draws lines with different colors depending on the price movement direction.

Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/57
ZigZag
The Zigzag indicator is a series of sections connecting significant tops and bottoms at the price plot.
Williams’ Percent Range (%R)
The Williams’ Percent Range Indicator (%R) is dynamic technical indicator, which determines whether the market is overbought/oversold.
Bulls Power
The Bulls Power Indicator measures the balance of the bulls strength.
FractalsPeriod
An indicator lets you specify the number of bars separately before and after the current High / Low (fractal) can.