Horzline attribute
Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullScript
Forum Discription: Technical discussion related specifically to the BullScript programming language.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=191
Printed Date: 19 Apr 2025 at 9:50am Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com
Topic: Horzline attribute
Posted By: Owen
Subject: Horzline attribute
Date 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.
|
Replies:
Posted By: Peter
Date 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;
|
Posted By: Owen
Date 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.
|
Posted By: Peter
Date 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. 
|
|