Colorxxx is a numeric. In any case, you can't make an array of colors.
Something along these lines will work:
_N(Title = WriteIf(Close > HighLast52week, EncodeColor(5),
EncodeColor(colorDarkBlue)) + " Close $ " + WriteVal(Close/1,1.2));
--
Terry
-----Original Message-----
From: Terry [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 18:33
To: '[email protected]'
Subject: RE: [amibroker] Conditional Color in Title
Color is a string and there are no string arrays. Substitute your IIf()
with WriteIf()
--
Terry
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of troll
Sent: Friday, June 02, 2006 17:40
To: [email protected]
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
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
| Investment management software | Real estate investment software | Investment property software |
| Software support | Real estate investment analysis software | Investment software |
YAHOO! GROUPS LINKS
- Visit your group "amibroker" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
