SuperTrend Extended

v10.3
SuperTrend Extended

New “extended” version of the classic Supertrend indicator.

The Supertrend band is made from the supertrend itself (which can be calculated from 3 different manner) and from 1 Average True Range value above or below it, depending of the direction of the price.

There are 3 different type of the Supertrend Extendend calculation: (you can choose which one with the “type” parameter).

  1. Using ATR like the classic Supertrend
  2. Standard Deviation
  3. Standard Error

All these values are multiplied by the “multiplier” settings to extend or narrow the band. These indicators share the same “period” setting.

The indicator also uses the mean of the price over the last “midperiod”, instead of the Close (middle of a Donchian channel or just like a Kijun from Ichimoku).

 

 

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. swapping • 10/31/2017 #

    Hello Nicolas, juste pour dire qu’un petit mix avec ce (supertrend-extended) couplé à la (détection des doubles top, doubles bottom) codé par Leo et bien “çà le fait grave” comme on dit…
    Bravo

    • Nicolas • 10/31/2017 #

      Il y a beaucoup de paramètres à explorer comme de situations de marché différentes, je vous laisse vous faire votre propre opinion 🙂

  2. supertiti • 10/31/2017 #

    Bonne observation Swapping ! en bougeant les paramètres à notre convenance les deux indicateurs vont de concert.

  3. ludo6977 • 10/31/2017 #

    oui excellent job, ton indicateur ne repeint pas ?

    • Nicolas • 10/31/2017 #

      il n’y a pas d’indicateur qui ‘repeignent’ dans le sens où tu le conçois, sous PRT.

  4. ludo6977 • 10/31/2017 #

    c’est a dire ? Le miens repeint, mais c’est peut etre un probleme de barindex, je parle pas de ton indicateur , mais le miens …

    • Nicolas • 10/31/2017 #

      Quel indicateur svp? Dans la majorité des cas, les indicateurs se calcul sur le Close, donc sur la bougie courante l,tant qu’elle n’est pas cloturé, l’info peut changer, mais ça n’est évidemment pas ce que l’on peut qualifier de ‘repeint’. Cette notion s’applique lorsque un indicateur modifie les informations du passé uniquement.

  5. ludo6977 • 10/31/2017 #

    IF c crosses over –140 AND h1>h2 then
    DRAWARROWUP(barindex[1],low[1]–rge/1)coloured(0,0,255)
    ELSIF c crosses under 140 AND h1<h2 then
    DRAWARROWDOWN(barindex[1],high[1]+rge/1)coloured(255,0,0)
    ENDIF //

    Voila, donc la fleche s'affiche quand le cci croise la ligne, mais parfois il la touche et repare, alors la fleche apparait et repart et je ne sais pas comment faire pour que la fleche s'affiche uniquement que quand le cci a croiser ou à la cloture de la bougie . que la fleche apparaissent a la cloture de la bougie uniquement.
    je te remercie nico .

    • Nicolas • 10/31/2017 #

      Pour les demandes spécifiques merci d’utiliser le forum.

  6. Rolanbay • 10/31/2017 #

    Lors de la validation du programme, j’obtiens :
    Erreur de syntaxe
    Veuillez définir la variable suivante : period
    Veuillez définir la variable suivante : midperiod
    Veuillez définir la variable suivante : multiplier
    Que peut on faire ?

    • Nicolas • 10/31/2017 #

      Télécharger le fichier et l’importer ou supprimer les // devant les noms de ces variables

  7. Rolanbay • 10/31/2017 #

    Merci beaucoup, c’est exactement ce qu’il fallait faire.

  8. Youness Charif • 10/31/2017 #

    Bonjour Nicolas,

    L’indicateur s’affiche dans une fenêtre en bas et non pas sur le cours…

    auriez vous une solution pour remédier au problème s’il vous plait
    merci d’avance

    • Nicolas • 10/31/2017 #

      Appliquer l’indicateur sur le prix à l’aide de la clé à molette située en haut à gauche de votre graphique.

  9. bobrenard96 • 10/31/2017 #

    Bonjour Nicolas,
    Je trouve cet indicateur intéressant.
    Bien sur, comme tout indicateur, il y a de faux messages (ex : apparition d’une flèche bleue, donc trend haussier, et puis non… le trend redevient baissier)
    D’où ma question : y a t- il un moyen de réduire un peu les faux signaux sur cet indicateur ?
    Merci
    Cordialement

    • Nicolas • 10/31/2017 #

      Acheter une boule de cristal ? 🙂 Désolé mais ici comme ailleurs, nul ne pourra savoir de quoi le futur sera fait.

  10. bobrenard96 • 10/31/2017 #

    Ah bah non… c’est pas juste… m’enfin ! Moi, je ne veux que des signaux gagnants… Mieux qu’une boule de cristal, je vais m’acheter un télescope pour sonder l’alignement des satellites de Saturne 🙂
    Et oui… si seulement on pouvait prédire l’avenir…
    Mine de rien, avec votre indicateur, j’arrive enfin à ne plus griller des comptes demo sur IG… je le couple avec d’autres indicateurs, mais le votre a retenu mon attention.
    Je teste… je teste… on verra la suite
    @+

    • Nicolas • 10/31/2017 #

      Très bien ! Pourquoi ne pas ouvrir une file dans le forum de trading : https://www.prorealcode.com/forum/prorealtime-forum-francais/discussions-generales-sur-le-trading/
      Cela vaudrait peut-être le coup d’échanger entre membres à ce sujet.

  11. Giddy • 10/31/2017 #

    Hi Nicolas, I love this, it complements my mean reversion strategies nicely. Is there a way to create an automated trading strategy based on the system? My code writing is limited and I tend to use the simplified creation tool within ProRealTime to create automated strategies (I have tried but don’t seem to be able to do it). Any help gratefully received. Thanks, Andrew

    • Nicolas • 10/31/2017 #

      Sure, please add a new topic for this query in the automatic trading forum.

  12. edgar degas • 10/31/2017 #

    Bonjour Nicolas, et encore bravo pour VOTRE œuvre ! Avec les vicissitudes de la vie, pas eu le temps de me pencher davantage sur cet indicateur, mais ok pour votre proposition… je vais ouvrir prochainement un topic dessus, montrant comment je trade avec votre indicateur… avec les succès et les échecs aussi (bah oui… y en a). Par contre, au regard de mon agenda, je préparerai tout ça d’ici deux semaines… et en anglais (je vais essayer de “speaker” English).
    Bonne journée

    • Nicolas • 10/31/2017 #

      Super ! Merci pour le retour, à très prochainement dans le forum Anglais dans ce cas 🙂

    • Nicolas • 10/31/2017 #

      Des nouvelles ?

  13. David29 • 10/31/2017 #

    Bonjour Nicolas, super indicateur? comment faire pour le transformer en stratégie ?

    • Nicolas • 10/31/2017 #

      Bonjour, merci d’ouvrir un sujet spécifique dans le forum.

  14. test • 10/31/2017 #

    hi there is a scanner for this indicator ? thanks all

  15. nick80 • 10/31/2017 #

    Good morning Nicolas, congratulations for this fantastic indicator, can you tell me if it is convertible for the MT4 platform?
    Thanks Nicola

    • Nicolas • 10/31/2017 #

      You can for it ask as a private job in the programming services section:
      https://www.prorealcode.com/trading-programming-services/

  16. nick80 • 10/31/2017 #

    Thanks Nicolas 😉

  17. Whisper74 • 10/31/2017 #

    Hi Nicolas, I have build supertrend in excel for research and database purposes, but I actually would like to have the Supertrend Extended in excel. Can you help me with this or can you tell me the difference between the two?

    • Nicolas • 10/31/2017 #

      Sorry, I can afford to make custom programming for everyone. If you want to have codes translated into another platform than ProRealTime, please send a query to the coding services: https://www.prorealcode.com/trading-programming-services/

  18. kats • 10/31/2017 #

    Bonsoir, je souhaiterai afficher sur le 1 mn le supertrend extended du 5 mn pour avoir ainsi le 5 mn sur le 1 mn mais je n’arrive pas a le faire en appliquant une regle de 3 sur le second .
    pouvez vous m’aider svp
    cdlt

    • Nicolas • 10/31/2017 #

      Il faut multiplier la période de l’indicateur par 5.

  19. kats • 10/31/2017 #

    BONSOIR, c’est deja fait mais ca ne fonctionne pas on obtient pas du tout le changement au meme moment que sur le 5 mn , j’ai essayé en multipliant la periode puis la periode et la midperiod rien n’y fait , je pense que le coef multiiplier doit avoir une incidence mais la je cale cdlt

    • Nicolas • 10/31/2017 #

      ça ne serait jamais totalement identique en multipliant les périodes. Avec la version 11 on peut gérer les indicateurs multi timeframe, encore un peu de patience pour l’avoir chez IG.

  20. Guibourse • 10/31/2017 #

    Bonjour, j’aimerais trouver un moyen de coder (comme condition dans un autre indicateur) la ligne Supertrend Extended 2 dans son “sens”. C’est à dire de reconnaître quand la ligne change de couleur, du bleu au rouge et inversement. Je n’y suis pas parvenu car je débute : il se trouve que le changement de couleur n’est pas lié à un croisement à la hausse ou à la baisse du close…Merci pour votre aide !

    • Nicolas • 10/31/2017 #

      Il faut ajouter la variable “trend” dans l’instruction RETURN et la comparer avec sa précédente valeur pour savoir si elle passe de 1 à -1 ou inversement.

  21. WarningTrading • 10/31/2017 #

    Comment peut on la comparer ? comme ceci ? cela ne me donne plus le message d’erreur manque de variable. mais cela ne correspond a rien

  22. sally31120 • 10/31/2017 #

    Bonjour, je n’arrive pas à créer ce screener
    close > supertrend extended2[1]
    la réponse la fonction appelée retourne 2 valeurs mais le code en a besoin de 3
    Merci pour votre aide

    • Nicolas • 10/31/2017 #

      voir ce sujet pour un screener basé sur Supertrend Extended: https://www.prorealcode.com/topic/supertrend-extended-demende-de-screener/

