Title = WriteIf(Buy, EncodeColor(colorGreen), EncodeColor(colorRed)) + Close;

 

--

Terry

-----Original Message-----
From:
[email protected] [mailto:[email protected]] On Behalf Of Thomas Z.
Sent:
Tuesday, August 29, 2006 07:03
To:
[email protected]
Subject: RE: [amibroker] Conditional Encodecolor

 

Ken,

 

encodecolor in title doesn’t allow to use arrays.

So you can only use the lastvalue();

 

Best Regards

 

Thomas

www.tradingbasis.com

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Close
Sent: Tuesday, August 29, 2006 2:29 PM
To: [email protected]
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

__._,_.___

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