You could try something like this for slope: myMA1 = MA(C,4);
SlopeMA1 = 10000*(myMA1-Ref(myMA1,-1))/1; Plot(round(SlopeMA1), "SlopeMA1", colorGreen); Probably a dozen other ways to calculate and plot slopes. --- In [email protected], "jfenello" <j...@...> wrote: > > > Anyone figure out how to test the slope of a moving average > before executing a position? > > I keep getting stuck with testing an array, as in: > > MA1 = MA(Close,50); > MA2 = MA(Close,20); > if (MA1[1] < MA1[2]) Short = Cross(MA1,MA2); >
