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

RE: [amibroker] Re: tweaking the display



PureBytes Links

Trading Reference Links

I also use variable colour to help highlight the relative positions of
indicators, in the case below above or below the trigger line for the bar
selected mycolor=IIf(MAIndC>Trigger, colorGreen,
IIf(MAIndC<Trigger,colorRed,colorBlack));

Title =EncodeColor(SelectedValue(mycolor)) + Name() + " " + Date() + " Ind
C: Higher Highs & Lows - Lower Highs & Lows:
"+WriteVal(period1,1)+"/"+WriteVal(period2,1)+"/"+WriteVal(period3,1);

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia


-----Original Message-----
From: hmab1 [mailto:hossamb@xxxxxxxxxxxx] 
Sent: Monday, 14 July 2003 11:18 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: tweaking the display



Yuki,

Try using EncodeColor()

>From the help:

Title = "This is written in " + EncodeColor( colorViolet ) + "violet 
color " + EncodeColor( colorGreen ) + "and this in green"; 

HB

--- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga <yukitaga@xxxx> wrote:
> I use the following across the top of my custom price charts:
> 
> Title = Name() +"  -  "+ WriteVal( DateTime(), formatDateTime )+"  -
> "+"Open: "+WriteVal(O,1.0)+" "+" -  Hi:  "+WriteVal(H,1.0)+" "+" -
> Low: "+WriteVal(L,1.0)+" "+" -  Close: "+WriteVal(C,1.0)+"  -
> Volume: "+WriteVal(V,1);
> 
> Text output is all black.  What I would like to know is if I can 
> modify this code so that the values *only* would be another color?
> 
> 'High' would remain black, but the value following it would be another 
> color.  I have made a couple of attempts at this, but can't seem to 
> figure it out, and I am not sure it can be done.
> 
> Yuki ^_^


------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy
Naturally Painless & Spray Away Backaches & Joint Pain. $19.97
http://www.challengerone.com/t/l.asp?cid=2867&lp=m331.html
http://us.click.yahoo.com/tJIe0D/79VGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges & Refill Kits for Your HP at Myinks.com
Free shipping on orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5706&lp=home/hp.asp
http://us.click.yahoo.com/arYXfA/.xWGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/