Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

Views:
6963
Rating:
votes: 31
Published:
2010.01.26 11:29
Updated:
2018.07.25 17:12
bulls.mq5 (3.56 KB)view

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:

  • moving average is a price agreement between sellers and buyers for a certain period of time,
  • the highest price displays the maximum buyers' power within the day.

On these premises, Elder developed Bulls Power as the difference between the highest price and 13-period exponential moving average (HIGH - EMA).

Application

This indicator is better to use together with a trend indicator (most frequently Moving Average):

  • if trend indicator is down-directed and the Bulls Power index is above zero, but falling, it is a signal to sell;
  • it is desirable that, in this case, the divergence of peaks were being formed in the indicator chart.

Bulls Power

Calculation:

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).

BULLS = HIGH - EMA

where:

  • BULLS - Bulls' Power;
  • HIGH - the highest price of the current bar;
  • EMA - Exponential Moving Average.

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

ZigZagColor ZigZagColor

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

ZigZag ZigZag

The Zigzag indicator is a series of sections connecting significant tops and bottoms at the price plot.

FractalsPeriod FractalsPeriod

An indicator lets you specify the number of bars separately before and after the current High / Low (fractal) can.

SphereSample SphereSample

The script illustrates control of graphic objects using the classes from the Standard Library.