Thanks for your help, guys. This makes more sense.

Chuck Dudek

--- In [email protected], "Joe Landry" <[EMAIL PROTECTED]> wrote:
>
> A clip from Corey Saxe ....to convert radians to degrees and vice
versa.  AB native functions expect/yield radians 
> 
> Y= Price;
> 
> pi = 4 * atan(1) ; //Pi
> 
> RTD = 180/pi;//radians to degrees
> 
> DTR = pi/180;//degrees to radians
> 
> Here's a clip from the users guide with the conversion in the title
statement. 
> 
> Hope this helps
> 
> JOE 
> 
>   
> 
> x = Cum(1);
> 
> lastx = LastValue( x ); Daysback = 20; aa = LastValue(
LinRegIntercept( Close, Daysback) );
> 
> bb = LastValue( LinRegSlope( Close, Daysback ) );
> 
> y = Aa + bb * ( x - (Lastx - DaysBack) ); Plot( Close, "Close",
colorBlack, styleCandle );
> 
> pi = 4 * atan(1) ; //Pi
> 
> Plot( IIf( x >= (lastx - Daysback), y, -1e10 ), "LinReg", colorRed );
> 
> Title="ANGLE="+WriteVal(bb)+" RADS"+",
["+WriteVal(45*bb/atan(1),1.0)+" DEGS]"
> 
> + "\n" + WriteVal(bb*(180/pi));
> 
> ----- Original Message ----- 
> 
>   From: wavemechanic 
>   To: [email protected] 
>   Sent: Wednesday, August 23, 2006 7:44 PM
>   Subject: Re: [amibroker] Never Took Trigonometry
> 
> 
>   The angle to the vertical (if memory is OK - double check me) in
radians of a line with slope x = atan(x).  And the angle in degrees is
45 * atan(x) / atan(1).






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/
 



Reply via email to