Bibliotecas: MT4Orders - página 65

 

La biblioteca tiene cinco años.


Los logros de la biblioteca pueden leerse aquí seleccionando el idioma deseado para la traducción.

Results.

  • Open source and freely redistributable source code.
  • The easiest to learn and use trading library (from public) for MetaTrader 5. Does not require its own documentation.
  • Allowed some authors to write articles on the practical application of machine learning and other trading techniques without difficulty.
  • Simplified the transition from backtesting robots to combat versions.
  • Highest reliability of any hedge account solution.
  • High performance for live trading accounts and backtests.
  • Made it easier to work with the trading history and control the quality of execution of trade orders: slippage, rejections.
  • Cross-platform (MetaTrader family).
  • Fully translated into English by MetaQuotes.
  • She attracted a large number of programmers to the corresponding section of the MQL-Community (one of the world's largest trader-community).
  • Provided tens of thousands of Market sales and Freelance work.
  • Huge contribution to the popularization of MetaTrader 5 and services related to the trading platform.
  • Allowed to create reproducible reports on errors in the trading part of the platform, prompting them to fix them.
  • It greatly influenced the acceleration of the trading part of the platform (client and server parts).
  • Identified errors / flaws and weaknesses in third-party brokerage software and platform settings on the part of admins.
  • Library-based products have made millions of transactions with a  total turnover of about USD trillion  .
  • Contributed to the mass segment of algorithmic trading.
  • Has advanced scalping and multicurrency trading methods by simply switching to the MetaTrader 5 trading strategy tester.
  • Influenced the development of the retail-Forex industry and related industries.
  • Demonstrated the possibility of writing the most convenient (mass) unified trading API based on various third-party trading APIs.


Gracias a todos los que informaron de errores y sugirieron mejoras. Un agradecimiento especial a MetaQuotes.
Торговый оборот в триллион USD и другие достижения библиотеки за пять лет.
Торговый оборот в триллион USD и другие достижения библиотеки за пять лет.
  • www.mql5.com
Для MetaTrader 5 написана торговая библиотека MT4Orders . Начиналось так. // Список изменений: // 03.08.2016: //   Релиз - писался и проверялся только на оффлайн-тестере. Сегодня библиотеке
 
¡Felicidades y gracias!
Efectivamente, la biblioteca más utilizada.
 
Fuego
 
fxsaber:

  • Influyó en el desarrollo de la industria minorista de divisas e industrias afines.

Muy bien.

 

Foro sobre trading, sistemas automatizados de trading y testeo de estrategias de trading

Bibliotecas: MT4Orders

fxsaber, 2017.09.03 18:52

// 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.

 
La sincronización es muy buena, pero no perfecta. Tendré que retocar algo sobre este tema en algún momento.....
Проверка на наличие дублей ордеров/позиций в MT5
Проверка на наличие дублей ордеров/позиций в MT5
  • www.mql5.com
Появление дублей ордеров/позиций в 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".

With your library I can't do that.
 
fxsaber

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".

With your library I can't do that.
 
mercanet:
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".

With your library I can't do that.

Show your code, please.

 
fxsaber #:

Show your code, please.

#include <MT4Orders.mqh>
#include <MQL4_to_MQL5.mqh>

//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
   
   //SL
   double stopLoss = Ask-10*_Point;
   stopLoss = NormalizeDouble(stopLoss, _Digits);
   
   //TP
   double takeProfit = Ask+10*_Point;
   takeProfit = NormalizeDouble(takeProfit, _Digits);   

   int result=OrderSend(Symbol(), OP_BUY, 1, Ask, 30, stopLoss, takeProfit, "TEST", 2021, 0, clrMagenta);
   if(result<=0)
      {
         int err=GetLastError();
         Print("Error sending order Error Code: "+IntegerToString(err));         
      }
      Alert(result);
  }

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?