Error 8. Type mismatch, the value assigned to the array element has to be a number. You can not use array on the right-side of this assignment.

Occurs on attempt to assign entire array to single element of another array

test = 0;
for( i = 0; i < BarCount; i++ )
{
    test[ i ] =
Close ; // wrong, single array element can take only one value, not array

    test[ i ] =
Close[ i ]; // correct
}