Horzline attribute |
Post Reply |
Author | |
Owen
Regular Joined: 15 Nov 2004 Posts: 97 |
Post Options
Quote Reply
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. |
|
Peter
BullCharts Staff Joined: 09 Sep 2004 Location: Australia Posts: 241 |
Post Options Quote Reply 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; |
|
Owen
Regular Joined: 15 Nov 2004 Posts: 97 |
Post Options Quote Reply 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. |
|
Peter
BullCharts Staff Joined: 09 Sep 2004 Location: Australia Posts: 241 |
Post Options Quote Reply 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. |
|
Post Reply |
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |