| 
 PureBytes Links 
Trading Reference Links 
 | 
Hi,
 
    
    I would like to plot the regression slopeof the last 13 
bars.
 
I have seen this..but is nor working 
for me..
 
x = Cum(1);lastx = LastValue( x 
);Daysback = 10;aa = LastValue( LinRegIntercept( Close, 
Daysback) );bb = LastValue( LinRegSlope( Close, Daysback ) );y = Aa 
+ bb * ( x - (Lastx - DaysBack) );Plot( Close, "Close", colorBlack, 
styleCandle );Plot( IIf( x >= (lastx - Daysback), y, -1e10 ), "LinReg", 
colorRed );
thanks in advance
 
j
Yahoo! Groups Sponsor
  ADVERTISEMENT 
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
 
 |