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

RE: [amibroker] Slope of macd() or signal()



PureBytes Links

Trading Reference Links



LINREGSLOPE (AFL 1.4) 



SYNTAX 
linregslope( ARRAY, periods )

RETURNS
ARRAY

FUNCTION 
Calculates linear regression line slope from the ARRAY 
using periods range.

EXAMPLE
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 
);
 
Jayson 

<FONT face=Tahoma 
size=2>-----Original Message-----From: samgrayy 
[mailto:samgrayy@xxxx]Sent: Saturday, October 19, 2002 3:18 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Slope 
of macd() or signal()Hi ..Is there a way to 
calculate the macd() slope for example.The arguments for macd() do not 
include a reference to set the time frame.Any help would be 
appreciated.Sam GrayPost 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.