Forum

MT5 Terminal using config files

Normally you download and install MT5 terminals from a broker. Naturally they are configured for the broker. Names of symbols, other symbol information and such, etc. I noticed that you can specify a lot of things in a config file including symbol lists, logins, servers, passwords, etc. I was

Can't figure out how to initialize a class member which is an object

class A { public : A( string c) {} }; class B { A a; }; / / can't figure out how to get out of this code block either lol // so the problem here is that you can't assign with = when declaring A a; you also can't use a C++ style {} initializer there // I also can't figure out how to do it from a

Global Variables of the Terminal expiry

Is there a way to make Global Variables of the Terminal that don't expire

Quitting an EA safely

I noticed that in some cases when an EA quits, it will remove your EA and consequently all settings associated with the EA are gone (because the EA is gone)... this is very undesirable behaviour for me. I think I noticed this when returning a failure code from OnInit() I want to write some assert

Common Folder

I'm a bit confused about the Common Folder. Can you store EAs, Scripts, Indicators in there and have it appear in all the Terminals? Or is it just for a second "Files" folder that you can access from the Terminal? I assume you need to specifically tell the MQL code to use it instead of the

Converting an array of bytes to a ulong?

How can I convert uchar bytes[8]; to a ulong

How to deal with pointer to strings from DLL function calls results?

I'm trying to use an MQL library that has this in it and gets this from a DLL. I'm pretty sure the result is a pointer to a char * My question is how can I receive this char * and use it in MQL? How can I convert it to a string? I think intptr_t is a long or an int. I'm guessing a long because of 64

Development version of MT4/5?

is there anything like a development version of mt4/5? a clean one without a real broker that can be used as the basis for development without having to worry about things like expiring accounts? or order modification limits per day

Looping all orders that are in the processed of being opened

Hello, I would like to loop all uncompleted orders - meaning: orders that I have opened with OrderSendAsync(), and retrieve the comments. They can be market, stop, limit, etc. orders. By comment I mean what was specified in OrderSendAsync(), not the broker supplied comment. So this means I would

Hide Chart Area Completely?

Hi, is there a way to hide the entire chart area? I turned it black background, no lines etc. But what I want to look at it an indicator which exists in the 1st indicator graph. not the main chart. It is called "On Board" it just shows the totals of the open positions. So stats. You can see what I