| 
 Absolutely no problem, really. 
  
Either this way: 
  
Title = "Color is " + WriteIf( Close > Open, EncodeColor( colorGreen ), EncodeColor( colorRed ) ) + " when Close is "  + WriteIf( Close > Open, " higher ", " lower " 
) + "than close ";  
  
or that way: 
  
Title = "Color is " + EncodeColor( SelectedValue( IIf( 
Close > 
Open, colorGreen, colorRed ) )  ) + 
" when Close is "  + WriteIf( Close > Open, " higher ", " lower " ) + "than close ";  
 Best regards, Tomasz Janeczko amibroker.com 
  ----- Original Message -----  
  
  
  Sent: Sunday, August 07, 2005 4:27 
  PM 
  Subject: RE: [amibroker] Title and 
  {{VALUES}}; 
  
  
  
  Yes, but we want to 
  use it to change the EncodeColor() in a Title = statement conditionally. E.g., 
  Red text in title if indicator is down, green if up. 
    
  
  
  -----Original 
  Message----- From: amibroker@xxxxxxxxxxxxxxx 
  [mailto:amibroker@xxxxxxxxxxxxxxx] On 
  Behalf Of Tomasz Janeczko Sent: Sunday, August 07, 2005 
  08:02 To: amibroker@xxxxxxxxxxxxxxx Subject: Re: [amibroker] Title and 
  {{VALUES}}; 
    
  
  
  
  Although there are no arrays of 
  string, but you CAN use conditional text output.  
  
  There is no need for array here 
  because you are displaying ONE VERSION TEXT at 
  a time  
  
  (not as many texts as 
  bars).  
  
  
  Therefore you CAN use conditional 
  output here and all you need to do is to use WriteIF 
  function:  
  
  
  
  
   Best regards, Tomasz 
  Janeczko amibroker.com
  
  
    
    ----- Original Message ----- 
      
    
    
    
    Sent: Sunday, 
    August 07, 2005 3:44 PM  
    
    Subject: RE: 
    [amibroker] Title and {{VALUES}};  
    
    No. Strings do 
    not support arrays, only scalar. Thus you cannot use IIf(cond,color,color) 
    since the IIf() requires an array. Too bad, I would like this feature 
    too. 
      
    
    
    -----Original 
    Message----- From: amibroker@xxxxxxxxxxxxxxx 
    [mailto:amibroker@xxxxxxxxxxxxxxx] On 
    Behalf Of mrdavis9 Sent: Saturday, August 06, 2005 
    23:12 To: amibroker 
    @yahoogroups.com Subject: 
    [amibroker] Title and {{VALUES}}; 
      
    
    Graham recently posted 
    these CHANGES FOR VERSION 
    4.60.2 
    CHANGES FOR VERSION 
    4.60.2 Title variable templates: making 
    Title statements easy. Now you can embed special tokens 
    in Title variable  that are replaced by appropriate 
    values at run-time. if you use {{VALUES}} inside 
    Title string it will be replaced by automatic-values generated 
    by Plot function calls. if you use {{NAME}} it will be 
    replaced by ticker symbol. if you use {{DATE}} it will be 
    replaced by selected date if you use {{INTERVAL}} it will 
    be replaced by name of the 
    interval Example: 
     Title = "{{NAME}} - {{INTERVAL}} {{DATE}} - 
    MyChart : {{VALUES}}"; 
    Below is what finally enabled me 
    to successfully, and SIMPLY show both my custom title name, as well the 
    values of the plotlines. 
    Title="MYTITLENAME-:{{VALUES}}"; 
    I use IIF( statements to cause 
    changes in the color of the plot lines, and when one of the IIF( 
    statements  causes a  plotline color change, then the 
    formerly RED, or BLUE, or ETC,  COLORED values in the title line 
    changes to a BLACK COLORED value.  
    Is there a way to make the 
    COLORS that display in the Title line continue be displayed in the 
    basic COLOR of the PLOTLINE even during the IFF( induced color 
    changes?   All suggestions will be appreciated.  Ron 
    D 
      
      
      
       
        
  
 
    
  
Please note that this group is for discussion between users only. 
 
To get support from AmiBroker please send an e-mail directly to  
SUPPORT {at} amibroker.com 
 
For other support material please check also: 
http://www.amibroker.com/support.html 
 
  
    
  
  
  
    SPONSORED LINKS
   
       
  
 
  
    
  YAHOO! GROUPS LINKS
 
 
    
 |