거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
라이브러리

GetLotForOpeningPos - MetaTrader 5용 라이브러리

조회수:
4066
평가:
(29)
게시됨:
2012.08.12 16:44
업데이트됨:
2016.11.22 07:32
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

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에서 러시아어로 번역함.
원본 코드: 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.