Для MetaTrader 5 написана торговая библиотека MT4Orders . Начиналось так. // Список изменений: // 03.08.2016: // Релиз - писался и проверялся только на оффлайн-тестере. Сегодня библиотеке
// Lista de cambios:// 03.09.2017:// Añadir: Añadido OrderTicketOpen() - Ticket de transacción de apertura de posición MT5// OrderOpenReason() - motivo de la operación de apertura de MT5 (motivo de la apertura de una posición)// OrderCloseReason() - причина проведения MT5-сделки закрытия (причина закрытия позиции)
En las órdenes pendientes remotas, OrderCloseReason siempre es igual a OrderOpenReason: el motivo por el que se realizó la orden.
MT5 no da información sobre el motivo por el que se ha eliminado la orden. Por ejemplo, se desconoce si la orden fue eliminada por usted mismo o por el broker.
Появление дублей ордеров/позиций в MT5 - архитектурная особенность платформы, с которой многие сталкиваются. Данная неприятность вызывает серьезные перекосы в торговых рисках, ломает логику, усложняет
Hi, the "OrderSend" function returns the order ticket in case of success. But your MT5 version returns a bool.
How can I make it work by returning the ticket. Because when the "OrderSend" function returns the ticket I can use it to modify the order using "OrderModifiy".
Hi, the "OrderSend" function returns the order ticket in case of success. But your MT5 version returns a bool.
How can I make it work by returning the ticket. Because when the "OrderSend" function returns the ticket I can use it to modify the order using "OrderModifiy".
Hi, the "OrderSend" function returns the order ticket in case of success. But your MT5 version returns a bool.
How can I make it work by returning the ticket. Because when the "OrderSend" function returns the ticket I can use it to modify the order using "OrderModifiy".
La biblioteca tiene cinco años.
Los logros de la biblioteca pueden leerse aquí seleccionando el idioma deseado para la traducción.
Results.
Cinco años ...
Cinco años ...
Muy bien.
Foro sobre trading, sistemas automatizados de trading y testeo de estrategias de trading
Bibliotecas: MT4Orders
fxsaber, 2017.09.03 18:52
En las órdenes pendientes remotas, OrderCloseReason siempre es igual a OrderOpenReason: el motivo por el que se realizó la orden.
MT5 no da información sobre el motivo por el que se ha eliminado la orden. Por ejemplo, se desconoce si la orden fue eliminada por usted mismo o por el broker.
Show your code, please.
Show your code, please.
I got confused, I was looking at the mql5 OrderSend function which returns a boolean.
You did very well, it works like in mql4.
The only thing is that it generates these two warnings in the library "MQL4_to_MQL5.mqh". Can it be solved?