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

[amibroker] Re: Bug in LLV ?



PureBytes Links

Trading Reference Links

In
SYNTAX  llv( ARRAY, periods ) 
periods is positive.
On the other side, a negative periods would hint to the lowest value 
for the next bars. I would be more than happy to know, but...
DT
--- In amibroker@xxxxxxxxxxxxxxx, 520001085531-0001@xxxx wrote:
> I think the LLV function does not work correct.
> For example: I do an EOD scan on the current stock
> and define a date range (say 1/1/03 to today). 
> I have a calculation which says
> 
>   macdline = macd();
>   leastVal = LLV(macdline, -5);
> 
> Since it scans from 1/1/03 to today, one would expect
> that leastVal would be a different value in each iteration 
> or at least every 5 days, but surprisingly it always has a 
> constant value over the given full date range.
> 
> IMHO the LLV function here always uses the least of 
> the last 5 values of the macdLine array. I would have expected
> that it better would use the least value of the "currently" tested 
> day plus 4 days prior to that... Shouldn't it function that way?
> 
> Uenal


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/46VHAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/