PureBytes Links
Trading Reference Links
|
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" <don.edwards@xxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
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
>
>
>
>
>
>
>
|