Everyday trading represents a battle of buyers ("Bulls") pushing prices up and sellers ("Bears") pushing prices down. Depending on what party scores off, the day will end with a price that is higher or lower than that of the previous day. Intermediate results, first of all the highest and lowest price, allow to judge about how the battle was developing during the day.
It is very important to be able to estimate the Bulls Power balance since changes in this balance initially signalize about possible trend reversal. This task can be solved using the Bulls Power oscillator developed by Alexander Elder and described in his book "Trading for a Living: Psychology, Trading Tactics, Money Management". Elder based on the following premises when deducing this oscillator:
On these premises, Elder developed Bulls Power as the difference between the highest price and 13-period exponential moving average (HIGH - EMA).
This indicator is better to use together with a trend indicator (most frequently Moving Average):
The first stage of this indicator calculation is calculation of the exponential moving average (as a rule, it is recommended to use the 13-period EMA).
In the up-trend, HIGH is higher than EMA, so the Bulls Power is above zero and histogram is located above zero line. If HIGH falls under EMA when prices fall, the Bulls Power becomes below zero and its histogram falls under zero line.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/16
This is a modified version of ZigZag indicator that draws lines with different colors depending on the price movement direction.ZigZag
The Zigzag indicator is a series of sections connecting significant tops and bottoms at the price plot.