A snippet from work by Corey Saxe (Ehler's Instantaneous Trendline - a conversion to AFL)
pi = 4 * atan(1) ; //Pi RTD = 180/pi;//radians to degrees DTR = pi/180;//degrees to radians Hope this helps one piece of your requirement. Also, I've attached another resource that is used to calculate the slope of moving averages and reports in degrees. JOE ----- Original Message ----- From: "doedau" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, June 13, 2006 9:01 AM Subject: [amibroker] slope of an indicator eg moving average > Firstly, thanks to those who helped on my average over vol histogram > problem - what a great group of people here. > > Now I want to plot a moving average (which even I can do) then also > somehow measure/plot the slope of that line ie up, flat, down and > preferably a number that relates to the degree of slope. I think the > Tan function would do it, but it involves radians and so far I cant > get it to work. Anyone tackled this before or have the math to help me > work it out? > Thanks in advance - Don. > > > > > > > Please note that this group is for discussion between users only. > > To get support from AmiBroker please send an e-mail directly to > SUPPORT {at} amibroker.com > > For other support material please check also: > http://www.amibroker.com/support.html > > > Yahoo! Groups Links > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/GHeqlB/TM --------------------------------------------------------------------~-> Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Slope of Moving Averages.afl
Description: Binary data
