Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 02:40:46 +0000



Post From: Color specific point on Indicator, acsil

[2020-08-24 21:20:13]
User681150 - Posts: 62
thanks Ackin. but i get a "SCFloatArray has no member DataColor". i assigned this Type for the study array.


SCFloatArray stochMOM
sc.GetStudyArrayUsingID(6, 0, stochMOM)

if(stochMOM[sc.Index] > 70)
{ sc.SetStudySubgraphColors(4, 6, 0 , RGB( 0, 0,255), RGB(250,0,0), 1); }


i use a SCFloatArray for the GetStudyArrayUsingID() so i assume this is the reason. the first line of your script is members of a Subgraph, so how do i convert this array into a subgraph. or whats the best way to use the GetStudyArrayUsingID() to get all the features of the Subgraph so i can use the
DataColor member

SCFloatArray stochMOM;   
sc.GetStudyArrayUsingID(6, 0, stochMOM);

sc.SetStudySubgraphColors( 4, 6, 0 , RGB( 0, 0,255), RGB(255,0,0), 1 );
stochMOM.DataColor[sc.Index] = stochMOM.PrimaryColor;

if(stochMOM[sc.Index] > 70) stochMOM.DataColor[sc.Index] = stochMOM.SecondaryColor;

Date Time Of Last Edit: 2020-08-24 21:34:45