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

[EquisMetaStock Group] Re: Linear Regression


  • Date: Wed, 16 Dec 2009 19:24:05 -0000
  • From: pumrysh <no_reply@xxxxxxxxxxxxxxx>
  • Subject: [EquisMetaStock Group] Re: Linear Regression

PureBytes Links

Trading Reference Links

Rick,

Bollinger Bands use the stdev() function to calculate the upper and
lower bands. The middle band is a 20-period simple moving average. Here's the formula.

Periods:=input("Enter the number of periods: ",5,50,20);
A:= Close 
X:= mov(A,Periods,S);
X + ( 2 * stdev( A, Periods ));
X - ( 2 * stdev( A, Periods ))


Modifying this formula may be what you need. The question is the straight linear regression line going through closing prices. You didn't mention how many closing prices.


Preston
  


--- In equismetastock@xxxxxxxxxxxxxxx, "rickbw" <rickbw@xxx> wrote:
>
> I was hoping to find a formula that would be able to help me build an indicator which would draw a straight linear regression line through closing prices and then placing an upper and lower parallel line 2 standard deviations away from the linear regression line.  I'd like to build the indicator and parallel lines so that I could use them in explorer.  Can anyone tell me what function I would use? I can find a way to use linear regression for bands, but not straight lines.   Any help or pointing in the right direction would be appreciated.
>




------------------------------------

Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

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

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

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/