PureBytes Links
Trading Reference Links
|
Hi everyone,
Does anyone know how can I get rid of this weird "Infinite loop Error"
in the following example ?? (under TradeStation 8.1 build 2706).
By the way, this error isn't triggered when applied to a chart with
a few hundred bars...
--------------- (Extract) ------------------
[InfiniteLoopDetect = FALSE]
{ New in TradeStation 8.1 - It should help but it doesn't.... }
var : ind(0);
array : float Indicator[](0);
if CurrentBar > MaxBarsBack then
begin
ind=ind[1] + 1;
Array_SetMaxIndex(Indicator,ind);
Indicator[ind]= CCI(10);
end;
if LastBarOnChart then
value1=SortArray(Indicator,ind,1);
---------------------------------------------
Thank you for your help,
Regards,
Christian
|