Is the following logic valid for retaining computed historical values? [the chart is a daily bar chart].
Define my_historical_array.
Define an array pointer.
Then in Main, increment the array pointer, store some computed value in the array and set a variable equal to some historical value.
When I try it the eSignal program freezes up [ie] becomes non-responsive?
//Sample skeleton code is as follows:
...
...
var my_historical_array=new Array;
var array_ptr=0;
...
...
function preMain()
{
...
...
}
function main()
{
...
...
array_ptr=array_ptr+1;
...
...
my_historical_array(array_ptr)=some_computed_value ;
output1=my_historical_array(array_ptr-2);
...
...
return output1;
}
Define my_historical_array.
Define an array pointer.
Then in Main, increment the array pointer, store some computed value in the array and set a variable equal to some historical value.
When I try it the eSignal program freezes up [ie] becomes non-responsive?
//Sample skeleton code is as follows:
...
...
var my_historical_array=new Array;
var array_ptr=0;
...
...
function preMain()
{
...
...
}
function main()
{
...
...
array_ptr=array_ptr+1;
...
...
my_historical_array(array_ptr)=some_computed_value ;
output1=my_historical_array(array_ptr-2);
...
...
return output1;
}
Comment