[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Slope of Moving Averages



PureBytes Links

Trading Reference Links

easiest slope is the ROC function. Basicly gives you the slope in percentage terms over a function of your liking (MA1), over the period of you liking.
 
so for example the 1 bar slope of MA1 and MA2 in percentage terms are:
 
per = 1; // period
 
MA1 = MA(Close,50); ROCMA1 = ROC(MA1,per);
MA2 = MA(Close,20); ROCMA2 = ROC(MA2,per);
rgds, Ed
 
 
 
----- Original Message -----
From: jfenello
Sent: Saturday, February 21, 2009 11:12 PM
Subject: [amibroker] Slope of Moving Averages


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/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___