[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Infinite loop" error - Need TradeStation Expert.



PureBytes Links

Trading Reference Links

There appears to be no end to your loop...if currentbar> maxbarsback....it
will always be > maxbarsback...
----- Original Message ----- 
From: "Bill J." <cc22mm@xxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Wednesday, August 24, 2005 7:37 PM
Subject: "Infinite loop" error - Need TradeStation Expert.


> 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
>