Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Kütüphaneler

ResultRetcodeDescription - MetaTrader 5 için kütüphane

Görüntülemeler:
3482
Derecelendirme:
(27)
Yayınlandı:
2012.08.12 16:44
Güncellendi:
2016.11.22 07:32
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

Real Author:

MetaQuotes

This simple function returns a string of decrypted code of the trade operation result from MqlTradeCheckResult after executing the OrderCheck() function:

   MqlTradeCheckResult check;

//---- Checking for correctness of trade request
   if(!OrderCheck(request,check))
     {
      Print(__FUNCTION__,"(): OrderCheck(): ",ResultRetcodeDescription(check.retcode));
      return(false);
     }

Alternatively, it can return a string from MqlTradeResult after executing the OrderSend() function: 

  MqlTradeCheckResult check;

  word=__FUNCTION__+"(): OrderSend(): ";

//---- Open a BUY position and check the trade request result
   if(!OrderSend(request,result) || result.retcode!=TRADE_RETCODE_DONE) Print(ResultRetcodeDescription(result.retcode));
   else if(result.retcode==TRADE_RETCODE_DONE) Print("Buy position for ",Symbol()," is open!");
   else Print("Failed to open a Buy position for ",Symbol(),"!!!");

 The function uses the library ResultRetcodeDescription.mqh (to be copied into the terminal_data_directory\MQL5\Include) the contents of which should be included in the developed code using the #include directive prior to using the function at the global level:

 

#include <ResultRetcodeDescription.mqh>

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/960

GMACD GMACD

Two-Line MACD. This indicator is available by default in a great deal of trading platforms. But it cannot be found in Metatrader 5.

IncMatrix IncMatrix

Class for working with matrices.

GetLotForOpeningPos GetLotForOpeningPos

The function that calculates the lot size depending on the amount of money in the deposit currency being used.

PEMA PEMA

PEMA - Pentuple Exponential Moving Average.