Nicolas

Fifty shades of Half Trend indicator

Category: Indicators By: Nicolas Created: March 10, 2017, 4:51 PM
March 10, 2017, 4:51 PM
Indicators
30 Comments
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.

Download
Filename: halftrend-quantile-bands-prorealtime-indicator.png
Downloads: 102
Download
Filename: triple-halftrend-prorealtime.png
Downloads: 194
Download
Filename: halftrend-jurik-MA.png
Downloads: 97
Download
Filename: halftrend-custom-MA.png
Downloads: 202
Download
Filename: halftrend-prorealtime.png
Downloads: 123
Download
Filename: PRC_HalfTrend-Triple.itf
Downloads: 405
Download
Filename: PRC_HalfTrend.itf
Downloads: 707
Download
Filename: PRC_HalfTrend-adaptive-length.itf
Downloads: 567
Download
Filename: PRC_HalfTrend-JMA.itf
Downloads: 353
Download
Filename: PRC_HalfTrend-Quantile-Bands.itf
Downloads: 328
Download
Filename: PRC_HalfTrend-customMA.itf
Downloads: 368
Nicolas
Nicolas Legend
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

davefransman
4 years ago
#

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
4 years ago
#

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

Krallenmann
5 years ago
#

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

Ice_man
6 years ago
#

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

chris9765
6 years ago
#

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

Nicolas
6 years ago
#

What signal please? The color changing?

Denis
7 years ago
#

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

Denis
7 years ago
#

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

Denis
7 years ago
#

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

leyoy
8 years ago
#

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

Nicolas
8 years ago
#

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

rigel
8 years ago
#

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

Nicolas
8 years ago
#

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

rigel
8 years ago
#

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
8 years ago
#

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

marinober
8 years ago
#

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

rigel
8 years ago
#

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

gio24
8 years ago
#

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

Nicolas
8 years ago
#

Download files and import them in the platform

leyoy
9 years ago
#

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

Nicolas
9 years ago
#

Oui je sais que c'est possible :/

leyoy
9 years ago
#

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
9 years ago
#

Il faut utiliser backgroundcolor, bon courage. 

TheAccountant
9 years ago
#

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 !

Riccardo Benedetti
9 years ago
#

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

 

Riccardo Benedetti
9 years ago
#

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

Stenozar
10 years ago
#

Hi Nicolas, does it work with DAX? which indicator you prefer to trade Dax?

thanks a lot for your contribution

ludo6977
10 years ago
#

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

 

diegofe_2000
10 years ago
#

mil gracias NICOLAS que maravilla de indicador,  me cae "como anillo al dedo"

 

nuevamente , mil gracias

AngelPujalt
10 years ago
#

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.

ProRealCode ProRealCode
Loading...