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

[EquisMetaStock Group] Re: Linear Regression


  • Date: Wed, 16 Dec 2009 19:58:29 -0000
  • From: "rickbw" <rickbw@xxxxxxxxxxx>
  • Subject: [EquisMetaStock Group] Re: Linear Regression

PureBytes Links

Trading Reference Links

Preston,

Thanks for the response.   The formula presented is not exactly what I was hoping for - I actually want to be able to build an indicator that provides a straight line through the center of prices (H+L+C/3) and then adding an upper and lower straight line 2 standard deviations apart.  I will make the timeframe variable (1 month, 3 months, 6 months) once I uild the indicator.  Ultimate plans would be to be able to scan with an exploration for certain characteristics.

Rick

--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxx> wrote:
>
> 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@> 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/