This is a Class for the new MQL4 that parses JSON. It requires the Hash.mqh class
An implementation of a HashMap in MQL4
I logged a request (suggestion) that they mention the ExpertRemove function on the program running page. As it might be useful to others. The reply from ServiceDesk ... Support Team 2015.06.18 12:30 Hello, Expert can't be removed from chart from MQL code. Why is it often so painful talking to
I'm not sure what's happened but it looks like mql.exe has been replaced with cpp.exe in build 616 ?? I did have sources outside of the MetaTrader folder, and was running mql.exe to compile, and then copy the ex4 into the data folder. That doesn't seem to work now with cpp. I get... MQL4/MQL5
Raised with ServiceDesk - posted here for visibility (just in case someone is hunting down memory leaks). If there is error in my test case please let me know :) // Singleton Object reported leaked but is only allocated exactly once and deleted exactly once... #property strict class Singleton {
Raised on Service Desk EDIT: Posted here for visibility. // Dynamic Array of objects is leaked. #property strict class MyClass { }; MyClass array[ 2 ]; MyClass single; int OnInit () { return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { } void OnTick () { } Output: 2:15:36
Just in case anyone is playing with Singletons in MQL4++ and failing (like me), I've reported the following at the service desk (Fairly sure it's a compiler bug...) EDIT: Posted here for visibility to other developers . Will update thread when fixed. // This expert demonstrates that static members
Just some random thoughts for a different approach for running old ex4 unchanged on new terminal builds (eg if orignal source code is not available)... Admittedly They might be more pain than biting the bullet and finding compliant Indicators etc... 1. Use Junctions and Symlinks etc to expose the
I have a simple example that doesnt seem to work. A script calls a function that should change the argument value. It works if the function is in the script , but does not work via import? Script Code: #import "libtest.ex4" int refTestLib( int &inout); #import int refTest( int &inout) { inout +=
Hi, what is the best way for managing timezones eg to consistently get iOpen(Symbol(),PERIOD_D1,0) for GMT. I think this is a big design error in the MQL4 history/charting.. sending date information with variable timezones, and no way to query the timezone the broker is using? Is this why people are
Another gap, best way to determine holidays for Sydney, Tokyo, London, NY,? (Frankfurt, Chicago, HK, Wellington)
Any value in doing this? Hopefully the contents of this thread can be distilled down to a series of 'must read links' and published as an Article either here or offsite? If we try to keep the chatter down in this thread (maybe discuss the thread in another thread), stick to facts, and avoid