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
Wing Yes, investigate as much as you want. For more insight, you can view the linet1, linet2 etc....
CKW Hi Wing, Thanks for your sharing. I am still trying to breakdown & understand your code...
Wing Hello CKW. No, the parameter, 7 in this case, is used when calling the RSI indicator to ide...
Nicolas You need to have enough bars loaded on your chart for the indicator to compute completely th...
verdi55 Working with separately calculated supertrend indicators in backtests is usually somewhat pr...
Nicolas Very interesting Verdi. Would be a great addition to the library, your own modified version ...
Nicolas Je vais faire l'indicateur et expliquer comment en même temps dans un sujet de forum. Plus s...
gregus merci nicolas toute ma gratitude est pour toi sa sera bien pratique car je pense ne pas etre...
Nicolas Ok merci donc d'ouvrir un sujet spécifique pour cette demande donc :) 
algotrader This indicator looks coolBut on attempt to use it for a strategy dev'I get an error.."The in...
dajvop @algotrader if you at the bottom of the code add: RETURN Buffer1 as "up", Buffer2 as "down",...
Bateson Si cela peut servir, l'indicateur Sadukey a été créé en utilisant un générateur de filtre ap...
Nicolas Thanks for contributing to the "ichimoku section" of the prorealtime code library Don't he...
sourberry Thank you , this is a great indicator works beautifully. Could you kindly modify to scr...
pp_playaflamenca Excuse me,... reading your code about spanB: [ SenkouSpanBFutureW = (Highest[SenkouSpanPerio...
danhei Hi I am tryong to figure out how trist strategy works. I am new to pro real time. Can some...
Plop61 Hello,Thank you for sharing this beautiful strategy.Is it possible to indicate the code for ...
NoName Thank you very much for this fascinating trading system. It is still proving to be extremely...
Guibourse Hi ! I am asking once again for your help : would it be possible to use the ATR as a "take p...
Tradingrob Many thanks for the indicator, however if the price is below the indicator, then the indicat...
aldtrading Merci pour ton travail ! J'ai de bons résultats en utilisant cet indicateur
DANY I did it on demo account; it's too dangerous for mea and I can not resist psychologically  ....
demoz How can a demo account be dangerous? Did you have it run live (on a demo account for exampl...
DANY Yes, I mean that I tried on a demo account for 2 months and it had work fine, like the BackT...
Nicolas
9 years ago
ALMA MACD
ALMA MACD
7
Indicators
Arnaud HALVICK Great indicator, thank you!
JMat45 Hi Nicolas, just reviewing this indicator and noticed that you have double assigned the vari...
Nicolas That would not make any difference because the code is read from top to bottom.
Nicolas Use the wrench of the price chart! Upper left of the window
Dymjohn The wrench shows options for the components of the indicator not how to show in the main cha...
Nicolas http://www.prorealcode.com/topic/overlapping-indicators/  
Mansoor What does COI stand for?
MikeGC Hi Mansoor, COI is the abbreviation for the Coppock indicator.
nonetheless Anyone interested in this strategy please see forum topic: https://www.prorealcode.com/topic...
MikeGC I don't know if you have used the variables a and b to optimise the parameters for the Super...
gianpiero75 I have not optimized, I multiplied the parameters for 6 (5,8), to use them on the 4  hoursTF...
bertrandpinoy bonjour Mike j utilise TrendChaser V2.0 et quand il prend position cela ne programme pas le ...
zilliq The reasons why I think it's time consuming and we loose time to try to do backests and Auto...
filiprb Hello Zilliq, You don't need a system to produce a walk forward test. You can easily create...
Philip Raphael It is incredible! Thanks for sharing, Doctrading!
eisi If i switch between different Markets, the Backgroundcolour will appear where it should not...
datageek How can I get alerts on colour change?
NAMBO40 Hello, I would like to add a 25 period SMA moving average. It's possible?
Yannick Thanks for sharing. This strategy is flat for 11 years and winning afterwards. Don't you thi...
Doctrading Hello, As I usually say, strategies are exposed to be improved :) So yes, I think there mu...
Lior Green Doesn't work for me. Set values “compra” and “venta” to be shown as HISTOGRAM
Fabio Anthony Terrenzio this strategy works only in a well defined trend
brosly Good afternoon I am trying to get the complete code of lex strategy made by adolfo since I s...
dreif123 hi Adolfo, is Alex Auto Trading Botindex working on DAX as well ? if so , can you post the...
Doctrading I forgot to write at the beginning :  a = 50 b = 50 These are intermediate levels Sorry
DerPat Thank you. This one could be an aid in my current research on stochastics.
Pelayo it is possible that in line 12 we should put seuilinf=-b, thaks for all
avatar
Anonymous We try to enter before that the market actually turn. We try to anticipate it. In which way ...
dwgfx David-1984 are you saying that you've already factored in the spread within the code?  If y...
avatar
Anonymous no, not in teh code... only in the backtest. The entry is only between 8/22 so the spread fo...

Top