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

RE: [amibroker] Improvement of AFL on-line function reference and AFL library



PureBytes Links

Trading Reference Links

Hi,

I am using

angle=atan(price/#of bars); result is in radians
RAD_TO_DEG = 180/3.1415926; // radians to degrees

Regards
Guno


--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" 
<TSOKAKIS@xxxx> wrote:
> Steve,
> PI is not directly available in AFL structure.
> You should use some alternative.
> Example : Since tan(pi/4)=1, then atan(1)=pi/4 and, finally,
> pi=4*atan(1).
> Note also that acos() and asin() are also supported.
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "Steve Almond" <steve2@xxxx> 
wrote:
> > Ara,
> > 
> > Excuse the simple questions. 
> > 1. How do I specify the "#of bars" ? Say I want the angle over a 
5 
> bar period. Can I say:
> > ang=atan(C-Ref(C,-5));
> > 
> > Plot(ang,"angle5",1,1); 
> > 
> > 2. How does AB show 'PI'? To get degrees, do I need:
> > 
> > Plot(2*PI*ang,"angle deg",1,1); 
> > 
> > 
> > 
> > Steve
> > 
> > 
> > ----- Original Message ----- 
> > From: "Ara Kaloustian" <ara1@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Friday, July 09, 2004 7:30 PM
> > Subject: Re: [amibroker] To all you amibroker guru's
> > 
> > 
> > > use
> > > 
> > > angle=atan(price/#of bars); result is in radians
> > > 
> > > ----- Original Message ----- 
> > > From: "gunovanengel" <gunovanengel@xxxx>
> > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > Sent: Friday, July 09, 2004 11:24 AM
> > > Subject: [amibroker] To all you amibroker guru's
> > > 
> > > 
> > > > Can you explain to me how thr calculate the angle of a line 
in
> > > > amibroker
> > > >
> > > > Thanks
> > > > Guno
> > > >
> > > >
> > > >
> > > >
> > > > Check AmiBroker web page at:
> > > > http://www.amibroker.com/
> > > >
> > > > Check group FAQ at:
> > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Check AmiBroker web page at:
> > > http://www.amibroker.com/
> > > 
> > > Check group FAQ at: 
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > >  
> > > 
> > > 
> > >



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/