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

Re: [amibroker] ENCODECOLOR



PureBytes Links

Trading Reference Links

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




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/