metatrader错误初始化()失败,错误代码=(10005,“IPC超时”)

2024-04-29 13:20:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我犯了这个错误 初始化()失败,错误代码=(-10005,“IPC超时”) 执行此代码时:

import MetaTrader5 as mt5
# display data on the MetaTrader 5 package
print("MetaTrader5 package author: ",mt5.__author__)
print("MetaTrader5 package version: ",mt5.__version__)
 
# establish connection to the MetaTrader 5 terminal
if not mt5.initialize(login=999999, server="xyz-Demo",password="abcdef"):
    print("initialize() failed, error code =",mt5.last_error())
    mt5.shutdown()

有人能帮我吗?提前谢谢


Tags: the代码importpackageversion错误errorauthor