Fifty shades of Half Trend indicator

v10.3
Fifty shades of Half Trend indicator

Someone ask me recently about the HalfTrend indicator translation from the mq4 codes. I remembered having already translated it and made different kind of variations of this neat indicator. You can find them all attached to this post. You’ll find below screenshots examples of these different versions of this trend indicator:

The HalfTrend indicator is made upon trend direction of simple moving average that breach recent highest high or lowest low.

 

1/ HalfTrend “classic”:

2/ HalfTrend “custom moving average” with Heikin Ashi candlesticks set to true or false (normal candlesticks). You can select different kind of moving average to render the indicator differently.

3/ HalfTrend JMA. Same indicator but with Jurik moving average calculation instead of simple moving average.

4/ HalfTrend triple. Same indicator but made with 3 different HalfTrend periods in the same indi.

5/ HalfTrend adaptive length. Same indicator but with an adaptive amplitude calculation made with counting of recent high/low fractals. Many fractals count in the lookback period mean price is ranging.

6/ HalfTrend Quantile Bands. The quantile bands are calculated within the last upper and lower quantiles of X periods. Parameters could be changed at will.

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. AngelPujalt • 03/10/2017 #

    Estimat senyor Nicolau, li vull donar les gràcies per dirigir també aquest fòrum de proalcode desinteressadament; i l’encoratge perquè continue amb aquest projecte tan interessant per a la comunitat bursàtil. Enhorabona. I endavant.

  2. diegofe_2000 • 03/10/2017 #

    mil gracias NICOLAS que maravilla de indicador,  me cae “como anillo al dedo”
     
    nuevamente , mil gracias

  3. ludo6977 • 03/10/2017 #

     metter une HT et un jhon scalper et la c’est le must sur 1mn 
     

  4. Stenozar • 03/10/2017 #

    Hi Nicolas, does it work with DAX? which indicator you prefer to trade Dax?
    thanks a lot for your contribution

  5. Riccardo Benedetti • 03/10/2017 #

    Thanks a lot nicolas for this indicator. good job. I love the great work done simple. Thanks again

  6. Riccardo Benedetti • 03/10/2017 #

    ciao nicolas mi piacerebbe provare a fare un backest di una strategia con questo indicatore ma ho scoperto solo da ieri che è possibile farlo.
    non riesco a programmarlo. ti ringrazio e ancora complimenti
     

  7. TheAccountant • 03/10/2017 #

    Bonjour et merci pour cet indicateur.
    j’essai de parametrer une alerte sur le changement de couleur du HalfTrend… sans resultat jusqu’ici. J’ai tenté en affichant l’indicateur sous le graph sous forme d’histogramme et d’utiliser l’outil prt pour les alertes mais je ne parvient pas a avoir une alerte sur le changement de couleur ( quand le halftrend passe positif ou negatif)
    Quelqu’un aurai une idée ?
    Bonne journée !

  8. leyoy • 03/10/2017 #

    Salut Nicolas,
    est-ce compliqué de faire varier le fond de PRT en fonction de la couleur de HalfTrend classic?Je pense que ca pourrait etre une variante interessante 😉

    • Nicolas • 03/10/2017 #

      Il faut utiliser backgroundcolor, bon courage. 

  9. leyoy • 03/10/2017 #

    Quelqu’un sait s’il est possible de faire apparaitre une flèche paramétrable au changement de couleur comme sur MT4 ? :/

    • Nicolas • 03/10/2017 #

      Oui je sais que c’est possible :/

  10. gio24 • 03/10/2017 #

    How to visualize .itf file code of the attached files? Thank you

    • Nicolas • 03/10/2017 #

      Download files and import them in the platform

  11. rigel • 03/10/2017 #

    Hi Nicolas, it would be possible to post the code prc_halftrend.itf, I would like to convert into another language. Thanks a lot

  12. marinober • 03/10/2017 #

    Ciao Nicolas . Nella versione customA non funzionano le ultime due medie, da proprio errore .

  13. rigel • 03/10/2017 #

    Hi Nicolas, is there a way to import the .itf files in a text editor? otherwise would it be too much trouble if you post the code of prc_halftrend.itf or prc_halftrend-jma.itf ?? I do really appreciate it

    • Nicolas • 03/10/2017 #

      There is no other way than import it into your platform. Please download the files, import them and get the code from there.

  14. rigel • 03/10/2017 #

    Thanks Nicolas, don’t have that platform hence the question.

    • Nicolas • 03/10/2017 #

      For specific coding query, you can ask me via the programming services: https://www.prorealcode.com/trading-programming-services/

  15. leyoy • 03/10/2017 #

    Bonjour, est-il possible de descendre la valeur en dessous de 1 svp ?

    • Nicolas • 03/10/2017 #

      Si on parle de la valeur “Amplitude”, bien sûr que non. Elle correspond à une période de calcul des indicateurs.

  16. Denis • 03/10/2017 #

    Bonsoir Nicolas,
    j’utilise une de vos halftrend et aussi le “MACD” de halftrend de Lukassen, merci à tous les deux.
    Pour le MACD de Halftrend, la fenêtre Propriétés permet de configurer une couleur selon que l’indicateur est positif ou négatif.
    Or je souhaiterais configurer une couleur selon que l’indicateur est en hausse ou en baisse.
    C’est le cas pour d’autres indicateurs (Cf. exemples en PJ) mais je ne trouve pas où cela peut être choisi car cela n’apparaît pas dans le code.
    Sauriez-vous comment il faut faire ?
    D’avance un grand merci pour votre aide et excellente soirée à vous.
    Denis

  17. Denis • 03/10/2017 #

    Je n’ai pas pu mettre ma PJ d’exemples

  18. Denis • 03/10/2017 #

    Oubliez ma question Nicolas, c’est la représentation en histogramme à laquelle est associée positif/négatif et pas hausse/baisse.
    Merci de votre aide précieuse au quotidien

  19. chris9765 • 03/10/2017 #

    Good afternoon, i would like to know how to calculate the indicator to get the signal … or combine it with stochastic

    • Nicolas • 03/10/2017 #

      What signal please? The color changing?

  20. Ice_man • 03/10/2017 #

    Hello thanks for the indicators. Could you explain how the classic Halftrend works? And what determines the trend change?

  21. Krallenmann • 03/10/2017 #

    Hallo Nicolas, kannst du mir die Regeln für den Halftrend Indikator sagen? Aus dem Code kann ich die Regeln nicht erkennen. Ich möchte verstehen, wie er funktioniert. Danke und viele Grüße

  22. davefransman • 03/10/2017 #

    Dear Nicolas, i want set a alert on the “HalfTrend “custom moving average” met Heikin Ashi when color changes. In the normal alert modus/settings, i cant set this. Can you assist?

    Thank you!

    • Nicolas • 03/10/2017 #

      Please post the question in a new forum topic, that would need custom coding I believe.

