MT5 · Compilation errors
MT5 321 · Parameter for EnumToString() can be only an enumeration | YI GOLD
Official meaning
Parameter for EnumToString() can be only an enumeration
Possible causes · YI GOLD suggestions
Parameter types, counts or ranges do not match the function signature.
Troubleshooting · YI GOLD suggestions
Compare each argument and reference mode with the official signature. Validate ranges and preserve relevant failure context.