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

Re: Slope



PureBytes Links

Trading Reference Links

Schalk, that's fairly simple. There is a function inside Metastock called
linear regression slope (don't get this confused with the linear regression
function) that you can use. Say you want to put this in a column in an
exploration, and using your parameters, you would type in:

LinRegSlope(C,20)

This gives the slope of a line drawn from the Close 20 days ago to the Close
today (the "C" above indicates Close; you can use High, Low or Open if you
want). Positive values indicate an up slope, -ve values a down slope over
the period you specified. Greater numbers indicate a steeper slope. Thus,
+0.254 is a steeper (up) slope than 0.005, and -0.254 is a steeper (down)
slope that -0.005. Hope this helps.

Shashi
============================================================================
=========

Date: Fri, 13 Jul 2001 08:50:37 +0200
From: "Schalk Pienaar (HO)" <schalkp@xxxxxxxxxxxx>
Subject: RE: metastock-digest V1 #1385

Greetings from South Africa

I am new to this newsletter and to charting and to Metastock. I got hold of
a version 6.52 just to see if I am compatable to this business and would ask
a lot of dumb questions in the hope that you experts will be able to give
good advice.

The first thing I want to know is how to write an indicator that can give
the gradient of a share over a spesified previous period e.g. gradient of a
line drawn from the closing price 20 days ago to the closing price today?

Can anybody help - please?

Regards

Schalk Pienaar
Manager Capital Investment Process
AngloPlatinum Corporation
schalkp@xxxxxxxxxxxxx
Tel:  (011) 373-6410
Fax: (011) 373-5410