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

Re: [amibroker] Plot() question



PureBytes Links

Trading Reference Links

this will change the name of the plot in title, but not the value
 
Plot
(diffMa, EncodeColor(SelectedValue(colorDiffMa))+"diffMa", colorDiffMa, styleLine);

--
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 11/6/05, wavemechanic <fimdot@xxxxxxxxx> wrote:
I am using version 4.74.6 and have run across something that I have not seen before and that I assume is not a bug.
 
Using the simple code below, the plot correctly displays the right color depending on the value of the variable diffMa.  However, the name in Plot() is a constant color (lime) instead of the color of the plot which is defined in IIF().  (see attached screen shot).  If IIF() is replaced by a color ( e.g, colorRed), the name correctly assumes this color.  The problem occurs only when IIF() is used.  Lime is the up color for candlesticks, but changing this color does not change the color of name on the chart.
 
Are there new settings for controlling the color of name?  Any ideas?
 
Bill
 
----------------------------
 

MA1 =

MA(C, 200);

MA2 =

MA(C, 50);

diffMa = MA1 - MA2;

colorDiffMa =

IIf(diffMa <= 0, colorRed, colorWhite);

Plot

(diffMa, "diffMa", colorDiffMa, styleLine);


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
Real estate investment software Investment property software Software support
Real estate investment analysis software Investment software Investment analysis software


YAHOO! GROUPS LINKS