avatar
Register or

Likes

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

+22 more likes

Related users ' posts
Jean-Pierre Poulain When I buy and when I sell ?
Nicolas The featured image of the post do not deserve the indicator you are right, I attached other ...
Nicolas It is described in the post already :) The BUY/SELL signals are quite similar of what you ca...
David Balance thanks for sharing this excellent indicator.  Here are some thoughts.  please ad...
reb Hello Marc your strat seems very intersting, will take a look Reb
897148 What exactly is meant by Total price? Is r1 =28 in your example the no of days for "Total P...
otty82  THX looks good!
century nice one , thank you
arvindrao01 Hey! Does anyone have a pinescript (tradingview) code for this?
imokdesign Hi Everybody, when I look at the strategy I felt the need to implement a Moneymanagement-Sy...
Inertia newlevel then multiplier=multiplier+1 oldlevel=newlevel newlevel=strategyprofit+startequi...
Inertia Hi Bjoern, I was playing around with your code this morning (EUR/USD 5'). Thank you to the...
CavalierDeCesDames Bonjour Nicolas, Thanks for your use full job. I tried this indicator on a shorter timefram...
Nicolas You are welcome. I'm glad you like it.
Bolbo It does not appear over the price indicator on V11. Thanks in advance.
bearbull As per PhilipSchultz question above, has anybody managed to add code for when it turns blue,...
Ybr35 Bonjour Nicolas, lorsque je lance l'indicateur, il m'est indiqué que je dois définir les var...
Nicolas L'idéal est de télécharger le fichier itf joint sur cette page et de l'importer dans la plat...
fabio407 Thanks, Nicolas. Very useful. Would you tell me where to find what result conveys the functi...
Nicolas This is not an instruction of the programming language but a variable from this indicator (l...
fabio407 OK. I didn't notice it. Many thanks, Nicolas!
albertocampagna Sei grande Nicolas :-)
SAcht Dear Nicolas, Great work, thank you very much!I would love to use the indicator in ProScree...
SAcht btw: The above-posted ProScreener is supposed to show stocks for which the center line has i...
victormork Hi, I would just like to share my own take on this strategy. I'm using 30 min on EURUSD but ...
mckubik Thanks. I will run a Test. 
poonsl2828 Hi! bjoern May i know what timing should i change for time zone (Singapore (GMT +8:00) ...
Nicolas Merci dans ce cas d'ouvrir un sujet dans le forum ProScreener svp.
Andrea Hi Nicolas, thx for your code. Please i need your help to understand this part of your code:...
Nicolas the MA200 is ascending since 20 periods.
Regan2020 Hi, has anybody update the above code to enable on a 15m or 5m TF?
gigi64 ik heb de code op mijn pro realtime gezet , en bij indicator staat hij erbij maar komt niet ...
gigi64 I have put the code on my pro realtime, and it is on the indicator, but it does not appear o...
supertiti Thanks you so much Lucassen
dreif123 hi, copied the above code, not working on 10.3 the system says "return can only be used at ...
LUCASSEN Hallo , i have no problem , and i have the same versie 10.3, maybe you can ask Nicolas, tha...
Nicolas Indeed, if you are not willing to loose, you will always win. Averaging down losers can carr...
David You're always safer going Long especially with averaging down on an index as the probability...
Oskar Bergvall  I noted Davids and Nicolas remarks. Could it be possible to make an indicator for contraria...
Krallenmann Hallo Nicolas, kannst du mir die Regeln für den Halftrend Indikator sagen? Aus dem Code kann...
davefransman Dear Nicolas, i want set a alert on the "HalfTrend "custom moving average" met Heikin Ashi w...
Nicolas Please post the question in a new forum topic, that would need custom coding I believe.
Lyam Pareil ne marche pas dommage
ahmedbouaziz89 Bonjour, quand j'ajoute le code ou le fichier dans l'outils screeners de Prorealtime je ne v...
tyvix Bonjour le code marche bien c est juste qu'il n y a pas d opportunité au moment ou vous le...
verdi55 Is there such a thing as a free lunch ?
maceng Thanks Nicolas for this great work! I would like to understand the math behind it in order t...
Nicolas Sorry I have no time to provide assistance for python programmers. Have a good day.
Maz Hi all, firstly happy to know that this is helping you. I look into updating it for PRT11 wh...
Nicolas just use 3 times a linear regression channel code you will find in the library.
leederbyshire Here's the link to alternative linear regression channel indicator Nicolas is referring to t...
julien1978 The ADR value that is plotted intraday does not match the value of the regular ATR indicator...
Fab666 I've tried to get a fix for this also but no luck, it doesn't print the correct data as far ...
Seabiscuit Hi! With the new PRT update, this indicator does not work anymore

Top