Occurs when AFL engine detect the for loop that never ends (the detection is based on number of iterations, AmiBroker simply counts the number of iterations and if it exceeds the threshold limit set in Tools->Preferences->AFL: Endless loop detection threshold - by default 100000 iterations) it displays this message). Example:
for(
i = 0; i < BarCount;
i ) // forgotten ++ (increment operator) so
the loop never ends.
{
x = i;
}