Don Baechtel
Don Baechtel
Topics10Comments7Reader7
Articles0CodeBase0Charts0
Entity3
Friends 1
Don Baechtel
Added topic Get Critical Error Unknown while debugging XmlParserScript.mq5 from XmlParser library
I am getting a Unknown Critical error on line 14 while single stepping through XmlParserScript.mq5 in MetaEditor.  why? How to fix? string res=xmldoc.SetXml(xml);
Don Baechtel
Added topic CharArrayToString(buffer, 0, -1, 1200); does not copy unicoded std::wstring myString from C++ DLL into MT5 string properly
The uchar buffer array contents in MT5 is shown below: Message from DLL (len=19) in C++ reads: std::wstring myString = L "Hello from C++ DLL!\0\0" ; The uchar array contents is correct for the Unicoded text with '0' as part of each UTF-16 character
Don Baechtel
Added topic What is wrong with Toggle Breakpoint and F9 in MetaEditor? Bugs?
Many times when I select a line of code in Meta Editor and then hit F9 or Toggle Breakpoint, it will set a breakpoint om the line above or below the selected line. Why? Also when I select a line with a breakpoint on it, F9 will not reset the
Don Baechtel
Added topic Call Stack
While debugging in MetaEditor, is there a way to view the current Call Stack at a breakpoint
Don Baechtel
Added topic NormalizeDouble not working?
How come the code line below does not Normalize iLow to the 2nd decimal place?       this.low   = NormalizeDouble(iLow(Symbol(),Period(),shift),2); int shift = 1; I can't figure it out
Don Baechtel
Don Baechtel 2025.06.26
How do I round a double value to 2 decimal places, no excuses?
Don Baechtel
Added topic MQL% FileWriteStruct generates no output to file
My EA has the following function: int GetHistories( ENUM_TIMEFRAMES timeframe) {    MqlRates Rates[];    int copied = 0 ;    ResetLastError ();    string symbx= Symbol ();    for ( int x= 0 ;
Don Baechtel
Added topic Change Account currency from EUR to USD?
How do I Change the Account currency from EUR to USD
Don Baechtel
Added topic How to determine why an order closed In MQL 4?
There are several reasons why an order was closed:         Unknown = -1,         Expiration = 0,         Market = 1,         TakeProfit = 2,        
Don Baechtel
Added topic How to detect why an order closed in MQL5?
There are several reasons why an order may have Closed:   Unknown = -1,         Expiration = 0,         Market = 1,         TakeProfit = 2,         StopLoss = 3
Don Baechtel
Added topic DLLSample generates "Cannot load 'DLLSample.dll' [126]"
When the DLLSampleTester.mq4 is run, it gets "Cannot load 'DLLSample.dll' [126]". Why? How to fix this? It is NOT good when the samples will not run
Don Baechtel
Registered at MQL5.community