Triangular Moving Average fitted into Custom Indicator.

 

Hi, I'm a newby and therefore I'm very pleased to communicate with you all.

My question is: What is the simpliest and quickiest way to add in my indicator code a moving average that is not present in default modes? For instance, I'm talking about Triangular Moving Average, consisting of an average of an other average, both simple mode, and both, in my case, to apply to each indicator's bar.

Thank you for the attention,

SA

 

To get the average of another MA you may want to take a look at the following MQL functions:

https://docs.mql4.com/indicators/iMAOnArray

https://docs.mql4.com/indicators/iMA

 
See for example the DEMA indicator.
Reason: