PureBytes Links
Trading Reference Links
|
Color is a string and there are no string arrays. Substitute your IIf()
with WriteIf()
--
Terry
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of troll
Sent: Friday, June 02, 2006 17:40
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Conditional Color in Title
I'm attempting to use a conditional color for one of my title
elements by defining the color as follows and then using following
code:
HighLast52week = LastValue( HHV( High, 5 * 52 ) );
WeekColor = IIf( Close > HighLast52week , 5 , colorDarkBlue );
+ EncodeColor(WeekColor) + " Close $ " + WriteVal(Close/1,1.2)
Everything works fine if I substitute colorwhite in place of WeekColor
so maybe there's some restriction regarding conditional colors and
titles.
Any suggestions or clarification would be appreciated as always.
Regards,
Dean H.
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
Yahoo! Groups Links
|