Forum

MQL5 documentation inconsistency - Type of Execution vs. Fill Policy

@MetaQuotes , there seems to be 2 partially contradictory sources of information with regard to Type of Execution vs. allowable Fill Policy types - the information in both sources differs for IOC and Return fill policies. Which one is the correct one? 1) MQL5 Reference , namely in

SYMBOL_MARGIN_INITIAL = 0.0

Hello MetaQuotes , I have checked SYMBOL_MARGIN_INITIAL value on several symbols and every time it returns 0.0. And if, like documentation states, " SYMBOL_MARGIN_INITIAL Initial margin means the amount in the margin currency required for opening a position with the volume of one lot. It is used for

margin calculation for a symbol that has different leverage than ACCOUNT_LEVERAGE

Hi, I have encountered an interesting issue - my live account with a particular broker has 1:30 leverage (and that's also what ACCOUNT_LEVERAGE property says), but for some instrument types (cryptocurrency-based CFDs, e.g. BTCUSD) the leverage is reduced to 1:2 instead of 1:30. Nevertheless, when I

question to MetaQuotes - ambiguity in MQL5 documentation with regard to order filling policy

Dear MetaQuotes, Could you please clarify what is the proper description of Return filling policy? On the Symbol Properties documentation page in MQL5 Reference one can read: This policy is used only for market orders (Buy and Sell), limit and stop limit orders and only for the symbols with Market

[SURVEY] which order filling types do you use in your EAs on live accounts?

All (FOK, IOC, Return) Only FOK & IOC Only FOK Only IOC Other than mentioned above

example request for testing ORDER_STATE_REJECTED on demo?

Hi everyone, As in the topic - any idea for an example order request (100% repeatable when testing EA logic on demo account - not happening by chance because of e.g. current market conditions) , which could pass the initial validation checks for an order to be sent using OrderSend() function, but

ORDER_STATE_REJECTED - after which ENUM_TRADE_REQUEST_ACTIONS ?

Hi, ORDER_STATE_REJECTED does for sure apply to TRADE_ACTION_DEAL (sending a market order using OrderSend()) and TRADE_ACTION_PENDING (sending a pending order using OrderSend()), but how about the other ENUM_TRADE_REQUEST_ACTIONS values? I assume that it doesn't apply to TRADE_ACTION_SLTP , as it

DEAL_REASON_SO / SL / TP vs. corresponding ENUM_ORDER_TYPE in order history

Hi, Just wondering before I potentially spend time on simulating it from EA code - has someone already checked what kind of ENUM_ORDER_TYPE of historical orders correspond with the occurrence of the following DEAL reasons? I mean, ORDER_TYPE_BUY / ORDER_TYPE_SELL or ORDER_TYPE_BUY_STOP /

Cannot compile any code on latest build -> Compiler loading 'C:\Program Files (x86)\MetaTrader 5\MQL564.dll' library failed (126)

Hi, Since the last update I cannot compile any code - below is what I get straight after launching MetaEditor: 2014.03.16 00:21:18 C++ compiler Microsoft Visual Studio 2005/2008/2010/2012 is not installed in the system 2014.03.16 00:21:18 Compiler invalid version of MQL5 engine - 0 instead of 803

does subscription to Code Base and Articles work for anyone?

Hi, As per the subject - does subscription to Code Base and Articles work for anyone? I have subscribed several days ago and did not receive any email notifications, despite the fact that there were several new indicators added to the Code Base. Could anyone please comment