MQL5 analog to OrderReliableVersion MQL4 Новый комментарий EUGENE ANDRY 2014.01.30 05:16 Есть ли аналог OrderReliableVersion MQL5? ========================================================================= // OrderReliable.mqh//// Copyright © 2006, Derk Wehler (derkwehler@gmail.com)//// This file is simply LibOrderReliable as a header file instead of a library//// In order to read this code most clearly in the Metaeditor, it is advised// that you set your tab settings to 4 (instead of the default 3): // Tools->Options->General Tab, set Tab Size to 4, uncheck "Insert spaces"//// CURRENT REVISION STATUS (Inserted by SOS):// |$Workfile:: OrderReliable.mqh $|// |$Revision:: 29 $|// |$Author :: Derk $|// |$Date :: $|//// ***************************************************************************// ***************************************************************************//// A library for MT4 expert advisors, intended to give more reliable// order handling. This library only concerns the mechanics of sending// orders to the Metatrader server, dealing with transient connectivity// problems better than the standard order sending functions. It is// essentially an error-checking wrapper around the existing transaction// functions. This library provides nothing to help actual trade strategies,// but ought to be valuable for nearly all expert advisors which trade 'live'.//////=============================================================================//// Contents://// OrderSendReliable()// This is intended to be a drop-in replacement for OrderSend()// which, one hopes is more resistant to various forms of errors// prevalent with MetaTrader.//// OrderSendReliableMKT()// This function is intended for immediate market-orders ONLY,// the principal difference that in its internal retry-loop,// it uses the new "Bid" and "Ask" real-time variables as opposed// to the OrderSendReliable() which uses only the price given upon// entry to the routine. More likely to get off orders, and more// likely they are further from desired price.//// OrderSendReliable2Step()// This function is intended to be used when brokers do not allow// initial stoploss and take-profit settings as part of the initial// market order. After successfully playing an order, it will then// Call OrderModifyReliable() to update the SL and TP settings.//// OrderModifyReliable()// A replacement for OrderModify with more error handling.//// OrderCloseReliable()// A replacement for OrderClose with more error handling.//// OrderCloseReliableMKT()// This function is intended for closing orders ASAP; the// principal difference is that in its internal retry-loop,// it uses the new "Bid" and "Ask" real-time variables as opposed// to the OrderCloseReliable() which uses only the price given upon// entry to the routine. More likely to get the order closed if // price moves, but more likely to "slip"//// OrderDeleteReliable()// A replacement for OrderDelete with more error handling.////===========================================================================#property copyright "Copyright © 2006, Derk Wehler"#property link "derkwehler@gmail.com"#include <stdlib.mqh>#include <stderror.mqh>string OrderReliableVersion = "v29";string OrderReliable_Fname = "OrderReliable fname unset";int retry_attempts = 10;double sleep_time = 8.0;double sleep_maximum = 25.0; Машинное обучение в трейдинге: теория, модели, практика и алготорговля Библиотеки: MT4Orders свинья в хлеву Новый комментарий
Есть ли аналог OrderReliableVersion MQL5?
=========================================================================