Are you looking for it to look like this/???
-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx] On
Behalf Of Graham
Sent: Tuesday, May 02, 2006 8:02 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Is outlining of custom colored candles with black
possible?
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 <stevehite@xxxxxxxxxxx>
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
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor
--------------------~-->
GFT Forex Trading Accounts As low as $250 with up to
400:1 Leverage. Free Demo.
http://us.click.yahoo.com/lpv1TA/jlQNAA/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/
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.1/328 -
Release Date: 5/1/2006