Join our fan page
- Views:
- 7276
- Rating:
- Published:
- 2017.03.02 12:10
- Updated:
- 2023.03.29 13:47
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
A library of averaging algorithms, the algorithms were described in details in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers". The SmoothAlgorithms.zip file contains the MQL4 version of the library. The EMA.mq5 indicator provides an example of using the averaging algorithms from the library. The indicator code is written in such a way that it makes no difference, for which language you compile the indicator with the appropriate averaging library corresponding to the language and with the appropriate extension of the original indicator file.
Fig1. The EMA indicator in the MetaTrader 5 terminal window
Fig.2. The EMA indicator in the MetaTrader 4 terminal window
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/17472

A simple trend indicator of the oscillator type.

Libraries for the interaction of МТ4/5 with R

10 pips per day opposite to the "yesterday's trend".

Opens a SELL position on each bar, if Close of the 1st bar > Close of the 3rd bar. Opens a BUY position on each bar, if Close of the 3rd bar > Close of the 1st bar.