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

[amibroker] Re: Embed IIF in Title ?



PureBytes Links

Trading Reference Links

Jayson, see my previous comment.
a solution could be through StrRight function...
DT
--- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> HB,
> 
> How about Writeif()??
> Title = "Volume " + WriteVal(VM,1.0) + "," + WriteVal(VT,1.0) + ","
> +WriteIf(VH==0, "000", WriteVal(VH,1.0));
> 
> 
> 
> Jayson
> -----Original Message-----
> From: HB [mailto:hossamb@x...]
> Sent: Tuesday, February 18, 2003 11:34 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Embed IIF in Title ?
> 
> 
> 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
> 
> 
>       Yahoo! Groups Sponsor
>             ADVERTISEMENT
> 
> 
> 
> 
> 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.


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/