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
rafadonl2 is not taken into account in the procedure. It considers only if it is a doji or when candle...
Guibourse Okay thanks, just a question : how do you plot your two lines in the same window as price ? ...
rafadonl2 sorry, I don't understand your question. Indicator draws Heikin Ashi candle, not price cand...
JanWd Tried the code, nice concept, seems to work quit well for US/EUR 2hrs, Other markets seems n...
JR1976 Simple and nice code , congrats !!! Seems work well with TIme frame 1 h
phanz Hi all, Sorry revisiting an old post. This algo is simple, and simplicity is the ultimate ...
mahdi how can I import itf file into mt4? please help
Nicolas That code is not for MT4, we do not offer free assistance for this platform, but you can ask...
guinsu2000 hello could you share your copy in a pdf or where you whant please ?
Steven Bahia Hi Nicolas - great indicator - is there a way to place a alert when the Oscillator crosses ...
Nicolas Alerts can't be programmed, you have to set them yourself with the Alert tool of the platfor...
Steven Bahia just to add to this would there be a way to establish a entry price from the Oscillator
Nicolas Your PRT version is inferior to 10.3? So the code in its default state is not compatible. A ...
Mbulelo Hi Nicolas Hope all is well your side, do you have a specific strategy for the MFT Swing ...
Nicolas No I don't, try to make it on your own, or ask in forums (follow the posting rules please).
juanj And the point of violation is the close of the candle that violates the line by generating a...
juanj For the latest version of the strategy or to follow updates and developments see the thread ...
phanz i backtested it with 10K units of EURUSD 1 hour i get an equity curve that is going one way ...
Wing Not yet but I plan to.
Leo Have a look in this Forum, I got something interesting for you... https://www.prorealcode.co...
Dávid Gyalus Dear Wing, As I am a daytrader, and one of my best friend is a programmer we think your a...
JR1976 Dear Mike , your screener seem interest and simple... Do you try to envelope an automat...
Player Hi Mike, What is the name of the indicator just under the MMA ? Thanks Regards Marc
Igor Hi Mike, What is the name of the indicator just under the MMA ? Thanks Regards
EchnatonX Hallo Im Demomodus bei IG habe ich das Problem, dass oft keine Orders ausgeführt werden kön...
Jan EchnatonX, nice late answer of me: Make the stop loss a percentage of the close, like 100/...
guleny Hello I made some optimization to make it better. But there are 5 transacttion which incr...
Bougnat bonjour, ton screener semble intéressant .... merci pour le partage
guytrc Hi Nicolas - many thanks for your screener. One question if I may - how does condition 5 wor...
Nicolas In the last 20 periods, the SMA 10 periods was above the SMA 20 periods.
stratobast Good afternoon everyone. Thanks Doctrading for your work. I have an issue while using this ...
stratobast My bad guys. I understood what was the problem. The indicator uses highs and lows for the Re...
samwarduk Has anyone tried this on Bitcoin GBP1? The results look amazing but every time mine trie...
Kris75 Hi Bolsatrilera, I love this indicator! Thanks; => did you develop a strategy around...
redz bonjour, comment changer les paramettre de la BB en 20 , 2.2 ? hello, how to change BB sett...
Realtime82 Hi I was wondering if it would be possible to get an alert (by sound) when the signals shows...
besserwerden Hi, i like this bollinger moz arrwos. How can I use this indicator in an screener? I want to...
Doctrading AH ok, I think the ca3 is the same : ca3 = pB[1] < 0.2 and pB < 0.2 Best regards,
chromosome21 Hello everybody, First, thank you so much for all your advices, I'm a begginer in trading a...
bertrandpinoy bonjour j ai un probleme avec ce code modifié, apparement PRT ne veut pas...avez vous une so...
rispardin no entiendo como funciana este indicador, por favor alguien podria explicar como utilizarlo???
AVT No se trata de un solo indicador, pero cada linea muestra otra información, de abajo hacia ...
IV Mcm Your indicator is interesting, I evaluated its relevance with the squeeze to detect the phas...
Kris75 Hi Gabri I launched a very simple strategy based on the 3 bars trailing stop that you cre...
TimDeCat Hi. Has anyone coded a version that you could alter it to say 5 bar trailing stop? ie make ...
Nicolas Please open a new topic in forums so we can code it there, thanks.
finplus bonjour, il y a un problème à la fin du code avec elsif (close 0 then ... ne manque t il pas...
kj1988 Hello Nicolas, thank you for this useful indicator. Could you tell me how I can remove the...
Nicolas remove lines 101 to 103
GraHal Yes sorry, I set up a link to a screen shot on my google drive and then I got locked into th...
gabri Here's the thread https://www.prorealcode.com/topic/multiframe-rsi-of-rsi/
Bernard13 Bonjour Nicolas, Pourriez-vous m'indiquer si cet indicateur fonctionne avec la V11 ? Le di...
jens_kittner This strategy was posted 2 years ago. I tested it today and it works perfect with the new da...
giustim Hallo I am not able to use it on daily TF What have I to change? Thanks a lot
pac.ros Ciao Francesco, ti scrivo per un aiuto a proposito della strategia di Hofmann che anch'io ho...
HeikinAshi Do you have an update of this indicator since you've created them, or is this still the actu...
mcha Thank you for this work. Do you try to transform/put this indicator on candlesticks and is ...

Top