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

Re: [amibroker] Acceleration Bands



PureBytes Links

Trading Reference Links

Here is one I use for price chart title. Just change the C>O to ROC(x)>0 etc

mycolor=IIf(C>O, colorBlue, IIf(C<O,colorRed,colorBlack));

Title = EncodeColor(SelectedValue(mycolor)) + Name() + " " + Date( );

Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: davelansing2004 [mailto:d.ankrapp@xxxxxxxxxxx] 
Sent: Sunday, June 20, 2004 4:18 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Dynamic colors in Title

Hi,

I've been working diligently on the following issue but not having 
any success:

How does one code dynamic colors for items in the Title? For 
instance, I have a Title that lists various data including the daily 
Rate-of-change; what I want to do is to "color" the ROC the  
color "red" when negative and "green" when positive. I've tried 
various permutations of the IIF function but not having any success. 
Any insight would be greatly appreciated.

Thanks in advance.

Dave Ankrapp
Lansing, MI




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



 



------------------------ 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/