Hi,
This is an interesting indicator since it displays different extremes than RSI or MFI.
I would like to use it for taking profits, but unfortunately it produces very different values at Highs and Lows.
I wonder whether it is possible to squeeze the value into a fixed scale, i.e. +50 to -50 or similar?
Can anyone tell me how to add a moving average to the trix indicator?
Navigator> Indicators> Trend --> click and drag the moving average into the window of the indicator already inserted in the chart.
I hope I've helped!
I hope I've helped!
João pedro, I have the same question as the colleague above, but I would like to put the Moving Average inside the trix code to automate the crossing of Trix with Moving Average.
I managed to do this in the code, but the result is 2 parallel lines and no crossing, and after a lot of brainstorming, I saw that the calculation of the moving average is based on the closing of the candles and not on the trix which would be correct...
Below I put the image of Profit, which I use manually the average in the trix...
And I'd like to do the same, as a customised indicator, on MT5 to automate it...
On MT5 we have:

The standard MT5 trix is 1 line on its own....
Then, below the two parallel lines, I altered the original Trix code to add the Moving Average, and the result is as shown in the print....
After a lot of research in the MQL5 articles, I discovered a function called "begin" that changes the indicator's calculation source... where it takes the information from another indicator, instead of the candles.
But I haven't managed to implement it... It's quite complex to understand....
Applying one indicator to another - MQL5 articles
If you could give me a hand to see the code I've made, I'd really appreciate it.
- www.mql5.com
Trading forum, automated trading systems and testing trading strategies
Daniel Jose, 2022.11.02 12:29
Just be careful with one little thing ... There is a catch when adding MOVING AVERAGES to indicators in the subwindow. Watch out for it. The trick is as follows: If you simply drag the moving average indicator from the Navigator to the indicator in the subwindow, you'll get an incorrect value being displayed in the subwindow's moving average.
To understand how to do this correctly, watch the video:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use

TRiX:
TRiX
Author: Mladen Rakic