Trix

Custom MT4 expert advisors published here.

Moderator: admin

Trix

Postby Alexander.Gettinger » Tue Jun 19, 2012 5:32 pm

Original indicator: viewtopic.php?f=17&t=1022

The TRIX Indicator was developed in the early 1980s by Jack Hutson who was an editor for the Technical Analysis of Stocks and Commodities magazine. Its name is comprised of its calculation: Triple Exponential.

The trix indicator is a tripple-smoothed price weighted against the previous tripple-smoothed price:
TrMA = (EMA(EMA(EMA(price, N), N), N)
TRIX(N)i = (TrMAi - TrMAi - 1) / TrMAi - 1).
SIGNAL(N, S) = SMA(TRIX(N), S)

HISTOGRAM = TRIX - SIGNAL

The formula is from Appel, Gerald: Winning Stock Market Systems. Signalert Corp., Great Neck, N.Y. 1974.

The implementation lets you choose methods individually for each moving average. Please note that the methods marked using (*) requires the corresponding indicators to be downloaded and installed.

The common trading rule is:
Buy when TRIX is below zero and crosses its Signal Line from below.
Sell when TRIX is above zero and crosses its Signal Line from above.


Trix_MQL.PNG


Download:
Trix.mq4
(2.41 KiB) Downloaded 1437 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Trix

Postby lrathi » Tue Feb 12, 2013 1:17 am

Is it possible to have the histogram coloured bars like MACD?

The coloued bars to be when the next bar is lower value to previous bar to be RED and vice versa for when the next bar is higher than previous bar for it to change to green.

Many thanks
lrathi
 
Posts: 5
Joined: Tue Feb 12, 2013 12:36 am

Re: Trix

Postby Alexander.Gettinger » Tue Feb 12, 2013 5:35 pm

lrathi wrote:Is it possible to have the histogram coloured bars like MACD?

The coloued bars to be when the next bar is lower value to previous bar to be RED and vice versa for when the next bar is higher than previous bar for it to change to green.

Many thanks


Yes, possible.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Trix

Postby lrathi » Tue Feb 12, 2013 6:11 pm

Could I ask you to please put it on your list?

With Appreciation
lrathi
 
Posts: 5
Joined: Tue Feb 12, 2013 12:36 am

Re: Trix

Postby Alexander.Gettinger » Thu Feb 28, 2013 5:57 pm

lrathi wrote:The coloued bars to be when the next bar is lower value to previous bar to be RED and vice versa for when the next bar is higher than previous bar for it to change to green.


Trix2_MQL.PNG


Download:
Trix2.mq4
(2.72 KiB) Downloaded 1075 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Trix

Postby dsotomayor » Wed Mar 11, 2015 5:58 am

Hi. Can this be put in a lua extension?

Thanks,
dsotomayor
dsotomayor
 
Posts: 5
Joined: Mon Mar 02, 2015 6:17 am


Re: Trix

Postby dsotomayor » Wed Mar 11, 2015 7:22 am

Thank you. But I did not explain myself well. I would like to have the trix2.mq4 in a lua extension. That way the histogram bars can be colored like the MACD, current bar green when it has a higher value than the previous bar and red when it has a lower value.

Again thank you very much!
dsotomayor
dsotomayor
 
Posts: 5
Joined: Mon Mar 02, 2015 6:17 am

Re: Trix

Postby Apprentice » Thu Mar 12, 2015 3:02 pm

Lua.png

As you can see Lua version already has a histogram added.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Trix

Postby dsotomayor » Fri Mar 13, 2015 7:05 am

Hi. Thank you very much for your responses and patience. This is want I am looking for but for the TRIX indicator.

Again, thank you very much!!!
dsotomayor
Attachments
MACD1.gif
MACD indicator with colored histogram
dsotomayor
 
Posts: 5
Joined: Mon Mar 02, 2015 6:17 am

Next

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: Google [Bot] and 16 guests