Welcome Features News Download Registration Support FAQ Wish list Links
Advanced stock charting and analysis program

AFL Library

This is read-only version of AFL library entry. Ability to add user formulas and comment is only available from members-only area.

Details:

Formula name: Animated BackGround
Author/Uploader: SkyBlue - (email hidden)
Date/Time added: 2008-11-14 00:41:34
Origin: Self, using Amibroker help file.
Keywords: BackGround, Animated
Level: basic
Flags: function

DISCLAIMER: Most formulas present in AFL on-line library are submitted by the users and are provided here on an "as is" and "as available" basis. AmiBroker.com makes no representations or warranties of any kind to the contents or the operation of material presented here. We do not maintain nor provide technical support for 3rd party formulas.
Description:

This a pretty basic codes, recently I made using Amibroker help file,I don\'t know whether you already have it!
The codes can be added in any AFL for changing the Chart\'s background color every second. Regards.

Formula:

/* This a pretty basic codes, recently I made using Amibroker help file,I don't
know whether you already have it!
The codes can be added in any AFL for changing the Chart's background color
every second. Regards.SkyBlue.
*/

_SECTION_BEGIN("SkyBlue's Animated BkGround");

for( i = 1; i < BarCount; i++ ) 
z = (GetPerformanceCounter()/100)%256; 
anim=ColorHSB( ( i + z ) % 256, 255, 100 );
SetChartBkColor(anim);
RequestTimedRefresh(1);

_SECTION_END();

Comments:

Tony Spica
tonyspica-at-juno.com
2008-11-15 22:46:53
Cool. Wish I knew AB code well enough to do stuff like this. This gives new meaning to the term \\\"live charts.\\\"
Tomasz Janeczko

2010-07-28 10:23:40
The formula is incorrect. \\\"for\\\" loop should be REMOVED to avoid unnecessary load.

z = (GetPerformanceCounter()/100)%256;
anim=ColorHSB( ( z ) % 256, 255, 100 );
SetChartBkColor(anim);
RequestTimedRefresh(1);


About | Privacy | Terms of Use | Contact information
Copyright © 2001 AMIBROKER.COM