Don Baechtel
Don Baechtel
Entity3
Friends 1
Don Baechtel
Added topic Getting _LastError = 4012 unexcpectedly immediate following the return from a Class method.
In my MQL5 EA, I have a class StatusReport that contains a method:    static void   TestReports(). In OnInit() I have a call to    StatusReport::TestReports(); Before the call to  TestReports(), the 
Don Baechtel
Added topic MetaTrader 5 is not showing quotes for XAUUSD
My MetaTrader 5 platform is not showing any prices or chart for symbol XAUUSD . Why? I added the symbol XAYYSD and M15 chart, but nothing is showing
Don Baechtel
Added topic Authorization Failure
What does this mean in Journal? What do I have to do? 2025.11.06 11:29:46.909 Network '96981693': authorization on MetaQuotes-Demo failed (Invalid account)
Don Baechtel
Added topic MT5 Git Commit is greyed out
I have made changes to several MT5 *.mqh files, but on right-click, the Git Commit entry is greyed out. How do I commit my changes
Don Baechtel
Added topic CDealInfo.TypeDescription() does not "Get the deal type as a string". (from documentation)
The string produces by CDealInfo.TypeDescription()  is not a string representation of  ENUM_DEAL_TYPE identifiers. For example, a CDealInfo. DealType = 0 is  DEAL_TYPE_BUY in  ENUM_DEAL_TYPE , but for  CDealInfo
Don Baechtel
Added topic Issues with OnTradeTransaction
CHistoryOrderInfo StopLoss and TakeProfit values are 0.0 at OnTradeTransaction case TRADE_TRANSACTION_HISTORY_ADD when CHistoryOrderInfo TypeDescription = ORDER_TYPE_SELL I am writing a MT5 Expert Adviser (EA) that Buys long positions and maintains
Don Baechtel
Added topic Getting Critical Error with no Debug or Error information
Debugging my EA, I am getting: Journal: 2025.09.03 07:37:44.290 MQL5 debugger Critical error while running expert 'PolishedGoldEA (XAUUSD,M15)'.  Unknown error. The Debug tab shows no Trace data at the error. I searched Forum for Debug Critical
Don Baechtel
Added topic DEAL_EXTERNAL_ID() missing from CDealInfo
The  HistoryDealGetString()  has a  DEAL_EXTERNAL_ID string property for   HistoryDealGetString() , but the  CDealInfo class does not have an equivalent DEAL_EXTERNAL_ID string function. Why not? If the  CDealInfo
Don Baechtel
Added topic Programatically selecting EA to run on Chart
Is there a way to programmatically, or using Settings on MetaQuotes, to have an EA automatically selected and run on a chart? It would be nice if the account could be set up to automatically select a Chart currency, timeframe and an EA to run on the
Don Baechtel
Added topic Setting the Magic Number used for New Trades on the MetaQuotes terminal
Is it possible to set the Magic Number used by the MetaQuotes terminal for manually creating new trades? How can the Magic Number be set for use by the MetaQuotes terminal
Don Baechtel
Added topic With an open Position, history_order.PriceOpen() returns 0.0
In the following script,  history_order.PriceOpen() returns value of 0.0. Why
Don Baechtel
Added topic How to get MQ5 HistorySelect() to retrieves the history of deals and orders for only a specific Magic number?
I have an EA that assigns a different magic number to a particular strategy or setup within the single EA. Is there a way  to get MQ5's HistorySelect()  to retrieves the history of deals and orders for only a specific Magic number
Don Baechtel
Added topic Doing a Git Commit on multiple files
Is there an easier way to do a Git Commit on multiple source files at the same time than to select each file individually and then doing a single file Git Commit? I have multiple source files that I would like to do a Git Commit at the same time as a
Don Baechtel
Added topic Is it possible to execute OrderSend requests with different magic IDs from the same Expert Advisor?
My Expert Advisor (EA) supports multiple virtual trading "agents", each with different trading parameters and lotsizes. The  Expert Advisor ID ( magic  number) is a parameter in the  MqlTradeRequest input structure to
Don Baechtel
Added topic What happens when StringToTime fails to convert a stirng to datetime?
What happens when StringToTime fails to convert a string to datetime ? The MQL5 documentation does not say how an error is indicated
Don Baechtel
Added topic QuickWatch, Display variable value by Hovering ouer var, or add local variables automatically to Watch list
It is VERY difficult to debug MQ% programs without some assist to easily display variable values during the debug process. Is there any QuickWatch, Hover over to display variable values, or automatically add local variables in the Watch window? ANY
Don Baechtel
Added topic MetaQuotes Language Editor if getting a error from Git that Push failed.
On a Git Commit of my mq5 file, the MetaQuotes Language Editor is getting the following error: 2025.08.19 14:19:18.982 Git MQL5: push failed with -11 error, reference was not fast-forwardable What does this error mean? How do I correct it so
Don Baechtel
Added topic Using Bookmarks across *.mq5 qnd *.mqh files
I have split my mq5 code for my EA between one *.mq5 file and many *.mqh file so that I can separate my source code according to topic and so that the source is not in just one humungous file. But it appears that when I use Next Bookmark, that it
Don Baechtel
Added topic Can we submit MQL5 code to source code repository from the MetaQuotes Language Editor?
Can we submit MQL5 code to source code repository, like GitHub, from the MetaQuotes Language Editor? How can this be done? My MT5 terminal does not show an entry for Code Storage in the Navigator? Why? How can I use Code Storage with MT5
Don Baechtel
Added topic MQL5 Default function parameters
Does MQL5 allow default values for function parameters, like C++ does? How can this be implemented
12