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

[amibroker] Re: commodities data?



PureBytes Links

Trading Reference Links

Without seeing the code by which you determine that 'the first condition is
true', I can't give you a definitive answer, but depending upon the values
assigned to alphafast and alphapf, this exploration will produce quite
different results:

Filter=1;

alphafast=0;
alphapf=1;

AddTextColumn(WriteIf(alphafast,"Alphafast",WriteIf
(alphapf,"Alphapf","Alphanp")),"Signal Type");

-john
----- Original Message ----- 
From: "stephen_castleden" <stephen_castleden@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, July 30, 2004 5:46 AM
Subject: [amibroker] Using writeif in Addtextcolumn


Hello,
I would like to use writeif in this way in an exploration:

AddTextColumn(WriteIf(alphafast,"Alphafast",WriteIf
(alphapf,"Alphapf","Alphanp")),"Signal Type");

but this only ever writes the last string (even if first condition is
true). Could someone let me know how I can write this code.

Thankyou,
Stephen :-)




Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/