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?

New! PRC is also now 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. Add this at line 15 : if barindex>length then
      and add an ‘endif’ at end of the code just before the Return function line. 

  2. srajtri • 320 days ago #

    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

    • Nicolas • 320 days ago #

      Please post any question on forums, thanks.

Register or


avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
swapping merci gabri, on va le mettre à l'essai ;)
Genotik Merci de votre contribution !
Leo Hi all, I posted a new version of this indicator ( I just add arrows to spot the local maxi...
Trading_En_El_Ibex35 Muchas Gracias por compartir este interesante indicador. Un saludo
JM David, Thanks a lot and next week I begin the test of this strategy in real... You have ot...
rejo007 hello david, i'll try it could you tell me wich strategy do you use in real? thanks
David Somogyi Hello, I have a couple of DAX strategies of breakout and mean reversion. I'll try to post...
Thomas007 Is there any way to build something similar for FX? I wonder what would be the replacement f...
supertiti Felicidades Laurenzo d'avoir pris le temps pour ce gros travail et en plus dans l'esprit du ...
gatarayihajp Hello,  It's very interesting indicator. Could you explain more about it? Thank a lot
juanj Having a moving average bar running above 0 for the green bars and below 0 for the red bars ...
juanj I mean a moving average line
juanj I coded the above indicator into a strategy, seems to be profitable on the EURUSD 1Hr
David Balance thanks for sharing this excellent indicator.  Here are some thoughts.  please ad...
supertiti Il manque 2 slash devant len dans le code dur car la variable ne marche pas bonne journée
Gennadiy Thank you, very much, Nicolas, for this wonderfull Indicator! I have a question. I have adde...
Gennadiy Here is my code: RETURN long as "long signal", short as "short signal", weightedaverage[MApe...
Gennadiy Here is the link to the image:
gabri Great screener!! I would like to add only the fact that Minervini is a growth investor and s...
Hayden Hi Nicolas, thanks for the Minervini screener, I'm finding it really useful. I am a big fan...
Nicolas Private personal assistance is possible through the programming services. Otherwise, you cou...
gabri Kris, let me know which color you want to use. The lines to change are the 22,23,24.
paulon Hi Gabri.  Very interesting indicator.  I changed the colours to if v>=v[1] thenr=0g=255b...
gabri Paulon, you are right, I used the variable b in too many places :) Try to change the follo...
David Somogyi Hello, 180º profit booster from Greg Secker. Regards,
lizmerrill david, THANKS FOR THE REPLY, IN YOUR CODE BELOW: FDI=0 HH = highest[N](close) LL = lo...
David Somogyi Hello, This is merely a filter indicator for measuring high fractality, which helps to av...
Nicolas Il faut utiliser backgroundcolor, bon courage. 
leyoy Quelqu'un sait s'il est possible de faire apparaitre une flèche paramétrable au changement d...
Nicolas Oui je sais que c'est possible :/
Sofitech Ce code n'est valable que sur la V10.3 ? sur le 10.2 il y a une erreur de syntaxe dans le fi...
Nicolas Oui en effet, c'est un indicateur "10.3" à cause uniquement de la mise en forme des courbes ...
Nicolas En effet, c'est le cas si on copie/colle le code. Ces 2 variables sont inscrites en externes...
Salocin Hello Nicolas, my french is not that well. It occurs an error which can not be solved by cop...
Nicolas Just download the ITF file and import it into your platform, follow these easy steps: https:...
1 year ago
Holt EMA
Holt EMA
robertanthonyuk Hi,What do the each colour represent? Rob