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

[amibroker] Bug in LLV ?



PureBytes Links

Trading Reference Links

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/