Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 00:17:30 +0000



A question about sc.Input ?

View Count: 758

[2018-09-16 14:47:51]
User210074 - Posts: 63
I have a problem with the sc.Input function?
I can not put successively over 127 sc.Input[]. The 128 does not work.
Beyond 127, nothing works.
I put line 128 that was not working, instead of line 127. It works.
Is there a limit in number for the function?
On the documentation ACSIL Interface Members - sc.Input Array: ACSIL sc.Input[] Members , I did not find anything.


#include "sierrachart.h"
#include "scstudyfunctions.h"
#include <iterator>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <chrono>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <list>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
using std::string;
using std::to_string;
using std::istringstream;
using std::ifstream;
using std::ofstream;
using std::ios_base;
using std::getline;
using std::size_t;
using std::stof;
using std::stod;
using std::stoi;
using std::vector;
using std::rand;
using std::sort;
using std::reverse;
using std::lower_bound;
using std::upper_bound;
using std::advance;

SCDLLName("VDP_VDCO_64Bits")
SCSFExport scsf_VDP_VDCO_64Bits(SCStudyInterfaceRef sc) {
SCInputRef CFG_MAT =sc.Input[0];
  /*...*/
SCInputRef SEPT =sc.Input[127];/*ok, It works*/
SCInputRef VDPC_IDVBN_HE =sc.Input[128];/*it does not work*/
if(sc.SetDefaults){
   sc.GraphName="VDP_VDCO_64Bits";
   sc.GraphRegion=0;
   sc.AutoLoop=true;
   sc.FreeDLL=1;
CFG_MAT.Name="VDP : CFG ";
   CFG_MAT.SetCustomInputStrings("Select;- Memory;- Memory + Differe Registration");
   CFG_MAT.SetCustomInputIndex(0);/*[0]<- sc.Input[0]*/
   /*....*/
   SEPT.Name=" ";/*[127]<- sc.Input[127]*/
   SEPT.SetString("########VDPC IDVBN######## ");
   VDPC_IDVBN_HE.Name="IDVBN: Backup schedule ";/*[128]<- sc.Input[128]*/
   VDPC_IDVBN_HE.SetDouble(0.00);
   VDPC_IDVBN_HE.SetDoubleLimits(0.00, 23.59);
}
}

Date Time Of Last Edit: 2018-09-16 20:41:25
[2018-09-16 20:42:06]
Sierra Chart Engineering - Posts: 104368
This section here explains that there are 128 inputs:
ACSIL Interface Members - sc.Input Array: Introduction

So the maximum input index is 127.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2018-09-16 20:43:13
[2018-09-16 21:50:32]
User210074 - Posts: 63
I'm sorry, for asking you that.
The keyword search on the site pointed to the link I gave.
I did not see this documentation on sc.Input that was elsewhere.
I am really sorry.
[2018-09-16 22:11:18]
Sierra Chart Engineering - Posts: 104368
No problem. Is it an issue if you are limited to 128 study Inputs? It is not easy for us to increase this. Maybe one thing you could do is use string type inputs and perhaps combine several values into one and then parse out the data you need from the string.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account