PureBytes Links
Trading Reference Links
|
"Please may I ask you a question about your useful Linear Regression
Trendline Channel v2.0 indicator?"
http://users.bigpond.com/prominex/MetaStock/LinRegTrend.txt
Hmmm... Who dares to question my MS code?
Ok, Ok... shoot. :)
"When I plot this indicator together with your Channel indicator,
I would expect to see the three lines converge.
The LR lines do but the Bands/Channels don't."
Your code is taking the standard deviation of the Linear Regression
*Indicator*. My code takes the standard deviation of the Linear
Regression *trendline*.
"why do you favour a value of 63 as your default?"
63 trading periods is 3 months' data on a complete daily chart.
IMO, it looks like a useful number of bars to determine intermediate
trend.
jose '-)
--- In Metastockusers@xxxxxxxxxxxxxxx, Kevin <kevin_barry@xxxx> wrote:
> Hello Jose,
>
> Please may I ask you a question about your useful Linear Regression
> Trendline Channel v2.0 indicator?
>
> I have created a LR Bands indicator thus:
>
> Pds:=Input("LR Periods",2,100,20);
> SD:=Input("Standard Deviations",0,3,2);
> LR:=LinearReg(C,Pds,S,1);
> Upper:=LR + Stdev(LR,Pds)*SD;
> Lower:=LR - Stdev(LR,Pds)*SD;
> Upper;
> LR;
> Lower;
>
> When I plot this indicator together with your Channel indicator, I
would
> expect to see the three lines converge. The LR lines do but the
> Bands/Channels don't.
>
> I see that in your code, you have made an adjustment to the
calculation of
> the Standard Deviation. Would you mind explaining the reasoning
behind that
> part of your formula? And, as I'm at it, why do you favour a value
> of 63 as your default?
>
> Thanks in advance.
>
> Regards,
> Kevin
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/zMEolB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|