Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 05:49:21 +0000



DRAWSTYLE_BAR_TOP, DRAWSTYLE_BAR_BOTTOM don't get drawn at the first bar

View Count: 622

[2019-09-21 11:08:23]
User353585 - Posts: 66
I'm using those drawing styles to draw custom study results.

they don't get printed at the first bar of the chart (when index is 0, autoloop is off)

Please fix this, thank you.
[2019-09-22 20:14:45]
Sierra Chart Engineering - Posts: 104368
These draw styles will work at the first bar of the chart (index = 0), as long as there is data there for the study that is using them. There is nothing for us to change for how these work. Be sure you have data at that index and keep in mind that if the 2 subgraphs that are being used for these draw types are the same, then you will not see any fill.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2019-09-23 09:27:37]
User353585 - Posts: 66
Did you actually test? it didn't work for me in multiple settings and data.

for example, even with this simplest code, only the second bar would print.


sc.Subgraph[0][0] = 20;
sc.Subgraph[0][1] = 20;

sc.Subgraph[1][0] = 10;
sc.Subgraph[1][1] = 10;


Other fill drawing styles don't have the same issue.

please take a look into it, thanks.
Date Time Of Last Edit: 2019-09-23 09:31:58
[2019-09-23 10:55:13]
Sierra Chart Engineering - Posts: 104368
Yes of course this has been tested. Make sure you set sc.DataStartIndex to 0. And post an image of what you see at the beginning of the chart:
https://www.sierrachart.com/index.php?page=PostingInformation.php#PostingAnImage
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2019-09-23 11:12:02]
User353585 - Posts: 66
This is the image of example, with the following test study applied.

-----------------------------------------------
-----------------------------------------------
SCSubgraphRef Subgraph_1 = sc.Subgraph[0];
SCSubgraphRef Subgraph_2 = sc.Subgraph[1];
  
if (sc.SetDefaults)
{
sc.GraphName = "test";
sc.GraphRegion = 0;
sc.UpdateAlways = 0;
sc.AutoLoop = 1;
sc.DataStartIndex = 0;
  
sc.Subgraph[0].Name = "Bar Top";
sc.Subgraph[0].DrawStyle = DRAWSTYLE_BAR_TOP;
sc.Subgraph[0].LineWidth = 3;
sc.Subgraph[0].PrimaryColor = RGB(255, 128, 0);
sc.Subgraph[0].DrawZeros = false;

sc.Subgraph[1].Name = "Bar Bottom";
sc.Subgraph[1].DrawStyle = DRAWSTYLE_BAR_BOTTOM;
sc.Subgraph[1].LineWidth = 3;
sc.Subgraph[1].PrimaryColor = RGB(0, 255, 128);
sc.Subgraph[1].DrawZeros = false;
    
return;
}
  
sc.Subgraph[0][sc.Index] = 57;
sc.Subgraph[1][sc.Index] = 55;
imageCLX19[M] 20 Min #1 2019-09-23 07_06_20.746.png / V - Attached On 2019-09-23 11:11:52 UTC - Size: 19.98 KB - 223 views
[2019-09-26 09:37:37]
Sierra Chart Engineering - Posts: 104368
We understand why this occurs and we will implement a solution.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account