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
Doctrading Hello, Someone asked me something (his results seemed to be different) on my email, but it ...
Glen Marquis Not your best..So what is your best strategy? :)
Doctrading
9 years ago
gianlox What markets did you feel ? Thanks..
wanjpt Doctrading, could you code an alert when the supertrend touches price for various timeframes...
JSTAR PRODUCTIONS Hi there DocTrading, I have run this Screener and it only seems to screem When trend line to...
Henry
9 years ago
SuperTrend
SuperTrend
4
Indicators
Nicolas Exit and relaunch PRT should fix this behavior.
verdi55 Thank you. After a restart, it is somewhat faster; however, it still takes about 3 minutes t...
Nicolas Good! thanks for sharing your own code! Please do so with other ones if you think you can im...
TradSuz C'est étrange, je note donc à nouveau les deux horaires achat et vente =9H/17H, le iRSI de l...
TradSuz Merci à Doctrading pour cette trame de code super et qui marche sur d'autres supports aussi....
Bibi83 Bonsoir à tous Juste pour vous informer que j'ai enlever les conditions short et que cela ...
GraHal Hi Nicolas I like this and would like to understand it fully so please forgive the (maybe) d...
Nicolas Hi GraHal, the Factor parameter is only a multiplier of the ATR that is added or subtracted ...
GraHal Nicolas, thank you for your useful and informative response. Yes I optimise using ProBackte...
Denis Hello, Congratulations and thank you for this work. I do not understand one thing, however...
Nicolas
9 years ago
GraHal Hi Nicolas Britains .itf file didn't work for me ... I had to change h to hh at line 13 and...
Nicolas Thank you GraHal for pointing this error, i have corrected the code in the file. The code in...
Nicolas
9 years ago
PeterClothier Hi, I downloaded this indicator and imported it. I tried adding it to a chart , and it hasn'...
Nicolas Don't add it on the price, so just don't use the price setting to add the indicator.
Nicolas
10 years ago
U Trend Sensor
U Trend Sensor
4
Indicators
Nicolas Hi Stef, thanks again for contributing to my near perfect english :)
Salocin Hi Nicolas, seems to be a pretty cool one as an indicator. can you define "plotsingal". Syst...
Nicolas Download the itf file attached to the post, there's everything needed in it. Just import thi...
Nicolas
10 years ago
cosmicsurfer I actually live up the road from Daryl Guppy. On the first day of my training i walked aroun...
Pleidian Hi, I'm trying to add the guppy indicator to my charts but i keep getting a box that's says ...
Nicolas Wrong copy/paste? Always a better idea to download the ITF file and import it into the platf...
Yantra "i believe this indicator could help any trend followers in trading decision. " I'm wonderin...
Nicolas
10 years ago
Tradesun Salve, ho provato ad inserire l'indicatore nella piattaforma ma mi chiede di definire la var...
maximus78 Tradesun, se scarichi il file ITF allegato e lo importi nella piattaforma ci sono già le var...
Nicolas
10 years ago
petmut Hello all, When I import the code here above "multiple ATR bands" and apply it on the PRT ...
Nicolas That should need some custom coding, if you want to make it done, please open a new topic in...
Patopercho Hello, thanks for the indicator, i would like to change the color, is it possible, thanks

Top