Support Board
Date/Time: Wed, 30 Apr 2025 10:53:49 +0000
SubGraph - DRAWSTYLE_LINE_EXTEND_TO_EDGE
View Count: 78
[2025-04-26 09:28:36] |
man2002ua - Posts: 3 |
Hello, I am trying a simple graph SCSubgraphRef StrongLines = sc.Subgraph[0]; StrongLines.Name = "Test"; StrongLines.PrimaryColor = RGB(100,200,300); StrongLines.LineWidth = 2; StrongLines.DrawStyle = DRAWSTYLE_LINE_EXTEND_TO_EDGE; int idx1 = sc.ArraySize - 10; int idx2 = sc.ArraySize - 3; StrongLines[idx1] = sc.High[idx1]; StrongLines[idx2] = sc.High[idx2]; Just draw a line, not a ray as expected. Is it supported or I am doing something wrong? Date Time Of Last Edit: 2025-04-26 10:30:02
|
[2025-04-28 11:08:26] |
Sierra_Chart Engineering - Posts: 19383 |
We are not understanding this. We do not know from the chart image, what that study is drawing.
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, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2025-04-28 19:52:00] |
man2002ua - Posts: 3 |
Sorry for misunderstanding. I want SCSubgraph to draw a horizontal line to the right edge, similar behaviour as s_UseTool DrawingType = DRAWING_RAY; But in example above it draws the line between two points only. Question - what is missing? |
[2025-04-29 13:51:57] |
John - SC Support - Posts: 39559 |
The "Line Extend to Edge" takes the value of the study at the current bar and extends that to the edge. In your example, that value is 0, so you are not actually seeing it extend to the edge. To do what you want, you would have to include specific information for the remaining bars in the chart and then the line will extend to the edge. -- You have posted from an expired account. In order to get any further support, you will need to post from a non-expired account. For the most reliable, advanced, and zero cost futures order routing, use 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: