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

RE: [amibroker] Re: Adding Text to Explore/Scan Columns



PureBytes Links

Trading Reference Links

For explorations do not forget that there is a formatChar that can be used to show single characters in columns, often this is sufficint to indicate state like Up Down Buy Sell with the characters U, D, B amd S.
 
AddColumn(IIf(Buy,83,66),"Action",formatChar);
 
best regards,
herman
-----Original Message-----
From: kris45mar [mailto:kris45mar@xxxxxxxxx]
Sent: Friday, March 04, 2005 5:53 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Re: Adding Text to Explore/Scan Columns

Duke

as i understand it you are wanting to have text and
background as different colors dependent on
conditions.

Does something like this resemble what you are looking
for ?

****************
CloseUP = C > Ref(C,-1);
Closedown = C < Ref(C,-1);

txtclrup = IIf(Closeup,
colorDarkGreen,IIf(Closedown,colorRed,colorBlack));
bkclr = IIf(Closeup,
5,IIf(closedown,colorPink,colorWhite));
Filter =1;

AddColumn(C,"close",1.2);
AddColumn(Ref(C,-1),"Ystrdy close",1.2);
AddTextColumn(WriteIf(Closeup,"UP",WriteIf(Closedown,"DOWN","same")),"up/down",1.2,
txtclrup, bkclr);

*******************

ChrisB

======================================================

--- "Duke Jones, CMT"
<Duke.Jones@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> If you ever find a way to make the values
> conditional please
> post it to the list. So far I have only been able to
> make
> just the text colored but not the background without
> making
> the whole column the same color. 



     
           
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/


Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links