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

Re: [amibroker] some help to understand the slopes



PureBytes Links

Trading Reference Links

Seede,

The normal interpretation of "slope" is distance Y / distance X.  If X=Y it would be a 45 degree angle which would be a slope of 1.  The slope can range from -infinity to + infinity.  This applies when the units of measure are the same.  However, in price charts the X and Y units are not the same.  The X axis is "bars" and can represent different times, volumes, ranges, ticks, etc.  The Y axis is price.  The AFL ROC(p,n) function uses % change in p over n bars.  This is a useful way to measure slope as variations in starting price are normalized (the slope is also multiplied by 100).  

Dennis

On Sep 2, 2007, at 4:42 PM, Sidney Kaiser wrote:

Think radians, not degrees.  ( 2pi not 360 )
 
Sid
murthysuresh <money@xxxxxxxxxxxxxx> wrote:
Hello
I need some help to understand the interpretation of slope. I am using 
this formula to understand it visually but i am getting out of context.
Line = C; //MA(C,50);
x=30;
Slope = (line - Ref(Line,-x) ) / Ref(Line,-x);
WriteVal (slope);

To my knowlege, a 360deg is complete circle. however the number 
generated by this formula seems to be different. can someone explain or 
point to info on how to understand the way angles should be 
interpretted.
thanks

Seede

__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




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

__,_._,___