Would the linear regression slope do the job for you? http://www.amibroker.com/guide/afl/afl_view.php?id=84
Mike --- 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); >
