Posted By: strimp099
Populating an array of dynamic size on each run of run() - 02/04/21 09:08
Greetings,
My intent is to populate an array with option strikes for daily run. However I receive a syntax error when attempting to create an array like this:
presumably because arrays are static and cannot be redeclared. According to the manual, using malloc to allocate space dynamically is slow. So something like this:
Is not recommended
Is there a standard way to dynamically create arrays during each run?
My intent is to populate an array with option strikes for daily run. However I receive a syntax error when attempting to create an array like this:
Code
var strikes[NumContracts];
presumably because arrays are static and cannot be redeclared. According to the manual, using malloc to allocate space dynamically is slow. So something like this:
Code
var strikes = malloc(NumContracts*sizeof(var));
Is not recommended
Is there a standard way to dynamically create arrays during each run?