Forum

Boring forum topics!

As of my opinion, the quality of topics and questions has decreased, that I never open many of them

CSymbolInfo::CheckMarketWatch bug

In MQL5, despite MQL4, GetLastError() doesn't reset the _LastError variable. If CSymbolInfo ::CheckMarketWatch() is called in a loop providing symbols from an array, and there is an unknown symbol in the array, subsequent calls of the function will fail. The function is called in the Name() method

Graphical objects not shown if their time properties are out of chart.

On a chart which its first bar corresponds to 2019.01.01, graphical objects that any of their time value (OBJPROP_TIME) are before that date, will be hidden. (the date is for example, the situation is the same for all objects which their time value is before the first bar) As chart history are

OnChartEvent sets sparam to wrong object name!

Issue: MQL programs don't get the correct name of a newly created object when OnChartEvent is triggered after the object name is changed via properties dialog shown after creation. Steps to reproduce the issue: Enable "Show object properties after creation" in Tools>Options>Charts Create a new

shutdown by timeout after recompilation when calling ObjectsDeleteAll for other charts in OnDeinit.

int OnInit () { return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { for ( long chart_id= ChartFirst (),i= 0 ; i< 100 && chart_id!=- 1 ; chart_id= ChartNext (chart_id),i++) { ObjectsDeleteAll (chart_id, "prefix" ); //ObjectsDeleteAll causes hang during recompilation

EA is not initialized every other time!

When I first run MT4 or first attach the EA to a chart, the EA is loaded and initialized, but after removing the EA by "Close(x)" button of the standard library CAppDialog, the next time I attach it, it is loaded successfully but not initialized and does nothing until I change the time frame or

Standard Library

I have created subclass "CMyAppDialog" as following, so I can manage instances. //+------------------------------------------------------------------+ //| MyAppDialog.mqh | //| Copyright 2020, MetaQuotes Software Corp. | //|

How to send "Push Notification" to mobile terminal using a stand-alone executable?

MQ offers "Push Notification" service to send messages to mobile terminal from PC terminal and to send some MQL5 community account-related messages. To aggregate terminal-related notifications , I want to send custom notifications from PC executables and WebService scripts to mobile terminal, so I

Type() method of CObject derivatives in Standard library, always return 0 when casting to CObject.

There is no clean way to detect the object type of the CObject derivatives, this is highly needed when iterating through items of a CObject array or a CArrayObj instance. The "Type(void)" public method is defined virtually in the base class CObject. class CObject { public : //--- method of