Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2008.04.26 10:22

Trix - indicator for MetaTrader 4

| English Русский 中文 Español Deutsch 日本語 Português

votes: 1
Trix.mq4 (4.61 KB)view

Author: Raff

Indicator Trix is used in determining of the overbought/oversold market conditions. You can also use it as an impulse indicator. Like in other oscillators, the values of Trix range near zero. When Trix is used as an oscillator, a positive value says for the overbought market, whereas a negative values testifies the oversold market.

When Trix is used as an impulse indicator, a positive value means that the impulse is growing, whereas a negative value will testify a sinking impulse.

Many analysts suppose it to be a signal to buy, if Trix intersects zero value from top to bottom, whereas the intersection of it from bottom to top is considered as a signal to sell. If there is a divergence between the price and indicator line, this informs about a turning point in the market trend.

Input Type Default value
Number Close Price type for calculations
Length Number 18 Amount of bars for calculations

Trix calculates the triple exponential moving average from the logarithmic price defined by the parameter Price for the period defined by the parameter Length. In calculations, the value of the current bar is subtracted from the value of the preceding bar – this excludes cycles, the length of which is smaller than the value of the parameter Length.

Two main advantages of Trix as compared to other trend-following indicators is its ability to filter market noises and its quicker response to the market situation. Using the triple exponential moving average, Trix filters market noises and excludes short-term cycles that may inform about changes in movements on the market. If you use Trix as your main indicator, it would be recommended to use it together with other indicators in order to prevent following false signals.

Example: In order to assign the value of indicator TRIX to a variable for High price of 14 bars, you should use the following code: Var1 = TRIX(High,14);

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Elliott Wave Oscillator Elliott Wave Oscillator

A good oscillator for helping you count Elliot waves.

DWMChannels DWMChannels

Shows simple channels for daily, weekly, monthly timeframes.