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

Re: [amibroker] Period beteween two given dates in AFL



PureBytes Links

Trading Reference Links

Sum(C>Ref(C,-1),3)==3;

/Johan



--- In amibroker@xxxxxxxxxxxxxxx, "Glen Haponek" <ghaponek@xxxx> 
wrote:
> Could someone please explain how I can write something like  ( 
Close > Lag Close 1 and Lag Close 1 > lag Close 2 and Lag Close 2 > 
Lag Close 3) in an IF or WHILE in AFL such that I don't get : 
> 
> Error 3.
> Condition in IF, WHILE, FOR statements
> has to be Numeric or Boolean type.
> You can not use array here,
> please use [] (array subscript operator)
> to access array elements
> 
> I would greatly appreciate it.  I have been going in circles with 
this and do not see any explanation in the user's guide, or examples 
in the AFL library.  I've been trying to resolve this for longer 
than I would like to admit, and my frustration level is fairly high.
> 
> Thanks,
> Glen



------------------------ 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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/