[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] ENCODECOLOR



PureBytes Links

Trading Reference Links

william,
 
thanks a lot
it works now
so function encodecolor returns string and accept only string variables ?
 
----- Original Message -----
Sent: Thursday, December 23, 2004 8:47 AM
Subject: Re: [amibroker] ENCODECOLOR

Hello Cyrille,

You should use the WriteIf() function.

ColorEMA = WriteIf( a > b,  EncodeColor( colorGreen ), EncodeColor( colorRed ) );


Regards,
William Peters (AmiBroker Group Moderator)
www.amitools.com




Thursday, December 23, 2004, 8:05:52 AM, you wrote:
 
CT> Hello,
CT>  
CT> I want to use encodecolor function with a  variable parameter
CT>  
CT> :encodecolor(colorEMA)
CT>  
CT> where colorEMA = iif(a>b,  colorgreen,colorred);
CT>  
CT> but ihave a syntax error
CT> Is there a way to code it properly  ?
CT>  
CT>  
CT> Thanks




Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor

Get unlimited calls to

U.S./Canada



Yahoo! Groups Links