hi , I am writing an indicator in MQL5, but whatever I write as string name ObejectDelete returns true ! even on an empty chart with no objects!
int ObjCount = ObjectsTotal(ChartID(),/*0=main subwindow*/0,/*all objectTypes*/-1);
bool deleteResult=ObjectDelete(ChartID(),"non existing object");
Print(__LINE__,"-",deleteResult," | ObjCount=",ObjCount);
here is the result :
2016.12.11 13:46:38.385 Far-Test (EURUSD,H1) 37-true | ObjCount=0
shouldn’t it return false ?