Support Board
Date/Time: Wed, 12 Feb 2025 22:20:27 +0000
[Programming Help] - can not access SC_UPVOL with sc.GetChartBaseData
View Count: 563
[2020-11-19 07:19:55] |
jomo88 - Posts: 47 |
I can't access SC_UPVOL or SC_DOWNVOL with a sc.GetChartBaseData reference array. I can access the other more standard elements though with the reference array (SC_OPEN etc). Is there a way to access the data? I have sc.MaintainAdditionalChartDataArrays = 1; |
[2020-11-19 18:01:13] |
jomo88 - Posts: 47 |
I discovered the solution... I was opening the charts via OpenChartOrGetChartReference, so I needed the actual charts to have a study opened on them which had MaintainAdditionalChartDataArrays = 1. I created a study for those charts to have opened which flags them MaintainAdditionalChartDataArrays = 1 #include "sierrachart.h" SCDLLName("MaintainAdditionalChartData") /*==========================================================================*/ SCSFExport scsf_MaintainAdditionalChartData(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { sc.GraphName = "MaintainAdditionalChartData"; sc.MaintainAdditionalChartDataArrays = 1; sc.GraphRegion = 1; return; } } |
To post a message in this thread, you need to log in with your Sierra Chart account: