Step One More Average

Step One More Average

Indicator built upon a special moving average formula that adapt its period automatically accordingly to the market behaviour and noises. This moving average is called the OMA (One More Average), the formula come from an MT4 version found on internet.

Converted from MT4 because of a request on forum.

This version of the one more average indicator embed a step variation of the result of the calculation. The sensitivity and step size can be modified in order to adapt how the moving average respond to the step function, which is comparing how the moving average evolved between difference of actual and past data with current average true range.

The adaptive period can be more or less adaptive by changing the “speed” parameter (0.1 step). The adaptive behaviour of the formula can be shutdown with “Adaptive=0”.

 

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. SoloContado • 12/12/2016 #

    Hello Nicolas,
     
    thanks a lot for your many contributions in this post. I have a problem with the imported file: when I import it into the Price chart, I just get a flat line at the “0” level, no average is plotted.
     
    I have 10.3 version of PRT.
    Any suggestion would be wellcome.
    Best regards,
    Jorge Hernando
     

    • Nicolas • 12/12/2016 #

      Because of no data available at the start of calculations. Change line 20 with : if adaptive=1 and averagePeriod > 1 and barindex>(length/2)*5 then
      and add an ‘endif’ at end of the code just before the Return function line. 

  2. srajtri • 12/12/2016 #

    Hi Nicolas,
    thanks for your updates and am very new in trading would you guide me to back test this indicator and give me some refrences to understand coding techniques.
    thanks & regards
    Selva
     

    • Nicolas • 12/12/2016 #

      Please post any question on forums, thanks.

  3. Lavallette • 12/12/2016 #

    Bonjour Nicolas.
    J’utilise la version 11 et moi aussi j’ai une ligne horizontale malgré l’ajout du test “if barindex>length”.

    Existe-t-il une incompatibilité entre la version de PRT 2016 et 2021?
    Cordialement.

    • Nicolas • 12/12/2016 #

      il faut modifier la ligne 20 avec:
      if adaptive=1 and averagePeriod > 1 and barindex>(length/2)*5 then

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Nicolas You'll need to preload bars to get the good calculations of you indicators. I did not test i...
David Nicolas I tried DEFPARAM Preloadbars = 5000 And still the same drawn output of entries/exit...
marcara Hi, Thank you very much for the Moving Average Daily indicator, I am using it as indicator i...
Nicolas Je l'ai converti depuis un code pinescript. De mémoire il s'agit bien d'une variation d'une ...
Captain_Walker @Nicolas, I've copied your code into PRT indicator panel to create it. When I attempt to sav...
Nicolas Download the itf file and import it.
dakaodo Hi, Wilko. Acc to the original FRAMA paper by Ehlers, Ehler's own code only takes inputs for...
dakaodo For reference, here is Ehlers' original paper: http://www.mesasoftware.com/papers/FRAMA.p...
dakaodo Here is the code with only SC included, per ETFHQ. pri=customclose //len>=4, even on...
Nicolas The code is correct, don't know if the label and color are the same as other trading softwar...
peppe novellino Hi Nicolas, the settings of the alligators are not editable. How can I change it? Thanks in ...
pabo_swe I got very bad performance with this script, it was slow... it seems like if one breaks out ...
bluetime6 Hello Doctrading.   Can you ask you for something? Can you code a screener screen po...
gianlox I added a simple momentum indicator (MACD). I think much better results:   achat = 0v...
gianlox achat = 0 vente = 0 MACD12M = MACDline[12,26,9](close) MACD12S = ExponentialAverage[9](MA...
Nicolas Thank you for contribution. Please consider that advertising is tolerate as long as you cont...
triss1965@gmail.com  Hi, I cant make it work. And if you doing so much money. Why do you have to sell it? It don...
T-rader Eva... He dosen´t sell anything. He is just a nice guy that want to share on of his strategy...
Fabio Anthony Terrenzio this strategy works only in a well defined trend
brosly Good afternoon I am trying to get the complete code of lex strategy made by adolfo since I s...
dreif123 hi Adolfo, is Alex Auto Trading Botindex working on DAX as well ? if so , can you post the...
phili711 Bonjour Si la moyenne 100 est au dessus de la moyenne 20 le trend est baissier zlors pourqu...
Nicolas La comparaison se fait entre la valeur de la moyenne actuelle et telle qu'elle était il y a ...
Thomas007 we should definitely open a new thread for intraday trading - can we post the link once it's...
Denis Bonjour Nicolas, j'ai une question à propos de ce code, il faut que je la pose en anglais ca...
Nicolas En français pas de problème
Blue Sky A great job Nicolas, thanks. A question about averages, what period is the fast average and ...
Lotech123 This Indicator is very useful if the Risk number is altered to suit the time frame, volume o...
Bern error displaying, code must end with RETURN. Any idea hot to fix it?
Yantra "i believe this indicator could help any trend followers in trading decision. " I'm wonderin...

Top