PureBytes Links
Trading Reference Links
|
On Wed, 29 Oct 2003 18:37:26 +0100, in Amibroker you wrote:
> 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 :-).
Indeed ;-) But is there another way to get the number of bars?
Thank you for your reply.
Regards, Thomas
--
Thomas Ludwig
PGP key (RSA) available on request.
Fingerprint: 4356 55FF 3412 277A 9741 1CFA B9A6 7B90
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/xlw.sC/XP.FAA/3jkFAA/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/
|