Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Vues:
9888
Note:
(21)
Publié:
2011.09.05 16:14
Mise à jour:
2023.03.29 13:43
lrma.mq5 (4.56 KB) afficher
\MQL5\Include\
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

This indicator is calculated the following way:

LRMA[bar] = 3.0 * LWMA(Price[bar]) - 2.0 * SMA(Price[bar])

where:

  • LWMA() - linearly weighted smoothing;
  • SMA() - simple smoothing;
  • PRICE[] - price series value;
  • bar - current bar index.

This indicator clearly shows market trends dividing a price chart into two sectors.  If a price is above the indicator line, the trend is going upwards. If a price is below the indicator line, the trend is going downwards.

The indicator uses the classes from the SmoothAlgorithms.mqh and IndicatorsAlgorithms.mqh libraries (they must be placed to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly descirbed in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

LRMA (linear regression moving average)

Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/429

JJRSX JJRSX

RSI oscillator with ultralinear and JMA smoothing algorithms.

RFTL RFTL

Reference Fast Trend Line (RFTL).

KRI KRI

While creating Kairi (KRI) oscillator, deviation of a price from its simple moving average is calculated. The result is shown in percentage of the average.

RSTL RSTL

Reference Slow Trend Line (RSTL).