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

RE: [amibroker] How to solve in AFL.....



PureBytes Links

Trading Reference Links

I believe BA can handle that by starting a day later 
Also I have worked around by giving it a start value
X = a*b;
x = IIF(Condition is TRUE, a * b,
    IIF(Condition is FALSE, Ref(x,-1),NULL));

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia

-----Original Message-----
From: Keith Bennett [mailto:kbennett@xxxxxxxxxx] 
Sent: Thursday, 8 May 2003 6:33 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] How to solve in AFL.....


Hi,

The following situation frequently occurs, but it doesn't seem 
possible to solve directly due to the self reference.

How do you tackle this in AFL:

x = IIF(Condition is TRUE, a * b,
    IIF(Condition is FALSE, Ref(x,-1),NULL));

Thanks
Keith



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/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/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/