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

[amibroker] Re: Embed IIF in Title ?



PureBytes Links

Trading Reference Links

Anthony,
check how do you read V=63046.
your formula will give 0,63,46.
DT
--- In amibroker@xxxxxxxxxxxxxxx, Anthony Faragasso <ajf1111@xxxx> 
wrote:
> Hb,
> 
> Try writeIf();
> 
> 
> 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) + ","
> +WriteIf(VH==0, "000", WriteVal(VH,1.0));
> 
> 
> HB wrote:
> 
> >  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/