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

[amibroker] V5.02.1 BETA SetBarFillColor coding example



PureBytes Links

Trading Reference Links

Hello,

 

AFL: SetBarFillColor( colorarray ) allows to independently control candlestick, bar, cloud, and area chart fill color

Example:

SetBarFillColor( IIf( MACD()>Signal(), colorYellow, colorBlue ) );

Plot( C, "Price", IIf( C > O, colorGreen, colorRed ), styleCandle );


SetBarFillColor must PRECEDE the Plot() function call it applies to.

when applied to:

styleCandle - SetBarFillColor controls the color of interior of candle body, shadows and outline is controlled by color passed in Plot statement

styleArea - SetBarFillColor controls the color of interior of histogram bars

styleBar - SetBarFillColor controls the color of the bar (H-L), open and close ticks color is controlled by Plot statement

styleCloud - SetBarFillColor controls the color of interior of the cloud, outline is controlled by color passed in Plot statement

Other styles are not affected


Best regards,
Tomasz Janeczko
amibroker.com
__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___