Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 13:54:28 +0000



Post From: Get color of remote subgraph

[2016-09-15 16:34:48]
onnb - Posts: 661
Just to see I understand

I have study A that is referencing a subgraph from study B. I should be able to see the COLORREF values for the subgraph at each index?

In the following example, if study id 1 is MACD, data[sc.Index] should be the color of the COLORREF value of the histogram?

(Right now I am getting 0's)


SCColorArray data;
sc.GetStudyDataColorArrayFromChartUsingID(sc.ChartNumber, 1, 2, data);


For the same chart/study, the following returns the values of the macd histogram.

    
SCFloatArray value;
sc.GetStudyArrayUsingID(1, 2, value);