Presenting the book "MQL5 Programming for Traders" - page 3

 
Stanislav Korotky #:

What's your problem exactly? The post you quoted is about unimportant warning (due to changes in MQL5) which does not affect EA work - both tester and online runs should be ok.

In my opinion all warnings should be eliminated. At least it is confusing. 
 
Dr Matthias Hammelsbeck #:
In my opinion all warnings should be eliminated. At least it is confusing. 

There were no warnings at the time of writing. It's an artifact of subsequent change in MQL5. You can comment out the line with Print("Unresolved int value as enum: ", i, " for ", TYPENAME(TradeState)) in TradeBaseMonitor.mqh.

 

Reffering to https://www.mql5.com/en/book/intro

"Based on the MetaTrader 5 installation technique, the path to the working folder can be different (particularly, with the limited user rights in Windows, in a normal mode or portable). For example, it can be:

C:/Program Files/MetaTrader 5/

or

C:/Users/<username>/AppData/Roaming/MetaQuotes/Terminal/<instance_id>

"

In Windows, I noticed that MetaTrader 5 exists in both of the above locations. Why doesn't it exist in only one location ?
 
R0bot #:

Reffering to https://www.mql5.com/en/book/intro

"Based on the MetaTrader 5 installation technique, the path to the working folder can be different (particularly, with the limited user rights in Windows, in a normal mode or portable). For example, it can be:

C:/Program Files/MetaTrader 5/

or

C:/Users/<username>/AppData/Roaming/MetaQuotes/Terminal/<instance_id>

"

In Windows, I noticed that MetaTrader 5 exists in both of the above locations. Why doesn't it exist in only one location ?

You can have many installations of MT5 on a single PC, each one can run in a different mode. Besides, if I remember correctly, locally installed MT5 instance (with admin rights, 1-st case) will generate and use roaming folder with lower rights (2-nd case) if you access this MT5 from RDP session. Probably other system settings (switching on/off UAC, etc) may interfere.

 
Stanislav Korotky #:

Referring to "You can have many installations of MT5 on a single PC, each one can run in a different mode":

1. I have asked the Fusion Markets broker about:

   "What's the difference of MT5 install file from Fusion Markets website and from official MetaTrader 5 website (https://www.metatrader5.com) ?

    I have installed MT5 for Windows from https://www.metatrader5.com"

2. The response received from the Fusion Markets broker:

   "The primary difference between the MetaTrader 5 (MT5) file from the Fusion Markets website and the one from the official MetaTrader 5 website is the pre-configuration for brokerage services. 

    The MT5 file from Fusion Markets is pre-configured with Fusion Markets' server settings. 

    This means that once you install the platform, it will automatically connect to Fusion Markets' trading servers without the need for manual configuration. 

    Using the version from Fusion Markets is usually more convenient if you intend to trade with us, as it simplifies the setup process and ensures compatibility with our trading services. 

    We would highly recommend (to be able to log into demo account created at Fusion Markets) uninstalling the current version and re-installing the application from our website."

3. I am confused: You told me that "You can have many installations of MT5 on a single PC, each one can run in a different mode", but Fusion Markets broker told me that "recommend uninstalling the current version (installed from official MetaTrader 5 website) and redownload / re-installing the application from our website (from Fusion Markets broker website)".

    After all, how is it ?

    Why Fusion Markets broker told me to uninstall current MT5 and not told me that I can directly install a second MT5 ?

4. Also, is it okay to install MT5 from Fusion Markets broker website ?

    For me, it seems strange to install an application, such as MT5, from another website and not from the official website of MetaTrader 5.

 
R0bot #:


You should be able to connect to the broker servers without problems using credentials they provide (server name) on any MT5 instance you have. The only possible flaw is that MQ sometimes change protocols and dataformats which makes new terminals incompatible with older servers (which are normally get updated on broker servers with some lag). But this is a rare situation.

I can't tell what your broker means, but probably they think that you can download MT5 beta version or unstable release from mql5.com, whereas the broker provides a version which they have tested in their environment.

During installation you can choose installation folder, hence you can install many MT5's from different sources if you like. But actually, having the very 1-st instance, you can manually copy the MT5 folder under another name and get another instance - just don't forget to change server/broker name accordingly. You can run many MT5s simultaneously, all of them should be in different folders.

PS. Probably they mean (according to their wording) that demo accounts created at Fusion Markets are only accessible from their custom MT5. But I'm not aware of such a feature. Please ask MQ.

 

Reffering to https://www.mql5.com/en/book/basis/builtin_types/integer_numbers

"MQL5 allows choosing integer types sized 1-4 bytes using keywords char, short, int, and long, respectively."

The text should be "MQL5 allows choosing integer types sized 1-8 bytes using keywords char, short, int, and long, respectively." ?

The long type size is 8 bytes, according to the table at https://www.mql5.com/en/book/basis/builtin_types.

 
R0bot #:

Reffering to https://www.mql5.com/en/book/basis/builtin_types/integer_numbers

"MQL5 allows choosing integer types sized 1-4 bytes using keywords char, short, int, and long, respectively."

The text should be "MQL5 allows choosing integer types sized 1-8 bytes using keywords char, short, int, and long, respectively." ?

The long type size is 8 bytes, according to the table at https://www.mql5.com/en/book/basis/builtin_types.

Yes, this is a typo. I hope MQ staff will fix it.

 

Reffering to https://www.mql5.com/en/book/basis/builtin_types/characters

Why in debugging (attached picture), next to the value (-93) of variable b, does the pound symbol appear ?

Files:
Pound_debug.jpg  13 kb
 
R0bot #:

Reffering to https://www.mql5.com/en/book/basis/builtin_types/characters

Why in debugging (attached picture), next to the value (-93) of variable b, does the pound symbol appear ?

I think, this is because meaningful character codes are positive, and negative values in char are translated into positive part by adding char range, that is 256 (-93+256=163).