- Katılım
- 23 Eki 2020
- Mesajlar
- 1,828
"Normalized" Linear Regression Slope * To: metastock@xxxxxxxxxxxxx * Subject: "Normalized" Linear Regression Slope * From: Ron <ronber@xxxxxxxxxxxxx> * Date: Sat, 25 May 2002 08:49:56 -0400 * References: <LNBBKIIKPJFAFHFNIBKOKEPLFCAA.neo1@xxxxxxxxx> * Reply-To: metastock@xxxxxxxxxxxxx * Sender: owner-metastock@xxxxxxxxxxxxx * User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 Hi folks - I'm using the following code trying to get the slope of the % change in price (close). I'm using: |
|
Linear Regression Slope - Normalized Period:=Input("Periods",3,200,10); ZeroKiller:=If(C=Ref(C,-1),0,C/(C-Ref(C,-1))); NormalSlope:=LinRegSlope(ZeroKiller,Period); NormalSlope; 0; |
I think I want this or else a change of $1 for a $10 stock and a $100 stock would be the same. Is that correct? I'm using ZeroKiller to get rid of the div by 0 error message that shows up. (Although the plot still is drawn) I'd appreciate any help y'all have to offer. TIA Ron | |
| |
Source / From: |