avatar
Register or

Likes

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

+5 more likes

Related users ' posts
JS
9 months ago
Trendilo
Trendilo
0
Indicators
Nicolas
10 months ago
Anthony2A Bjr, j ai des erreurs sur la ligne 69, 74, 78 et 80. sur drawcandle drawtext et endif. si ...
Lucas0000 Hello, Congratulations on this programming, it seems incredible to me, I am new to this but ...
plbourse Hello, I am trying to use this singal (in fact I have converted it to an indicateur giving B...
BriceE Bonjour Nicolas, Je suis a la recherche d'indicateurs pour me donner la meilleure indicatio...
Nicolas
11 months ago
Maxime Baudin Well done Nicolas, creative!
Stenozar Hi Nicolas, please can you explain how to read/use this indicator? thanks!
FXtonio @RICOU en 1 minutes avec un filtre de tendance ZLSMA 200 et eventuellement un rsi 7 , 69% de...
JC_Bywan For people interested in the screener: https://www.prorealcode.com/topic/screener-buy-sell-m...
octum Gracias NJicolas. Las lineas 35 y 36 dan fallo. (¿Es adrede para iniciados?) Puedes co...
Nicolas
1 year ago
f1_maik Ein sehr schöner Indikator, vielen Dank. Wenn ich den Indikator importiere und starte hat d...
Nicolas das ist in der Tat normal, Sie müssen die Auf- und Abwärtsfarbe direkt im Parameterfenster d...
FXtonio Bonjour Nicolas, merci pour cette merveille, je l'utilise en compl2ment du "magical buy sell...
Nicolas Yes, Magic if the variable that contains the value of the line, you can test if it goes up o...
dadah1987 Bonjour Nicolas, merci pour cet indicateur. Utilisant pour l'instant la création simplifié p...
Nicolas Merci d'ouvrir un sujet sur le forum avec une description complète du système.
GustavoLoboOrenstein Is it possible to add histogram with only increasing bars?
Nicolas Je ne rencontre pas ce problème avec le NASDAQ par exemple, ce serait plus simple d'ouvrir u...
YvesRobert Bonjour Nicolas, en effet ca marche, je me suis trompé, j'ai bien tout le tracé. C'est parce...
oliTR Bonjour, les conditions longCond et shortCond ne contiennent-elles pas une condition qui s'a...
supertiti Bel outil si on ne se tape pas sur les doigts avec ! Comment ajoute-on une image avec le co...
magnus59 Hi Nicolas, thaks for your great work here, I need a scanner for the swedish OMX when ma...
Nicolas Yes, sure please open a new topic in the ProScreener forum section, thank you.
paullyons Hello! Thanks for post your indicators. I'd like you to let me know how to draw lines for ...
Rafa Hi Nicolas! I can´t install this indicator. it installs in a separate window not as an av...
Nicolas Add it on the price, see how: https://www.prorealcode.com/blog/video-tutorials/how-to-add-an...
Frankyslo1 No consigo instalarlo en el precio en PRL-version 10
Jiacky
2 years ago
Kalman Filter
Kalman Filter
0
Indicators
Stenozar Hi Sever, how can I visualize the coloured areas?
Sever Hi Stenozar, You need to add the color zones yourself , just go to Add Color Zone To set ...
atlante hi nicolas this indicator have 2 wrong borderline and islalastbarupdate. thank you can you h...
Nicolas That'"s because you are not using PRT v11? Just remove lines 59 to 62
Kanamax Hi Roberto, sorry for my confusing previous posts (forget them). My request is very simple,...
robertogozzi Please start a new topic in ProOrder support.
robertogozzi There you go: myMagicTrend = CALL “Magic Trend custom”[20, 14, 1, 5] alpha = 105 b = 0...
johann8 exactly :) Thank you all for the help!
max_92 Ciao Roberto, ho scaricato l'indicatore e come ti avevano già scritto sopra anch'io vedo la ...

Top