PureBytes Links
Trading Reference Links
|
Jayson [and Anthony]check also your thousands digits, is
rounded up to the next integer when the last 3 digits are >500.DELL 60
831 548 gives a reading 60,832,548.DT
--- In <A
href="">amibroker@xxxxxxxxxxxxxxx, "Jayson"
<jcasavant@xxxx> wrote:> Good
Catch Dimitris.....> > Jayson> -----Original
Message-----> From: DIMITRIS TSOKAKIS <<A
href="">TSOKAKIS@xxxx> [<A
href="">mailto:TSOKAKIS@xxxx]> Sent: Tuesday,
February 18, 2003 3:19 PM> To: <A
href="">amibroker@xxxxxxxxxxxxxxx>
Subject: [amibroker] Re: Embed IIF in Title ?> > >
HB,> try> Plot(V,"",2,2);> M=floor(V/10^6);>
T=floor(V/10^3);> V0=WriteVal(V,1.0);> X0=StrRight( V0,
3);> V1=WriteVal(T,1.0);> X1=StrRight(V1,3);> Title="VOLUME
= "+WriteIf(M>0,WriteVal(M,1.0)+",","")+WriteIf>
(T>0,X1+",","")+X0;> It seems to be good...> Dimitris
Tsokakis> --- In <A
href="">amibroker@xxxxxxxxxxxxxxx, "HB"
<hossamb@xxxx> wrote:> > Thank
you Jayson & Anthony !> >> > ----- Original
Message -----> > From: Jayson> > To:
amibroker@xxxxxxxxxxxxxxx>
> Sent: Tuesday, February 18, 2003 11:59> >
Subject: RE: [amibroker] Embed IIF in Title ?> >> >>
> 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 [<A
href="">mailto:hossamb@xxxx]> >
Sent: Tuesday, February 18, 2003 11:34 AM> > To: <A
href="">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> >> >> >>
> Post AmiQuote-related messages ONLY to: <A
href="">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 Yahoo!
Terms of> Service.> >>
> Yahoo! Groups
Sponsor>
>
ADVERTISEMENT> >> >> >> >>
> Post AmiQuote-related messages ONLY to: <A
href="">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 Yahoo!
Terms of> Service.
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.
|