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

RE: [amibroker] Unexpected limitation of ValueWhen()



PureBytes Links

Trading Reference Links




<SPAN 
class=809414116-29072003>Owen,
I 
believe it needs to be a constant. try perhaps.....
<FONT 
color=#282828 size=2> 
x=IIf<FONT face=Arial 
size=2>(C<FONT face=Arial 
size=2> > O<FONT face=Arial 
size=2>,1<FONT face=Arial 
size=2>,2<FONT face=Arial 
size=2>);
ValueWhen<FONT color=#282828 face=Arial 
size=2>(C<FONT 
color=#282828 face=Arial size=2> < <FONT color=#000000 face=Arial 
size=2>O,<FONT 
color=#000000 face=Arial size=2>H<FONT color=#282828 face=Arial 
size=2>,LastValue<FONT color=#282828 
size=2>(x));
 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Owen Davies 
[mailto:owen5819@xxxxxxxxxxxx]Sent: Tuesday, July 29, 2003 12:34 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
Unexpected limitation of ValueWhen()I just tried to do 
this:ValueWhen(C < O,H,IIf(C > O,1,2));It produces a 
bad-argument error message.  Does anyone know a way to getaround 
this?Many thanks.Owen DaviesSend 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor












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 the Yahoo! Terms of Service.