Insert MA into Stochastic

 

Hi,



I am currently learning to make EA, and I was wondering how can moving average be inserted in to another indicator like the picture I uploaded. With the platform you can insert it simply by dragging MA file from the navigator menu in to the other indicator. So my question is how can make an EA do that ?





MA in Stochastic



The purple is Stochastic, and the Yellow is MA based on "Previous indicator's data".

 

I think you need rewriting the code of your indicator, using iMAOnArray function to calculate the ma of its value.

You can refer to the source code of MACD at 'Moving Average Convergence/Divergence, MACD', because its singal value is the MA of MACD's values.

 
Thank you for your fast response. It really helped :) actually stochastic has MA included in the code, just like MACD :) so this solves my problem :)
Reason: