Dr Matthias Hammelsbeck
Dr Matthias Hammelsbeck
passion at The whole world
It is much more important to feel strong than to be strong
Dr Matthias Hammelsbeck
Published code Reporting Memory Leaks in Strategy Tester
Monitoring of memory leaks in the strategy tester
Dr Matthias Hammelsbeck
Added topic Proposition for reporting MEMORY LEAKS in strategy tester
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
Dr Matthias Hammelsbeck
Added topic Buy Limit Pending order is not triggered
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
Dr Matthias Hammelsbeck
Added topic Strange (incorrect?) behaviour of PrintFormat / StringFormat. Need help
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
Dr Matthias Hammelsbeck
Added topic Commission is not displayed in deposit currency
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
Dr Matthias Hammelsbeck
Added topic Suspicious account
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
Dr Matthias Hammelsbeck
Added topic Cannot close open orders and positions at EA termination
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
Dr Matthias Hammelsbeck
Added topic Explanation of Metatrader log file
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
Dr Matthias Hammelsbeck
Added topic Please help - "Market closed" in Strategy Tester
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
richiewebb
richiewebb 2021.06.04
Where do you report insider trading?
Dr Matthias Hammelsbeck
Added topic Modifying the volume of a pending order
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
Dr Matthias Hammelsbeck
Added topic How to get the maximum number of open positions in MT5
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
Dr Matthias Hammelsbeck
Added topic Swap in Strategy Tester
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
Dr Matthias Hammelsbeck
Added topic Please help - Problem in String Creation
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;
Dr Matthias Hammelsbeck
Added topic Generic Data Collections - missing info about Constructors
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
Dr Matthias Hammelsbeck
Added topic typedef Statement - Problems
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
Dr Matthias Hammelsbeck
Added topic MQL5 Documentation error
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
Dr Matthias Hammelsbeck
Added topic MQL5 Reference: missing POSITION_COMMISSION
Hi during these corona flawed days/weeks/months/years/decades  I have a lot of time: I discovered a little problem in the MQL5 documentation. In   MQL5 Reference / List of MQL5 Constants there is an entry POSITION_COMMISSION Commission
Dr Matthias Hammelsbeck
Added topic Margin Calculation Formula Forex Mode
Hi alltogether, it is Corona time. So I have a lot of opportunity to develop new promising automatic trading strategies ... In the middle of these activities I found a little discrepancy in the description of the margin calculation formula (forex
Dr Matthias Hammelsbeck
Added topic Documentation Error?
Hi, may be an error in MQL5 Reference/Market Info/SymbolInfoMarginRate: initial_margin_rate should be [out] at the beginning of the next line.  Not [in]
Dr Matthias Hammelsbeck
Added topic Triggering of SELL STOP Order during widened spread
Hi, I have an EA which places a SELL STOP order together with a SL at a distance of x points  above the trigger price. Now the bid price of the traded symbol (e.g. USDJPY) reaches the trigger price of the pending order (from above) but the
123