Indicators: TRiX

 

TRiX:

TRiX

TRiX

Author: Mladen Rakic

 
Can anyone tell me how to add a moving average to the trix indicator?
 

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?

 
lucassantos389_:
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!

 
lol. this indicator has the same results as so many others. for example smoothed roc. this is kinda strange, isn't it?
 
lucassantos389_ indicator?
João Pedro Indicators> Trend --> click and drag the moving average into the window of the indicator already inserted in the chart.


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.

Aplicar um indicador a outro
Aplicar um indicador a outro
  • www.mql5.com
Ao escrever um indicador que usa a forma curta da solicitação da função OnCalculate(), você pode deixar passar o fato de que um indicador pode ser calculado, não apenas pelos dados de preço, mas também pelos dados de algum outro indicador (não importando se for incorporado ou um personalizado). Você quer melhorar um indicador para sua aplicação correta a outros dados do indicador? Vamos analisar neste artigo todas as etapas necessárias para tal modificação.
Files:
TrixciMA_.mq5  10 kb
 
João Pedro Indicators> Trend --> click and drag the moving average into the window of the indicator already inserted in the chart. I hope I helped you!

Trading forum, automated trading systems and testing trading strategies

moving average in ATR

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: