MT5 · Runtime errors
MT5 5052 · Too small array, the starting position is outside the array | YI GOLD
ERR_SMALL_ARRAY
Official meaning
Too small array, the starting position is outside the array
Possible causes · YI GOLD suggestions
Array size, index, type or series orientation violates function requirements.
Troubleshooting · YI GOLD suggestions
Check length, bounds, dynamic-array declarations and ArraySetAsSeries. Validate returned element counts before access.