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

[amibroker] Re: How to measure slope of MA



PureBytes Links

Trading Reference Links

Bill, Ara, & Kar,
I think we are all talking about the same thing, just using different 
words/formulas:

Slope = (line - Ref(Line,-x) ) / Ref(Line,-x);
is identical to
Slope = ROC(line,x)/100;
if you replace line with 50-day MA you get
Slope = ROC(MA(C,50),x)/100:
if you remove the % scaling factor you get
Slope = ROC(MA(C,50),x);
The smaller that "x" is, the closer the secant approaches the tangent.
Therefore
S50 = ROC(MA(C,50),1); 
is the closest approximation of the tangent slope of the MA.

The key to distinguishing between the secant and the tangent values 
to make sure the difference is measured over the smallest possible 
distance, which is 1 bar.


--- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxx> wrote:
>
> Slope of any line is
>
> Slope = (line - Ref(Line,-x) ) / Ref(Line,-x);
>
> where x is whatever length you choose (1 or larger)--- In 
amibroker@xxxxxxxxxxxxxxx, "kar_avi" <kar_avi@xxx> wrote:
>
> --- In amibroker@xxxxxxxxxxxxxxx, "wavemechanic" <fimdot@> wrote:
> 
> sorry for the delay in replying. you are absolutely right
> wavemechanic. I am looking at the tangent to determine a few things
> like the strength of the trend, the steepness (to research more on
> sustainability), and the overall trend in 3 different timeframes.
> 
> thanks
> 
> >
> > You are assuming that the questioner is after the secant as 
opposed
> to the tangent.  This simple approximation might be what the
> questioner had in mind but we don't know without his input.
> > 
> > Bill
> >   
> > ----- Original Message ----- 
> > From: "Ron Rowland" <rowland@>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Tuesday, July 17, 2007 6:26 PM
> > Subject: [amibroker] Re: How to measure slope of MA
> > 
> > 
> > > Measuring the slope of an MA provides you with a way of 
determining 
> > > which way the MA is headed and the strength of the trend.
> > > 
> > > The slope is essentially the one-day change in the MA.  When 
the 
> > > slope approaches zero the MA is flattening out and could be 
about to 
> > > reverse direction.
> > > 
> > > Also, multiple crossings of a security through a MA that has 
little 
> > > or no slope indicates a trading range.
> > > 
> > > S50 = ROC(MA(C,50),1); // The 1-day slope of the 50-day MA
> > > 
> > > --- In amibroker@xxxxxxxxxxxxxxx, "wavemechanic" <fimdot@> 
wrote:
> > >>
> > >> Since MA is a curve and not a straight line what do you mean 
by the 
> > > slope?  What exactly are you trying to calculate and what 
> > > approximations are you making?
> > >> 
> > >> Bill
> > >> 
> > >> ----- Original Message ----- 
> > >> From: "kar_avi" <kar_avi@>
> > >> To: <amibroker@xxxxxxxxxxxxxxx>
> > >> Sent: Tuesday, July 17, 2007 2:00 PM
> > >> Subject: [amibroker] How to measure slope of MA
> > >> 
> > >> 
> > >> > Hello,
> > >> > 
> > >> > Please let me know how to measure the slope of a MA. I can 
only 
> > > find
> > >> > ways to measure slope of linear regression line.
> > >> > 
> > >> > Thanks
> > >> > 
> > >> > 
> > >> > 
> > >> > 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
> > >> > 
> > >> > Yahoo! Groups Links
> > >> > 
> > >> > 
> > >> > 
> > >> > 
> > >> > 
> > >> > -- 
> > >> > No virus found in this incoming message.
> > >> > Checked by AVG Free Edition. 
> > >> > Version: 7.5.476 / Virus Database: 269.10.8/904 - Release 
Date: 
> > > 7/16/2007 5:42 PM
> > >> > 
> > >> >
> > >>
> > > 
> > > 
> > > 
> > > 
> > > 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
> > > 
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -- 
> > > No virus found in this incoming message.
> > > Checked by AVG Free Edition. 
> > > Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date:
> 7/17/2007 6:30 PM
> > > 
> > >
> >
>




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
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/