程序库: MT4Orders - 页 48

[删除]  
Anatoliy Dzhumko:
错误如下

用白色英文写的 - 编译器不支持 mt4,请在 mt4 元编辑器中编译。

 
Aleksandr Volotko:

编译器不支持 mcl4,请使用 mt4 的元编辑器编译。

你可以看到有一个从 µl4 转换到 µl5 的库。以前编译可以正常通过,但现在开始出错。

 
Anatoliy Dzhumko:

它还显示,用于从 µl4 转换到 µl5 的库已连接。之前的编译正常通过,但现在开始产生错误。

阅读第 2450 版的说明 (https://www.mql5.com/ru/forum/340770)

更新仅包含平台的 64 位组件

我们已多次宣布停止支持 32 位版本的终端。从当前更新开始,所有新版本都只发布 64 位组件。最后一个可用的 32 位终端版本是第 2360 版

如果您仍在使用 32 位解决方案,我们建议您尽快升级到 64 位版本。

Новая версия платформы MetaTrader 5 build 2450: Сервис "Подписки", улучшения в интерфейсе и удобные функции в MetaEditor
Новая версия платформы MetaTrader 5 build 2450: Сервис "Подписки", улучшения в интерфейсе и удобные функции в MetaEditor
  • 2020.05.15
  • www.mql5.com
В пятницу 22 мая 2020 года будет выпущена обновленная версия платформы MetaTrader 5...
 
MT4Orders 帮助我们轻松编写了错误重放 的交易部分。
 
// 更改列表:
// 10.04.2020
// 修复:部分执行的实时挂单未进入 OrdersTotal() 中的问题。
 
以防万一,我想说的是,在我的记忆中,ZIP 压缩文件已经修复。但现在又乱套了,那里有一个旧版本,你必须按文件更新。
 
traveller00:
为了以防万一,我想提一下,在我的记忆中,ZIP 压缩文件已经修复了。但现在又乱套了,而且还有一个旧版本,所以你必须按文件更新。

在这种情况下,始终只有一个文件。

 
// 更改列表:
// 09.06.2020
// 添加:对平仓的 StopLoss/TakeProfit/ClosePriceRequest 价格进行了更好的定义。

MT5 有时会将 SL/TP 设为价格为零的市价订单。在此之前,您无法确定设定的 SL/TP 水平,因此也无法确定滑点金额。

 
fxsaber:

MT5 有时会将 SL/TP 设为价格为零的市价订单。在此之前,您无法确定设定的 SL/TP 水平,因此也无法确定滑点金额。

就是现在。

我关闭了 一个交易品种的仓位,几乎是立即打开了第二个澳元兑美元的仓位

OR      0       16:51:07.204    Expert (AUDUSD,M30)     Line = 1239
HD      0       16:51:07.204    Expert (AUDUSD,M30)     Before ::HistoryOrderSelect(Result.order):
JP      0       16:51:07.204    Expert (AUDUSD,M30)     MT4ORDERS::OrderSendBug = 4
II      0       16:51:07.204    Expert (AUDUSD,M30)     Result.deal = 0
OQ      0       16:51:07.204    Expert (AUDUSD,M30)     
PK      0       16:51:07.204    Expert (AUDUSD,M30)     Line = 1261
FJ      0       16:51:07.204    Expert (AUDUSD,M30)     Before MT4ORDERS::HistoryDealSelect(Result):
JI      0       16:51:07.204    Expert (AUDUSD,M30)     MT4ORDERS::OrderSendBug = 4
IP      0       16:51:07.204    Expert (AUDUSD,M30)     Result.deal = 0
OH      0       16:51:07.204    Expert (AUDUSD,M30)     
IJ      0       16:51:07.204    Expert (AUDUSD,M30)     Alert: OrderSend(60423271) - BUG!
DD      0       16:51:07.204    Expert (AUDUSD,M30)     Alert: Please send the logs to the coauthor - https://www.mql5.com/en/users/fxsaber
OE      0       16:51:07.204    Expert (AUDUSD,M30)     Alert: D:\MetaTrader 5 - RoboForex\MQL5\Logs\20200609.log
QL      0       16:51:07.218    Expert (AUDUSD,M30)     MT4Orders.mqh = MT4Orders.mqh
IJ      0       16:51:07.218    Expert (AUDUSD,M30)     Version = 2020.01.12
LO      0       16:51:07.218    Expert (AUDUSD,M30)     __MQLBUILD__ = 2450
CF      0       16:51:07.218    Expert (AUDUSD,M30)     2020.05.23 = 2020.05.23 00:00:00
IP      0       16:51:07.218    Expert (AUDUSD,M30)     ::AccountInfoString(ACCOUNT_SERVER) = Alpari-MT5-Demo
EP      0       16:51:07.218    Expert (AUDUSD,M30)     (ENUM_ACCOUNT_TRADE_MODE)::AccountInfoInteger(ACCOUNT_TRADE_MODE) = ACCOUNT_TRADE_MODE_DEMO (0)
MP      0       16:51:07.218    Expert (AUDUSD,M30)     (bool)::TerminalInfoInteger(TERMINAL_CONNECTED) = true
CO      0       16:51:07.218    Expert (AUDUSD,M30)     ::TerminalInfoInteger(TERMINAL_PING_LAST) = 69989
FJ      0       16:51:07.218    Expert (AUDUSD,M30)     ::TerminalInfoDouble(TERMINAL_RETRANSMISSION) = 4.20914172969418
DD      0       16:51:07.218    Expert (AUDUSD,M30)     ::TerminalInfoInteger(TERMINAL_BUILD) = 2485
PP      0       16:51:07.218    Expert (AUDUSD,M30)     (bool)::TerminalInfoInteger(TERMINAL_X64) = true
JE      0       16:51:07.218    Expert (AUDUSD,M30)     (bool)::TerminalInfoInteger(TERMINAL_VPS) = false
FD      0       16:51:07.218    Expert (AUDUSD,M30)     (ENUM_PROGRAM_TYPE)::MQLInfoInteger(MQL_PROGRAM_TYPE) = PROGRAM_EXPERT (2)
DE      0       16:51:07.218    Expert (AUDUSD,M30)     ::TimeCurrent() = 2020.06.09 16:51:11
OM      0       16:51:07.218    Expert (AUDUSD,M30)     ::TimeTradeServer() = 2020.06.09 16:51:07
NE      0       16:51:07.218    Expert (AUDUSD,M30)     MT4ORDERS::TimeToString(MT4ORDERS::GetTimeCurrent()) = 2020.06.09 16:51:11.734
MK      0       16:51:07.218    Expert (AUDUSD,M30)     MT4ORDERS::TimeToString(PrevTimeCurrent) = 2020.06.09 16:51:11.544
RI      0       16:51:07.218    Expert (AUDUSD,M30)     PrevTick = Symb = AUDUSD time = 2020.06.09 16:51:11.340 bid = 0.69603 ask = 0.69609 last = 0.00000 volume = 0 6 TICK_FLAG_BID TICK_FLAG_ASK
IS      0       16:51:07.218    Expert (AUDUSD,M30)     CurrentTick = ::SymbolInfoTick(Symb,Tick) = true Symb = AUDUSD time = 2020.06.09 16:51:11.639 bid = 0.69603 ask = 0.69611 last = 0.00000 volume = 0 4 TICK_FLAG_ASK
DI      0       16:51:07.218    Expert (AUDUSD,M30)     ::SymbolInfoString(Request.symbol,SYMBOL_PATH) = Forex\AUDUSD
ND      0       16:51:07.218    Expert (AUDUSD,M30)     ::SymbolInfoString(Request.symbol,SYMBOL_DESCRIPTION) = Australian Dollar vs US Dollar
PJ      0       16:51:07.218    Expert (AUDUSD,M30)     ::PositionsTotal() = 2
QM      0       16:51:07.218    Expert (AUDUSD,M30)     ::OrdersTotal() = 0
PJ      0       16:51:07.218    Expert (AUDUSD,M30)     ::HistorySelect(0,INT_MAX) = true
HN      0       16:51:07.218    Expert (AUDUSD,M30)     ::HistoryDealsTotal() = 61
OH      0       16:51:07.218    Expert (AUDUSD,M30)     ::HistoryOrdersTotal() = 60
EO      0       16:51:07.218    Expert (AUDUSD,M30)     ::HistoryDealGetTicket(::HistoryDealsTotal()-1) = 41941835
IN      0       16:51:07.218    Expert (AUDUSD,M30)     DEAL_TIME_MSC = 2020.06.09 16:51:11.738
CF      0       16:51:07.218    Expert (AUDUSD,M30)     ::HistoryOrderGetTicket(::HistoryOrdersTotal()-1) = 60423271
LP      0       16:51:07.218    Expert (AUDUSD,M30)     ORDER_TIME_DONE_MSC = 2020.06.09 16:51:11.738
NQ      0       16:51:07.218    Expert (AUDUSD,M30)     ::TerminalInfoInteger(TERMINAL_MEMORY_AVAILABLE) = 15891
IJ      0       16:51:07.218    Expert (AUDUSD,M30)     ::TerminalInfoInteger(TERMINAL_MEMORY_PHYSICAL) = 8153
QH      0       16:51:07.218    Expert (AUDUSD,M30)     ::TerminalInfoInteger(TERMINAL_MEMORY_TOTAL) = 16306
NP      0       16:51:07.218    Expert (AUDUSD,M30)     ::TerminalInfoInteger(TERMINAL_MEMORY_USED) = 415
GS      0       16:51:07.218    Expert (AUDUSD,M30)     ::MQLInfoInteger(MQL_MEMORY_LIMIT) = 8388608
OH      0       16:51:07.218    Expert (AUDUSD,M30)     ::MQLInfoInteger(MQL_MEMORY_USED) = 1
CR      0       16:51:07.218    Expert (AUDUSD,M30)     MT4ORDERS::IsHedging = true
GK      0       16:51:07.218    Expert (AUDUSD,M30)     Res = true
QM      0       16:51:07.218    Expert (AUDUSD,M30)     MT4ORDERS::OrderSendBug = 4
LD      0       16:51:07.218    Expert (AUDUSD,M30)     Request.action = TRADE_ACTION_DEAL (1)
DJ      0       16:51:07.218    Expert (AUDUSD,M30)     Request.magic = 1
JS      0       16:51:07.218    Expert (AUDUSD,M30)     Request.order = 0
HG      0       16:51:07.218    Expert (AUDUSD,M30)     Request.symbol = AUDUSD
EL      0       16:51:07.218    Expert (AUDUSD,M30)     Request.volume = 0.1
QJ      0       16:51:07.218    Expert (AUDUSD,M30)     Request.price = 0.69603
KR      0       16:51:07.218    Expert (AUDUSD,M30)     Request.stoplimit = 0.0
QE      0       16:51:07.218    Expert (AUDUSD,M30)     Request.sl = 0.0
NL      0       16:51:07.218    Expert (AUDUSD,M30)     Request.tp = 0.0
NO      0       16:51:07.218    Expert (AUDUSD,M30)     Request.deviation = 30
DE      0       16:51:07.218    Expert (AUDUSD,M30)     Request.type = ORDER_TYPE_SELL (1)
PH      0       16:51:07.218    Expert (AUDUSD,M30)     Request.type_filling = ORDER_FILLING_FOK (0)
LN      0       16:51:07.218    Expert (AUDUSD,M30)     Request.type_time = ORDER_TIME_GTC (0)
FJ      0       16:51:07.218    Expert (AUDUSD,M30)     Request.expiration = 1970.01.01 00:00:00
NF      0       16:51:07.218    Expert (AUDUSD,M30)     Request.comment = Expert mn(1) sp(0.6)
KO      0       16:51:07.218    Expert (AUDUSD,M30)     Request.position = 0
QK      0       16:51:07.218    Expert (AUDUSD,M30)     Request.position_by = 0
LO      0       16:51:07.218    Expert (AUDUSD,M30)     Result.retcode = 10009
IJ      0       16:51:07.218    Expert (AUDUSD,M30)     Result.deal = 41941835
ML      0       16:51:07.218    Expert (AUDUSD,M30)     Result.order = 60423271
CH      0       16:51:07.218    Expert (AUDUSD,M30)     Result.volume = 0.1
MN      0       16:51:07.218    Expert (AUDUSD,M30)     Result.price = 0.69603
CF      0       16:51:07.218    Expert (AUDUSD,M30)     Result.bid = 0.0
OO      0       16:51:07.218    Expert (AUDUSD,M30)     Result.ask = 0.0
PJ      0       16:51:07.218    Expert (AUDUSD,M30)     Result.comment = Request executed 126.607 + 0.102 (4) ms.
PM      0       16:51:07.218    Expert (AUDUSD,M30)     Result.request_id = 29
JG      0       16:51:07.218    Expert (AUDUSD,M30)     Result.retcode_external = 0
PM      0       16:51:07.218    Expert (AUDUSD,M30)     
 
Vitaly Muzichenko:

就是现在

我关闭了 一个符号的仓位,几乎是立即又打开了澳元兑美元的 第二个仓位

这只是向用户详细说明库发现了 MT5 的错误并绕过了它。