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
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)
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
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
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
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
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
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
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
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
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
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
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
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