PureBytes Links
Trading Reference Links
|
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 amibroker@xxxxxxxxxxxxxxx, "jfenello" <jay@xxx> 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); >
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|