MT5 · Runtime errors
MT5 4307 · Wrong session ID when calling the SymbolInfoSessionQuote/SymbolInfoSessionTrade function | YI GOLD
ERR_MARKET_SESSION_INDEX
Official meaning
Wrong session ID when calling the SymbolInfoSessionQuote/SymbolInfoSessionTrade function
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.