Practical Application Of Databases For Markets Analysis Working with data has become the main task for modern software - both for standalone and network applications. To solve this problem a specialized software were created. These are Database Management Systems (DBMS), that can structure, systematize and organize data for their computer...
This old article (may 2010, more than 11 years ago !) was one of the first trying to simplify the process of migrating a script/EA from MQL4 to MQL5. Meantime, the popular mql4compat.mqh has been created, and I just published a maintained version of mql4compat on github for people interested : https://github.com/eromawyn/mql4compat
I was having an issue getting fractals to work when converting from MT4 .. this helps by returning 0 instead of EMPTY_VALUE .. hope this is the right place to post thanks
double iFractals4(string symbol,
int tf,
int mode,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iFractals(symbol,timeframe);
if(handle<0)
{
Print("The iFractals object is not created: Error",GetLastError());
return(-1);
}
else
{
double buffer=CopyBufferMQL4(handle,mode-1,shift);
if (buffer!=EMPTY_VALUE) return(CopyBufferMQL4(handle,mode-1,shift));
elsereturn(0);
}
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Note that
#define OBJPROP_TIME1 300
#define OBJPROP_PRICE1 301
#define OBJPROP_TIME2 302
#define OBJPROP_PRICE2 303
#define OBJPROP_TIME3 304
#define OBJPROP_PRICE3 305
Are not showed in this post, you can find them by downloading the file.
Hello,
I believe there is a missing last '}' in the SetIndexStyleMQL4 deffinition.
Thank you for the article, really useful :)
Lucian
bool IsTesting()bool IsTradeAllowed()bool IsVisualMode()minefield
Hello,
This old article (may 2010, more than 11 years ago !) was one of the first trying to simplify the process of migrating a script/EA from MQL4 to MQL5. Meantime, the popular mql4compat.mqh has been created, and I just published a maintained version of mql4compat on github for people interested : https://github.com/eromawyn/mql4compat
Hi I am struggling with these functions (please see below) I keep on getting these errors. Please help resolve it.
A picture is good, but you need an MQL5 code. You need to insert the code using the button
There is incorrect information in section 19. The function
has an analogue in MQL5
Hi Guys , thanks a stack for the great work.
I was having an issue getting fractals to work when converting from MT4 .. this helps by returning 0 instead of EMPTY_VALUE .. hope this is the right place to post thanks