BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullScript
  New Posts New Posts RSS Feed: Horzline attribute
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Horzline attribute

 Post Reply Post Reply
Author
Message / View First Unread Post
Owen View Drop Down
Regular
Regular


Joined: 15 Nov 2004
Posts: 97
Post Options Post Options   Quote Owen Quote  Post ReplyReply Direct Link To This Post Topic: Horzline attribute
    Posted: 13 Apr 2005 at 11:39pm
Peter, when we use [Horzline=x] to draw multiple horizontal lines on an indicator, is it possible to change its attribute e.g. colour or linestyle, without having any effect on the other lines?

I know Seahorse has asked about atrributes of horizontal lines, but I'm not sure we are asking about the same thing.
Back to Top
Peter View Drop Down
BullCharts Staff
BullCharts Staff
Avatar

Joined: 09 Sep 2004
Location: Australia
Posts: 241
Post Options Post Options   Quote Peter Quote  Post ReplyReply Direct Link To This Post Posted: 14 Apr 2005 at 9:39am
Unfortunately not at the moment.

The best way to work around this at the moment is to return the line as a calculated value instead of using the horzline attribute. (it means they don't appear in the horz line list, and can't be as readily moved, but will probably do what you're after)

Eg:

[color=red]
20;
[color=green]
80;

Back to Top
Owen View Drop Down
Regular
Regular


Joined: 15 Nov 2004
Posts: 97
Post Options Post Options   Quote Owen Quote  Post ReplyReply Direct Link To This Post Posted: 14 Apr 2005 at 4:22pm
I can't seem to get horizontal dash or long dash lines on indicators.

[color=black; linestyle=dash]
50;

With the above script, I got a black unbroken line. Dotted lines work though.



Back to Top
Peter View Drop Down
BullCharts Staff
BullCharts Staff
Avatar

Joined: 09 Sep 2004
Location: Australia
Posts: 241
Post Options Post Options   Quote Peter Quote  Post ReplyReply Direct Link To This Post Posted: 14 Apr 2005 at 5:10pm
Hmm.. yep. That's a side effect of this not quite being the right way to do it. Will probably need to wait for horzline to support colours before you can set everything the way you need.

Or, if you want to extend the temporary solution even futher, you could draw a dashed line at 50 with a very creative script like:
[drawundefined=gap; color=Red]
if(mod(barnumber,4)<3,50,undefined);
..but again, this is just looking for creative ways around something that isn't really possible in BullCharts at the moment.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

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