scuse for my poor english, but I'm french.
I cwant to create a moving average of a custom indicator and I don't arrived.
In a first time I created a function for calculate my custom indicator:
private double FctMyslope()
{
doubleMyslope=Slope(EMA(Typical,Lenght),1,0)+Slope (EMA(Typical,Lenght),5,0)+Slope(EMA(Typical,Lenght ),8,0);
return(Myslope);
}
And after I would want to have an EMA of "Myslope". I wrote this but not work
double test=FctMyslope();
double MovSlope=EMA(test,20)[0];
Could you help me please?
Thank's a lot
Comment