I am not certain you can do what you want, but your code could be simplified

i=BarIndex();
CandleColor = IIf (i % 2 == 0, colorRed, IIf (i % 3 == 0, colorBlue,
IIf (i % 4 == 0,colorYellow,colorGreen)));
Plot(Close, "", CandleColor, styleCandle);


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 4/21/06, scourt2000 <[EMAIL PROTECTED]> wrote:
> Could some kind souls out there please put this Amibroker code in
> your chart and verify for me that there is no way for you to be able
> to have these colored candles on your chart AND have a black body
> outline?
>
> Thanks. I have been told numerous times that this functionality
> exists and I just cannot get it to work.  In the Preferences-
> >Charting tab, I was told that "Body outline only" would give me the
> black outline I was looking for when using my own candle color
> array, but it has no effect.
>
> [of course, this is just canned coloring to show you the effect]
>
> CandleColor[0] = colorRed;
>
> for (i=0; i < BarCount; i++)
> {
>   if (i % 2 == 0)
>   {
>     CandleColor[i] = colorRed;
>   }
>   else if (i % 3 == 0)
>   {
>     CandleColor[i] = colorBlue;
>   }
>   else if (i % 4 == 0)
>   {
>     CandleColor[i] = colorYellow;
>   }
>   else
>   {
>     CandleColor[i] = colorGreen;
>   }
> }
>
> Plot(Close, "", CandleColor, styleCandle);
>
>
>
>
>
>
>
> 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
>
>
>
>
>
>
>


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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS




Reply via email to