Support Board
Date/Time: Thu, 28 Nov 2024 22:52:10 +0000
[Programming Help] - Programming - sc.GetStudySubgraphLineStyle()
View Count: 356
[2023-03-17 19:08:07] |
User92573 - Posts: 530 |
Dear Programming/Support Please can you confirm whether: sc.GetStudySubgraphLineStyle() and sc.GetStudySubgraphLineWidth() have been implemented or are works in progress. They are both in the header file but the documentation hasn't been completed and I cannot compile when I include both calls. sc.GetStudySubgraphLineStyle(int32_t ChartNumber, int32_t StudyID, int32_t StudySubgraphNumber, SubgraphLineStyles& r_LineStyle) is the issue. I'm getting: error C2440: '=': cannot convert from 'int32_t' to 'SubgraphLineStyles' Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) LineWidth is fine ... any thoughts? Many thanks Date Time Of Last Edit: 2023-03-17 20:00:27
|
[2023-03-17 21:18:19] |
John - SC Support - Posts: 36350 |
As we noted in the other thread, these two functions are in the system and can be used. Did you declare the variable you are using for the r_LineStyle to be of a type SubgraphLineStyles? For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-03-17 21:41:09] |
User92573 - Posts: 530 |
Hi John, here is the information: // declared and assigned as follows: int32_t r_LineStyle = 0; int32_t r_LineWidth = 0; // LineWidth works for me but style doesn't. // so this works as expected without issue. Subgraph_My_Study.LineWidth= r_LineWidth; // This is where I'm having issues and how I am retreiving the "LineStyle" information. sc.GetStudySubgraphLineStyle(GetFromChart.GetChartNumber(), GetStudyID.GetStudyID(), GetSubgraph.GetSubgraphIndex(), r_LineStyle); Subgraph_My_Study.LineStyle = r_LineStyle; // and this is how I am applying but which I cannot get to work and for me produces errors at compile. Subgraph_My_Study.LineStyle = r_LineStyle; Also, are there any plans to include the ability to obtain: .LineLabel" and .DrawZeros" Many thanks Date Time Of Last Edit: 2023-03-20 10:00:03
|
[2023-03-20 14:46:10] |
John - SC Support - Posts: 36350 |
You are declaring r_LineStyle and r_LineWidth as int32_t. They need to be of type SubgraphLineStyles.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-03-22 09:22:56] |
User92573 - Posts: 530 |
Hi John I'm not sure about that but appreciate SC quite understandably does not provide programming assistance. // I'm sure its not just: SubgraphLineStyles r_LineStyle = 0; SubgraphLineStyles r_LineWidth = 0; Subgraph_My_Study.LineStyle = r_LineStyle; Subgraph_My_Study.LineWidth = r_LineWidth; // So will study further for a better understanding, or it's added/updated in the documentation to include the usual examples. Thank you very much for your help. Many thanks. |
To post a message in this thread, you need to log in with your Sierra Chart account: