Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 01:04:48 +0000



[Programming Help] - Ascil example for DRAWSTYLE_HORIZONTAL_PROFILE ?

View Count: 614

[2019-11-03 07:12:17]
User574685 - Posts: 28
I found some code :

SCSFExport scsf_mp(SCStudyInterfaceRef sc)
{
SCSubgraphRef sg1 = sc.Subgraph[0];


if (sc.SetDefaults)
{

sc.GraphName = "MP";
sc.GraphRegion = 0;
sc.AutoLoop = 0;

sg1.Name = "BidVolume";
sg1.DrawStyle = DRAWSTYLE_HORIZONTAL_PROFILE;
sg1.PrimaryColor = RGB(64, 0, 0);

return;
}

for(int i=sc.ArraySize -10;i< sc.ArraySize;i++)
sg1[i] = sc.Close[i];
}

It`s evidently can`t work properly
It`s depicting some garbage at index close ..
Howto feed data into that type of subgraf ?

Thanks For Help
Dave[/i][/i]
Date Time Of Last Edit: 2019-11-03 12:02:52

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account