Ken:
 
I assume that you are interested in having the value of an indicator in the title change color as you select different bars based on the condition of that indicator which may or may not be plotted.  If so, in essence this is what I do using WriteIf():
 
x = RSI(14);
Plot(C, "", colorpalegreen, stylebar);
//Plot(x, "", colorwhite);
Title = WriteIf(x >= 50, EncodeColor(colorBrightGreen) + "RSI(14) = " + x, EncodeColor(colorRed) + "RSI(14) = " + x);
 
Bill
----- Original Message -----
From: Ken Close
Sent: Tuesday, August 29, 2006 8:29 AM
Subject: [amibroker] Conditional Encodecolor

I want to color a value in a Title statement green or red depending on above or below zero.
 
I have tried IIf statements with Encodecolor variables, but keep getting type mismatches or invalid operation in the Title statement.
 
Can someone tell me how to color a value (written with WriteVal) depending on a condition, in a Title statement?
 
Thanks,
 
Ken


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 08/25/06
__._,_.___

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
Software support Small business finance Business finance online
Business finance training Business finance course


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to