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

Re: [amibroker] BarsSince question



PureBytes Links

Trading Reference Links

On Wednesday 29 of October 2003 18:25, Thomas Ludwig wrote:
> Hi!
>
> When using the following lines in Amibroker:
>
> th=Ref(HHV(C,18),-7);
> tl=Ref(LLV(C,18),-7);
> barhigh=BarsSince(th);
> barlow=BarsSince(tl);

barsince's argument should be a boolean type (true/false or not 0/0). the 
argument in your code is always true ("not zero") as HHV(C,18)/LLV(C,18) 
returns always the value different than 0 (the only exception is when C=0 for 
18 bars, but this is rather not interesting case :-).

-- 
Marek Chlopek
mchlopek@xxxxxxx

------------------------ 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/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/