Trend Following Moving Averages

v11
Trend Following Moving Averages

On each bar it creates a channel by highest/lowest point of a MA. highest point is upper line and lowest point is lower line of the MA channel,
It gets highest and lowest point of last 300 bars, (say Price Channel )
If the width of MA channel is greater than certain rate of price channel then it decides there is trend
After it decided there is trend, it calculates the rate between channel and MA. Bigger result means stronger trend.
According to rate of MA channel and the price channel , MA Line becomes lighter/darker. so when you look at the MA Line’s color you can see the trend strength.

You can choose each of the available default MA type of the platform as source.

“Period to Check Trend” is the period to create MA channel. Bigger period cause more sensitivity.
“Trend Channel Rate %” is rate of price channel . Price channel created by using highest/lowest of last 300 bars. I did this to make the script works on all time frames correctly.
“Use Linear Regression” is used to get rid of noise. it may cause 1-2 bars latency.

(description from the original author LonesomeTheBlue, all credits go to him). Indicator converted from pinescript with some adaptation to make it works with ProRealTime.

This indicator only works on PRTv11 onwards.

 

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. Gert84 • 04/20/2020 #

    Hi Nicolas,

    Every time I download and import an indicator into my chart, I get the indicator at the bottom of my chart instead of on my price chart. Am I doing something wrong?
    I use V11.1

  2. Jan • 04/20/2020 #

    Good afternoon Nicolas,

    Could you hint me how I become version 11 of PRT ? (I believe I missed that one . . )
    And when will it be available in production ?
    Thanks in advance.

    • Nicolas • 04/20/2020 #

      v11 is out since months, for free: https://www.prorealtime.com
      or with a trading account with IB, see the options available here: https://trading.prorealtime.com/en/InteractiveBrokers

  3. eva.g.forsgren • 04/20/2020 #

    Jag får felkod på rad 56?

    • Nicolas • 04/20/2020 #

      This indicator only works on PRTv11 onwards.

    • Jan • 04/20/2020 #

      If you start PRT via your trading account at IG.com, the PRT version 11 is not available yet, but their IT department is working on it to make it available,

  4. MajorBasse • 04/20/2020 #

    Hello Nicolas, is it possible to make a backtest with this moving average? For example “if trend = red then sellshort”.

    • Nicolas • 04/20/2020 #

      Yes why not?

    • MajorBasse • 04/20/2020 #

      I´m wondering which parameter decides the color of the average? Is the color decided by the “trend” input?

    • MajorBasse • 04/20/2020 #

      And also, the boolean “ulinreg” messes up the backtest, how do I define it?

  5. leonardofranci • 04/20/2020 #

    Hello Nicolas, it’s possible to make screener with this indicator ? Thanks a lot

  6. leonardofranci • 04/20/2020 #

    I would like a screener that highlights the color change of the indicator (from red to green and vice versa).
    Can you help me?
    Thanks again Nicolas

    • Nicolas • 04/20/2020 #

      Sure, please open a new topic in the indicator forum to ask your specific query, describe it as precisely as possible. Respect the posting rules too please.

    • leonardofranci • 04/20/2020 #

      Ok Nicolas apro il topic su “Supporto ProScreener” in italiano

    • leonardofranci • 04/20/2020 #

      Just done Nicolas https://www.prorealcode.com/topic/screener_trend-following-moving-averages/

  7. pyhrus • 04/20/2020 #

    Pourriez-vous nous proposer une version adaptée pour PRT V13.0 , ou nous préciser les instructions à remplacer ou modifier ou supprimer , dans le cas où cela est possible , pour effectuer cette adaptation ?
    Merci .

  8. pyhrus • 04/20/2020 #

    Erratum : je veux parler de la version V10.3 , bien sur …

  9. pyhrus • 04/20/2020 #

    P.S : IG , que j’ai contacté ,m’indique que la version V11 , ne sera pas disponible avant un certain temps ..

  10. Hasardeur • 04/20/2020 #

    Dear Nicolas,
    is there someting at the arry to modify in order to run the trend at the actual PRT version?
    Bset regards
    Hasardeur

  11. MALIMALO • 04/20/2020 #

    Dear Nicolas,
    just try touse your indicator with backtest but it’s not working.
    is anybody reach to use it?
    regards

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
PHAN100 bonjour, bravo à l'auteur pour cet indicateur visuel sur le graphique, il nous reste à va...
IV Mcm Vous devez faire un clic droit sur le prix > propriété > ajouter indicateur Si vous...
punch1 Fonctionne pas chez moi il s'affiche rien pourtant j'ai bien fait le clic droit sur le prix ...
punch1 Je peux te faire un screen d'ecran si tu as un email :)
ferros bonjour , super votre indicateur!!!! est-il possible de l'avoir en histograme +1 /-1 por en...
IV Mcm V2 is coming
SudhirRN is this code working for on tradingview plartform?
Nicolas No. All our codes are made to be used with ProRealTime trading platform: https://www.proreal...
Nicolas Il doit s'agir d'un mauvais copier/coller. Je suggère de télécharger le fichier itf contenu ...
Bard Hello @Nicolas, I can get this to display in a separate indicator panel but not on Price as ...
Stenozar Hi @Nicolas, how can I put the bands on price? Thanks, Stefano
Fabian Hi IV Mcm, have you drawn the rectangles (Dinamic, Range) by yourself in the chart or are...
IV Mcm Myself to illustrate ;)
oraclus Bonjour indicateur très intéressant existe t il un screener qui détecte les actions qui donn...
IV Mcm Ce n'est pas le but de cet indicateur, mais avec un peu d'entraînement vous pourriez le code...
Yantra Thank you for sharing your good work!
Nicolas le code est déjà sur cette page, inutile de fournir un autre format ?! Les fichiers itf sont...
Novice-Surfer Hello IV Mcm, You are my leader ! Your work is incredibly precise, thank you very much f...
Mikolajek Merci pour votre excellent travail !
mickey992 salut merci pour ton partage et ton travaille
patapouf Hi Vivien René I just discovered your “Ordered trend-following stocks Screener”. Great work...
afanitro424 its not plotting on chart but instead as it's own histogram directly below chart? How to fix...
Nicolas by adding the indicator on the chart :)
Nicolas Oui c'est possible. Merci de ne pas poster des demandes qui sont hors sujets. Pour les deman...
Igor Merci pour cet itf. Question : comment faire pour instruire un screener ?
Nicolas tester le croisement du Close avec la première valeur de l'indicateur : "TrailingStop", faci...
Dunstan I would like to get guidance_ How do I access and attach this indicator to my MT5 platform...
Nicolas You can't, use prorealtime, it's way better
jc84 Thank you very much for this indicator , not provided by PRT I was actually working at thi...
Nicolas Oui le code est correct et il fonctionne, j'ai de bons résultats sur la liste NASDAQ par exe...
pincherman Bonjour :-) J'ai coller le script dans prorealtime pour jouer avec le supertrend et j'ai un...
Nicolas Vous l'avez sans doute collé au mauvais endroit, dans l'éditeur de code pour les stratégies,...
IV Mcm Bonjour, Je ne reconnais pas cette ligne dans le code, essayer de télécharger directement le...
Manu L. Bonjour, Possible de créer un screnner multiframe Mois dans Ichimoku semaine dans Ichimok...
Guillaume Mcm I gave the above message fix ;)
Tradingrob Is it possible to put the itf-file in the right way here in Prorealcode? so the right 'trend...
Guillaume Mcm Update link ;) https://www.prorealcode.com/topic/trend-histogramme-cci-mise-a-jour-suite-...
oliverkeim Hi, also here not working. Only white lines.
killerplatuze Dont work anymore with the current version?
KryptoKat tolle Arbeit, professionell

Top