Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iCustom with parameters #266

Open
jfitton74 opened this issue Feb 2, 2022 · 0 comments
Open

iCustom with parameters #266

jfitton74 opened this issue Feb 2, 2022 · 0 comments

Comments

@jfitton74
Copy link

When using iCustom with parameter array 2147483647 is returned however if I use the method that doesnt take a parameter array I get the correct returned value, it is then using the indicator defaults in the indicator file at this time to simplify testing have been set as 1,3,2.5 ie the same as being passed in through code.

here is the code
string sym = "GBPJPY";
const ChartPeriod timeframe = ChartPeriod.PERIOD_D1;
string ea = "JFTEST";
double[] param = { 1, 3, 2.5 };
const int mode = 0;
const int mode1 = 1;
const int shift = 0;
var result1 = _apiClient.iCustom(sym, (int)timeframe, ea, param, mode1, shift);
var result2 = _apiClient.iCustom(sym, (int)timeframe, ea, mode1, shift);

Am I making a basic mistake or is this a known issue?

I am using v1.43.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant