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
Indicateurs

Multi pass average filter - indicateur pour MetaTrader 5

Vues:
4128
Note:
(15)
Publié:
2018.09.25 21:57
Mise à jour:
2018.09.25 21:59
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Definition :

In theory almost everything average like can be a digital filter too (it is just a matter of finding corresponding coefficients - sma , for example, has all "1" for coefficients), but this indicator goes directly into that category even though it does not use coefficients in this version. Avoiding coefficients in this version was done for 2 main reasons : simplicity and efficiency of code. The basis of this is the good old simple moving average a bit differently calculated than the usual "sum them all and then divide" in order to avoid nxn complexity (which would significantly slow down your PC when this indicator works) and that is why it does not look like "classical" digital filters.

Of limitations :

Maximal pass value allowed by the indicator is 10. To change it, change the line 4 of the code that goes like this :

#define   _maxPass  10

and replace the "10" with desired maximal pass (in the published version the limit is kept at 10 for practical reasons)

Usage :

You can use the color change as signals. Some experimenting with optimal pass for your trading stile is strongly advised (see the "big picture" example for reasons why it should be experimented with). Also, be advised that pass 1 is making this indicator value the same as SMA (Simple Moving Average). The difference comes for passes different from 1, and for that reason the best usage is probably to use short ma periods and then experiment with different pass parameters


"Big picture" example :

10 instances of the indicator with default parameters except that the pass is changed from 1 to 10


Super smoother levels Super smoother levels

Super smoother levels

Super smoother Super smoother

Super smoother

CCI JMA based CCI JMA based

CCI JMA based

CCI JMA based with floating levels CCI JMA based with floating levels

CCI JMA based with floating levels