Login Page - Create Account

Support Board


Date/Time: Mon, 13 Jan 2025 08:54:18 +0000



Post From: SC code

[2017-04-11 18:32:40]
User28682 - Posts: 233
1) I asked you how to get the code for particular study and I went in and I think was able to get to it. Here is what I found for
On Balance Volume:

SCSubgraphRef OBV = sc.Subgraph[0];
SCInputRef Length = sc.Input[3];

if (sc.SetDefaults)
{
sc.GraphName = "On Balance Volume - Short Term";

sc.ValueFormat = 0;
sc.AutoLoop = 1;

OBV.Name = "OBV Length";
OBV.DrawStyle = DRAWSTYLE_LINE;
OBV.PrimaryColor = RGB(0,255,0);
OBV.DrawZeros = true;

Length.Name = "Length";
Length.SetInt(10);
Length.SetIntLimits(1, MAX_STUDY_LENGTH);

return;
}

sc.OnBalanceVolumeShortTerm(sc.BaseDataIn, OBV, Length.GetInt());

I assume SC has a function for all of its studies and the actual code is burried behind the OBV? I dont
see any logic for OBV in this code otherwise? Where can I find this?

2) I activated a second log in. When I went to use the second login I got this error message:

the log says:

TD Ameritrade | Requesting account balance data. Connection will be complete once received. | 2017-04-10 21:58:11
TD Ameritrade | OnAsyncHTTP2RequestFinished did not process RequestID 76. | 2017-04-10 21:58:12

Do I need to be logged in to TD Ameritrade at all times so this second log in works?


Thanks

Tom