Login Page - Create Account

Support Board


Date/Time: Fri, 10 May 2024 05:17:23 +0000



[User Discussion] - help with plotting horizontal line

View Count: 613

[2020-08-18 01:32:02]
User681150 - Posts: 62
i cant plot a 0.0 horizontal line using ACSIL. if i change it to 1.5 using SetFloat(1.5) it works, if i change to SetFloat(0.0) nothing

same with SetInt. whats the best way to plot a ZERO line in my subgraph. I want to set a line between positive/negative values. thanks


thanks


SCSubgraphRef sgZeroline = sc.Subgraph[1];
int zeroline = 0;

if(sc.setDefaults)
{
sc.Subgraph[1].Name = "zeroline";
return };

sgZeroline[sc.Index] = zeroline;

Date Time Of Last Edit: 2020-08-18 02:26:53
[2020-08-18 02:32:37]
User681150 - Posts: 62
if i use

zeroline.SetFloat(0.0001)
sgZeroline[sc.Index] = zeroline.GetFloat();

it works and sets a horizontal line "close enough"

but setting it to 0.0000 does not work. go figure.
[2020-08-18 03:06:39]
User90125 - Posts: 715
In the sc.SetDefaults section try adding

sc.DrawZeros = 1;
[2020-08-18 06:00:44]
User907968 - Posts: 802
ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].DrawZeros

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account