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

[amibroker] Embed IIF in Title ?



PureBytes Links

Trading Reference Links

Hello,

Is is possible to embed an IIf statement in a Title statement ?

I'm trying to create a title which displays the volume with comma
seperators.

Here's what I have so far but the IIF is causing problems.

VM = (V-V%1000000)/1000000;  // volume millions part
VT = V%1000000/1000;   // volume thousands part
VH = V%1000;  // volume hundreds part

Title = "Volume " + WriteVal(VM,1.0) + "," + WriteVal(VT,1.0) + "," +
IIF(VH==0, "000", WriteVal(VH,1.0));

The reason I have the IIF instead of a simple WriteVal(VH,1.0) for the last
part is in case it is "000".  It would show up as just "0".  This reasoning
would also apply to the VT number.

Thanks,
HB


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/