Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Rejoignez notre page de fans
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
- Vues:
- 3105
- Note:
- Publié:
- 2018.10.25 17:56
-
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