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

RE: [amibroker] coloring the bars



PureBytes Links

Trading Reference Links

Yuki
A couple of things come to mind, 
Have you tried changing the order of the Iif statements to see if it is just
the first 2 being picked up anf the rest ignored? Are the colors working at
all, and just the default colours from the preferences being used? And I
know this one sounds silly, but sometimes the obvious is overlooked. Are
there any buynew or short new signals for the charts you are looking at?

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


-----Original Message-----
From: Yuki Taga [mailto:yukitaga@xxxxxxxxxxxxx] 
Sent: Sunday, 13 July 2003 7:48 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] coloring the bars


code snippet:

Plot( Close, Date() +"\n"+ "O: " + WriteVal( Open, 1.0 ) +"\n"+ "H: "
+WriteVal(High, 1.0 ) +"\n"+ "L: " + WriteVal( Low, 1.0 )  +"\n"+ "C:
",IIf(BuyMain, colorDarkGreen, IIf(ShortMain, colorRed, IIf(BuyNew,
colorBrightGreen, IIf(ShortNew, colorDarkRed, colorYellow)))), styleBar);

I think it's easy to see what I am trying to do here:

1) There are 2 different types of buys and 2 different types of sells.
These are defined and work.

2) But when I try and plot this on a chart, I get only the DarkGreen and Red
colors for the BuyMain and SellMain variables.  I get no errors when
applying this, but apparently the BuyMain and ShortMain settings don't allow
the BuyNew and ShortNew to take hold.

Is there a way to do what I am trying to do?

Yuki ^_^



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/