Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

haDifference - indicator for MetaTrader 5

Views:
3507
Rating:
(7)
Published:
2018.07.09 13:29
haDiff.mq5 (9.53 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Indicator Heikin-Ashi Difference calculates and displays as an oscillator the difference between the Open and Close prices of Heikin-Ashi candlesticks, a signal line being added. It can be used in combination with haOpen.

It has two parameters:

  • Signal period - signal line calculation period;
  • Signal Method - signal line calculation method.

Calculation:

HA Difference = (HAClose - HAOpen) / Point
Signal = MA(HA Difference, Period, Method)

where:

HAOpen = (PrevHAOpen + PrevHAClose) / 2.0
HAClose = (Open + High + Low + Close) / 4.0
  • HAClose - Heikin-Ashi candlestick closing price;
  • HAOpen - Heikin-Ashi candlestick opening price;
  • PrevHAClose - closing price of the previous Heikin-Ashi candlestick;
  • PrevHAOpen - opening price of the previous Heikin-Ashi candlestick;
  • MA - moving average with Signal period and Signal Method, based on the value of HA Difference.

Fig 1. Indicator Heikin-Ashi Difference

Fig 1. Indicator Heikin-Ashi Difference


Fig. 2. Indicator Heikin-Ashi Difference in combination with Heikin-Ashi Open

Fig. 2. Indicator Heikin-Ashi Difference in combination with Heikin-Ashi Open

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21038

haOpen haOpen

Indicator Heikin-Ashi Open.

Directional_Breakout Directional_Breakout

An indicator of the movement direction and stop.

IDWMA IDWMA

Indicator Inverse Distance Weighted Moving Average.

NMA NMA

Navel MA.