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

Re: [amibroker] Re: Embed IIF in Title ?



PureBytes Links

Trading Reference Links




Yes, thanks DT.  I had modified my code anyway 
to fix this.  I simply added a WriteIf for all the numbers' 
components.
 
HB
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  DIMITRIS 
  TSOKAKIS <TSOKAKIS@xxxxxxxxx> 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, February 18, 2003 
  15:14
  Subject: [amibroker] Re: Embed IIF in 
  Title ?
  HB,tryPlot(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@x...> 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 
  [mailto:hossamb@xxxx]>   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> > > 
  >   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 
  Yahoo! Terms of Service. > 
  >         Yahoo! Groups Sponsor 
  >               
  ADVERTISEMENT>              
  >        
  >        > 
  >   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 
  Yahoo! Terms of Service.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


  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.