Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
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:
3012
Note:
(9)
Publié:
2018.10.25 17:56
Avg_MA.mq5 (42.78 KB) afficher
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Average from MA indicator calculates the average value from the specified number of moving averages, whose periods are calculated as an increment to the base МА period

It has six input parameters:

  • First MA period - МА calculation base period
  • Method - МА calculation method
  • Applied price - МА calculation price
  • Count - number of calculated МАs
  • Coefficient of increment - increment ratio of calculated MA periods
  • Incremental method - increment method
    • Addition
    • Multiplication

Example of calculation with values:

First MA period = 5
Coefficient of increment = 2
Count = 5

  • If Incremental method = Addition:
    AvgMA=(MA(5)+MA(7)+MA(9)+MA(11)+MA(13))/5
  • If Incremental method=Multiplication:
    AvgMA=(MA(5)+MA(10)+MA(20)+MA(40)+MA(80))/5

where:

MA - MovingAverage(Applied price,Method) with calculated period

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

Generalized DEMA Generalized DEMA

Generalized DEMA

Connors_RSI Connors_RSI

Connors RSI indicator

Generalized double DEMA Generalized double DEMA

Generalized double DEMA

MA_Trend MA_Trend

MA Trend indicator