Hi, I have a problem with margin calculation and would be very happy if someone can help. MT5 build 4885. MetaQuotes Demo Account Netting. Leverage is 1:500. Deposit currency is EUR. If I buy 1 Lot EURUSD all is like I expect: Margin is 200
Hi, I'm wondering about the role of the order type parameter in the function OrderCalcMargin (FOREX mode). Please see the following script: void OnStart () { const double vol = 1.00 ; const double
Hi, I'm working on a netting account. As far as I understand: by reversing an existing position the position will be closed and a new one will be opened with a new id and the contrarian type (buy --> sell or sell --> buy). Am I correct here
Hi - happy New Year. In https://www.mql5.com/en/forum/383008#comment_26181711 I wondered why the strategy tester does not report any memory leaks if occurring in the MQL5 program. Look the following EA where I "forgot" to free
Hi, today I stumbled on a problem with pending orders. Please see the following EA doing the following steps: trading the currency pair USDCHF as soon as the market is open two buy limit pendig orders will be placed: at 1.06800 and 1.06500 #include
Hi, today I stumbled across a very strange (or incorrect?) behaviour of the functions PrintFormat and/or StringFormat . Please see the following script: void OnStart () { double
Hi, I have a commission based forex account (Axiory-Demo). My deposit currency is EUR. Nevertheless in the specification of an arbitrary currency pair (eg GBPCHF) the commission value (for in_deal in this case) is shown in USD, not in my deposit
Hi, after two weeks in holidays I restarted the MetaTrader trading software. But strange things happened: all connections to the broker servers are lost Instead I see a very suspect account which I cannot delete: Any ideas what happened here
Hi, I have an EA which will close all open orders and positions in the OnDeinit function. This works fine if if I change the timeframe of the chart the EA is attached to. But if I remove the EA from the chart the OnDeinit function will be called; but
Hi, could anybody explain the contents of the Metatrader log file, please? Especially the meaning of the two uppercase letters? Example: What is the meaning of 'MM', 'KF' etc.? Thanks Matthias MM 0
Hi everybody, like always and done without any problems in previous versions of MT5 I want to test my (unmodified) EA by the strategy tester . But since I've installed MT5 build 2926 I cannot open any pending orders. I get the error messages
Hello, is there a MQL5 function for changing the volume of a pending order in an hedging account ? Similar like changing SL or TP? Of course I can delete the order and reopen a new one with a different volume. But I want to avoid it if possible (more
Hi alltogether, in https://www.mql5.com/en/forum/350188 there is the question of how to get the maximum number of open positions. In this thread William Roeder writes: " Margin requirements will be the limiting factor, not
Hi, in the symbol specification I find variable swap values slightly changing from time to time. E.g. for the symbol DE30 (Germany 30 Index) at broker xy I found the following swap values for January, February and March 2021: January February March
Hi, now I need your expertise. I have trouble creating a string and outputting it on a file: #property strict #include <Files/FileTxt.mqh> void OnStart () { CFileTxt m_file;
Hi in the MQL5 Reference I cannot find any information about the constructors of classes that define generic collections. For example how do I know the constructors of the class CSortedMap? You can find this info if you generate a compiler
Hi, may be I'm a little bit foggy-brained. I'm stumbling on a simple MQL5 typedef statement. #property strict int OnInit () { typedef uint my_uint; return ( INIT_SUCCEEDED ); } Am' I stupid now? What is wrong with my
Hi, just in this moment I discovered a little error in https://www.mql5.com/en/docs/standardlibrary/tradeclasses/csymbolinfo/csymbolinfoname Name Sets symbol name. bool Name ( string name ) Return Value None. The return value of the