Support Board
Date/Time: Fri, 29 Nov 2024 02:51:41 +0000
Post From: Using ascil to obtain the subgraph color from of another charts study subgraph.
[2023-03-17 12:37:20] |
User431178 - Posts: 544 |
I can't quite see how I obtain the COLORREF or RGB() from DrawStyle
It seems you might be reading the wrong information. Follow the link and make sure to read the section titled sc.GetStudySubgraphColors() it is quite clear and does not reference the drawstyle anywhere. int32_t GetStudySubgraphColors(int32_t ChartNumber, int32_t StudyID, int32_t StudySubgraphNumber, uint32_t& r_PrimaryColor, uint32_t& r_SecondaryColor, uint32_t& r_SecondaryColorUsed);
uint32_t PrimaryColor = 0; uint32_t SecondaryColor = 0; uint32_t SecondaryColorUsed = 0; sc.GetStudySubgraphColors(1, 1, 0, PrimaryColor, SecondaryColor, SecondaryColorUsed); |