Regularized Momentum

Regularized Momentum

The Regularized Momentum indicator is a classic momentum calculation made with a Regularized Exponential Moving Average (or Regularized EMA) of Heikin Ashi median price (Heikin Ashi High + Heikin Ashi Low) / 2.

It returns a smoothed momentum, and instead of using the 0 line to trigger trend reversals, the indicator has ‘floating levels’ made with recent highest highs and lowest lows of the main oscillator.

The ‘Length’ and ‘Lambda’ settings are adjustable, these parameters smooth more or less the curve.


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. Alai-n • 12/18/2017 #


  2. juanj • 12/18/2017 #

    Thank You Nicolas, the content of this site is literally the one thing keeping me to hold onto PRT. I’m still on vacation until Jan, but looking forward to again make some contributions once back in full swing.

    • Nicolas • 12/18/2017 #

      Thank you juanj, I’m looking forward for your next valuable contribution 🙂 Have a nice rest and happy new year.

  3. Warath • 12/18/2017 #

    Bonjour, tout nouveau sur le forum, j’essai de comprend un minimum la programmation et j’ai voulu essayer votre indicateur qui à l’air très bien, seulement quand je veux le valider la fenêtre erreur de syntaxe ouvre et me demande de définir la variable suivante : length6 / lambda / minmaxperiod / levelup / leveldown.
    Je me pense que je dois renseigner quelque chose, mais cela m’étonne. pouvez vous m’éclairer. Merci.

  4. Sonia • 12/18/2017 #

    Bonjour, Warath, je ne sais pas si tu as eu ta réponse ? Je débute aussi mais je pense pouvoir répondre à ta question.
    Quand tu crées un indicateur, tu fais un copier/coller de l’indicateur, parfois tu as besoin d’entrer des variables en plus, ce qui est le cas ici. Tu vas sur la clef à mollette en haut à gauche, tu cliques dessus et tu renseignes Nom dans le programme, ici : length6, tu ajoutes et tu rentres le settings renseigné par Nicolas dans le code : entier : 14. Tu fais çà pour tous et çà marche, normalement ?!?

  5. Jeff Hale • 12/18/2017 #

    I’m trying to apply the regularization calculation method to another value, which I’ve found to work great when applied to a chart. However, when I try to apply the indicator to a screener, I receive no results back. Is there anything in the above code that would prevent it from working in a screener or something else that would need to be done to get it to work. Very much appreciated!!!

    • Nicolas • 12/18/2017 #

      Please open a specific topic in our ProScreenr forum for that query. Please add all specifications on how the screener should work according to this indicator. Thank you.

  6. macbartin • 12/18/2017 #

    peut il être utiliser pour savoir la fin de tendance, ou plutôt en complément de “market mode” pour détecter la fin de la tendance si le momentum se retourne ? même si je doigt avouer ne pas trop comprendre le “momentum”

    • Nicolas • 12/18/2017 #

      Formule de l’indicateur Momentum:

      Le Momentum se calcule avec une simple soustraction pour chaque séance.

      Momentum = Clôture du cours du jour – Clôture de la période n choisie

  7. Roberto1 • 12/18/2017 #

    Hi, can this code be converted for the Nanotrader Platform or for the MT4 Platform?

    • Nicolas • 12/18/2017 #

      This website is dedicated for PRT programming, but you can still ask for private coding with our programming services:

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+3 more likes

Related users ' posts
11 months ago
1 year ago
robertogozzi Sorry for my late reply. I’ll make it and open a new topic quite soon.
swapping ah ah ! je n'avais pas vue celui-ci, excellent robert ;)
robertogozzi Thank you swapping.
Didouqc Bonjour Nicolas, Merci pour cet indicateur, encore génial! Je souhaite faire une suggest...
LancerX Please indicate the trade stat to show ave gain against average lost..
Jan Wind Thanks for sharing the strategy !. Did you do an Out of Sample run when testing on the 100k...
jmf125 I don't know if anyone is following this thread anymore. Anyway I will post my comment. Aft...
Maik2404 wie kann ich den Code bekommen Paul?
jens_kittner Works with US Crude at 1h as well!
Jean-Claude REGIS Je préconise de regarder les graphiques H1 et M15 pour visualiser la tendance de fond et d'...
juanj Haven't been on this forum for ages! Just logged in to see what is happening and since this ...
robertogozzi Welcome back Juanji, why don’t you post your strategy in the ProOrder support, it’s a better...
Jean-Claude REGIS Merci Nicolas de la rep oui bien sur que le prix a une position identique le but est d'avoir...
cv Hi All, I am not very knowledgeable with coding. I have tried to add this indicator and get ...
Nicolas Download the .itf file and import it into the platform, you'll get all the necessary setting...
David Somogyi Hi, One year trades since Alpha running. Hopefully it w...
Nicolas Thanks for the update David!
sublime06 quelle parametre utilisé vous pour obtenir ces resultat ? merci
Nicolas I added the new ITF file in this page too (heikin ashi smoothed with colors)
ALE Thanks Nicolas!
cv Thank you very much Nicolas and Ale,
Domenec Hola Nicolas todo y el suavizado es como el awesome da ala señal 3 velas atrasada a veces de...
Arnaud HALVICK Hello! Very nice screener. Thank you! I am using it to scan stocks (weekly). It is very good.
odin you welcome. i would be glad when the screener is nice for you
HeikinAshi what do you think about using the screener in smaller time units (H1, M30) on indexes? And w...
Nicolas A tweaked version which allow to use timeframe in minutes:
mcha Bonjour Nicolas J'ai mis cet indicateur sur une période graphique 1 heure. J'ai choisi 1...
marzibre Bonjour Nicolas. I work mainly on Daily timeframe. I was looking something similar but usi...
MaoRai54 Hi, first of all Happy New Year. Well, I've inserted your indicator in DAX 1h but I cann...
Vinks_o_7 Hi Mao Happy New Year ! This is just an improved RSI where you plot a standard price momen...
Nicolas Sure,you can. Just add different variables in the loop and test them at each iteration if th...
BobFlynn Hello @Nicolas Thank you very much for this code ! It's very useful to me. I was wonder...
Nicolas Lines are just graphical and are not returned by the indicator. To use it in automated tradi...
Paul Thanks for posting. I was currently searching how to improve day-trading based on support an...
Jessar Könntest du im Forum etwas öffnen und später darüber zu sprechen?
arahussein Hi All, I am new to trading and i find this indicator very logicail! Hence my (dumb?) quest...
finplus Muchas gracias. Have a good day.
rafadonl2 I have modified some lines and it seems this version will work better. Even so, I recommend...
LucioleLucide Anyway so the arrows aren't so hight compared to the candles ? Can't see any offset
Nicolas Oui c'est possible, merci de formuler une requête dans le forum des indicateurs de trading.
ERICM en copiant collant : erreur de syntaxe apparaît le popup demande de définir length1, length2...
Nicolas En téléchargeant le fichier itf et import dans la plateforme, vous n'aurez pas ces problèmes.