ydrol / Publications
Codes
JSON Parser for MetaTrader 4
This is a Class for the new MQL4 that parses JSON. It requires the Hash.mqh class
HashMap implementation for MetaTrader 4
An implementation of a HashMap in MQL4
Forum
Service Desk exchange ...
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
running cpp.exe standalone on build 616? (was mql.exe?)
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
Bug mql4 build 616 - memory leak reported but object is allocated once and freed once.
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 {
Bug mql4 build 616 - Dynamic Array of objects leaked in Expert
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
[Closed] Bug mql4 build 616 - Static class members in global scope not visible to expert functions
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
old MT4 emulation?
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
Does Pass By Reference work with ex4 libraries ?
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 +=
Timezone best practice?
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
Holiday best practice..
Another gap, best way to determine holidays for Sydney, Tokyo, London, NY,? (Frankfurt, Chicago, HK, Wellington)
MQL4 - Known Issues and Best Practices
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
