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

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

Görüntülemeler:
4073
Derecelendirme:
(29)
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

This function returns the lot size depending on the amount of money in the deposit currency being used. Input parameters are represented by three variables:

double GetLotForOpeningPos
(
 string symbol,                 // Symbol of the pair for the calculation of the lot size
 ENUM_POSITION_TYPE direction,  // Direction of the trade
 double lot_margin              // The amount of money in the deposit currency being used, for the calculation of the lot size 
 )

The function uses the library GetLotForOpeningPos.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 <GetLotForOpeningPos.mqh>

 

 


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

ResultRetcodeDescription ResultRetcodeDescription

The function that decrypts the code of the trade operation result for the functions OrderSend() and OrderCheck().

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.

PEMA PEMA

PEMA - Pentuple Exponential Moving Average.

QEMA QEMA

QEMA - Quadruple Exponential Moving Average.