BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullScript
  New Posts New Posts RSS Feed: Multiple colours on single indicator line
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Multiple colours on single indicator line

 Post Reply Post Reply Page  <12
Author
Message Reverse Sort Order
Brendon View Drop Down
BullCharts Staff
BullCharts Staff
Avatar

Joined: 10 Sep 2004
Location: Australia
Posts: 126
Post Options Post Options   Quote Brendon Quote  Post ReplyReply Direct Link To This Post Posted: 29 Mar 2006 at 4:55pm

This is the closest we can can up with - needs to be  Bar style to make it easier to read.

[horzline=0]

n := input("Time periods",14,1);

[color=rgb(000,000,255);name=up; Linestyle=Bar]

if(cci(n)>=0,cci(n),0);

[color=rgb(255,000,000);name=down; Linestyle=Bar]

if(cci(n)<=0,cci(n),0);

 

 

Back to Top
IT-Trader View Drop Down
Regular
Regular


Joined: 10 Nov 2005
Posts: 23
Post Options Post Options   Quote IT-Trader Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 2006 at 5:14pm
Thanks Brendon, that would really be appreciated.

Along similar lines possibly, I'd like the volume histogram to be blue on days when price closes up and red when price closes down.
(...and maybe variations like C versus O,  or today's H vs yest. H,  but they are wish list rather than having an immediate use).

My mind is a little addled today so I can't seem to work it out.

Many thanks for your continued support,
ITT.



Edited by IT-Trader
Back to Top
Brendon View Drop Down
BullCharts Staff
BullCharts Staff
Avatar

Joined: 10 Sep 2004
Location: Australia
Posts: 126
Post Options Post Options   Quote Brendon Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 2006 at 11:46am
Shall do a sample for you.
Back to Top
IT-Trader View Drop Down
Regular
Regular


Joined: 10 Nov 2005
Posts: 23
Post Options Post Options   Quote IT-Trader Quote  Post ReplyReply Direct Link To This Post Posted: 24 Mar 2006 at 5:48pm
Take a simple indicator such as CCI(14) and plot it.

I'd like to set it so that when it's above 0 the line is green and when it's below 0 the line is red.

Is this possible?

Thanks,
ITT.

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz