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

[amibroker] Chart background colors



PureBytes Links

Trading Reference Links

The new features of beta (4.75) have made it possible to
visually adjust chart background colors (amongst many other things)
in real time.
Below is a snippet of code for adjusting a charts background color from
the parameters window using sliders. Just copy and paste the code
into an existing charts AFL code. If your AFL has pre-existing section code
then make sure you paste it outside of those sections, otherwise
paste it either at the beginning or end of the code and save.

Right click the chart and open the parameters window.

I found it easier to move the 'Hue' slider first to get the base color
then move on to the saturation (depth of color) and then onto
the brightness slider. have fun!


_SECTION_BEGIN("Chart Background Color");
Version(4.75);
BkgColor = ColorHSB( Param("Hue", 0, 0, 240 ), 
Param( "Saturation", 240, 0, 240 ), 
Param("Brightness", 240, 0, 240 ));
SetChartBkColor( BkgColor );
_SECTION_END();


Regards,
William Peters
http://www.amitools.com




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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