找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
首页论坛EAHub 外汇论坛
查看: 6|回复: 0

mt5版本代码,同时多空开单两种货币,偶尔会少开一个单。

[复制链接]

4万

主题

54

回帖

4万

积分

管理员

积分
45954
发表于 2026-8-21 12:45:00 | 显示全部楼层 |阅读模式
mt5版本代码,同时多空开单两种货币,偶尔会少开一个单。出现应该开两单,只开了一单的情况。

这个问题,不知是mt5系统问题,还是代码有问题。

请各位高手帮忙分析下,谢谢!


日志返回错误代码:

Result Retcode: 10021        没有报价处理请求

Result Retcode: 10004        报价请求


部分开单代码:

bool buyBuy = m_trade.Buy(check_open_long_lot,m_symbol.Name());

   Print("m_trade.Buy -----> Result Retcode: ",m_trade.ResultRetcode(),

                     ", description of result: ",m_trade.ResultRetcodeDescription());


   bool buySell = m_trade.Sell(check_open_long_lot,m_symbolSeconds.Name());

   Print("m_trade.Sell -----> Result Retcode: ",m_trade.ResultRetcode(),

                     ", description of result: ",m_trade.ResultRetcodeDescription());
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|EAHub外汇论坛

GMT+8, 2026-10-11 04:15 , Processed in 0.102192 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表