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

Difference2 - indicator for MetaTrader 5

Views:
2798
Rating:
(7)
Published:
2018.06.18 13:55
Difference2.mq5 (8.14 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Indicator Difference2 shows the difference between the current price and the price as of N periods ago, as a histogram.

Unlike the first version of Difference, where the difference is shown between the values of bar prices (High - Low or Close - Open) now and as of N periods ago, this version shows the difference between the Applied prices as of now and as of N periods ago.

It has three input parameters:

  • Period - period;
  • Calculation type - type of calculations:
    • Absolute - calculations in absolute values;
    • Relative - calculations in relative values.
  • Applied price - price used for calculations.

Calculations:

Calculation type = Absolute:

Difference[i] = Price[i] - Price[i-Period]

Calculation type = Relative:

Difference[i] = 100*(Price[i] - Price[i-Period])/Price[i-Period]

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

DI DI

Oscillator DI (Damping Index) is designed for identifying the damping of the directed market movement.

Modified Moving Averages Modified Moving Averages

A slightly modified EA from the standard delivery: MQL5\Experts\Examples\Moving Average\Moving Average

Divergence_Candles Divergence_Candles

Indicator of candlestick divergences.

HWMA HWMA

Indicator HWMA (Holt-Winter Moving Average) is a three-parameter moving average by the Holt-Winter method.