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

Reply via email to