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

RE: [amibroker] Painting bars



PureBytes Links

Trading Reference Links

Not knowing what Pat1 and Pat2 are it is a bit hard to answer. It could be
that all conditions are Pat1

I just tried this and it coloured the bars correctly
barcolor = IIf(C>O,colorBlue,IIf(C<O,colorRed,colorBlack));
Plot(C,"chart", barcolor, styleBar+styleNoLabel);

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


-----Original Message-----
From: Eugene [mailto:johngalt1234@xxxxxxxxx] 
Sent: Saturday, 19 July 2003 9:51 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Painting bars


BarColor=IIf(Pat1,colorRed,IIf(Pat2,colorBrightGreen,colorBlack));

Plot(C,"close",BarColor,styleBar);

Any reason why this code wont work...I only get the bars painted for 
Pat1?


------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy
Ink Cartridges & Refill Kits for Your Epson at Myinks.com Free shipping on
orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5705&lp=home/epson.asp
http://us.click.yahoo.com/brYXfA/_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/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/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/