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

Re: [amibroker] paintbars?



PureBytes Links

Trading Reference Links

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Easy,
	the 3rd arg to plot (color) can be an array, so, for example:

paint = iif(c>o, colorGreen, colorRed); 		// up bars green, down bars red
paint = iif(hhvbars(h,21)==0, colorBlue, paint); 	// except new highs are blue
paint = iif(llvbars(l,21)==0, colorYellow, paint);	// and new lows are yellow

plot(C, "Close", paint, styleBar);

Is that what you were after?

	Nigel

 	
On Mon, 22 Dec 2003 07:17, Daniel Chesler wrote:
> can anyone tell me: does amiborker have the ability (like
> tradestation or aspen, for example) to color individual bars based on
> certain criteria?  this is called a 'paint bar' study in
> tradestation.
>
> in advance, thanks.
> dan
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/5i80BbmcM2pfckkRAv13AKC7425hy5SXEHy2NVZT/v+SZSv22ACfVvmC
HRW3YlIMxue2oK/6XuawbGs=
=sksI
-----END PGP SIGNATURE-----


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 

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/amibroker/

To unsubscribe from this group, send an email to:
 amibroker-unsubscribe@xxxxxxxxxxxxxxx

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