Download MetaTrader 5

is it possible to convert EX4 file to MQ4 file.

To add comments, please log in or register
Have you developed an application? Publish it in Code Base!
Kiran Chandekar
1472
Kiran Chandekar 2014.04.30 18:16 
is it possible to convert EX4 file to MQ4 file.
Alain Verleyen
Moderator
30754
Alain Verleyen 2014.04.30 18:58  
kchandek:
is it possible to convert EX4 file to MQ4 file.
Not at all. And anyway it's not legal.
Eric Venturi-Bloxs
57043
Eric Venturi-Bloxs 2014.05.01 08:00  
angevoyageur:
Not at all. And anyway it's not legal.
Well said ...
Kiran Chandekar
1472
Kiran Chandekar 2014.05.01 15:30  
FerruFx:
Well said ...

I have below code in my EA

 

    if (lots*margin > AccountFreeMargin()) 

lots = AccountFreeMargin() / margin;

 

If I put Account number in the brackets i.e. ()  & compile EA which make EX4 file then will I be able to restrict my EA to specific account number only. 

Eric Venturi-Bloxs
57043
Eric Venturi-Bloxs 2014.05.02 04:31  
kchandek:

I have below code in my EA

 

lots = AccountFreeMargin() / margin;

 

If I put Account number in the brackets i.e. ()  & compile EA which make EX4 file then will I be able to restrict my EA to specific account number only. 

So in other words, you want to protect an EA that you have illegally decompiled ?
Alain Verleyen
Moderator
30754
Alain Verleyen 2014.05.02 10:11  
FerruFx:
So in other words, you want to protect an EA that you have illegally decompiled ?
I don't think so. He wants to protect his EA and ask if it's possible to get a mq4 file from an ex4. If it was possible it's not worth to add protection in the code.
Eric Venturi-Bloxs
57043
Eric Venturi-Bloxs 2014.05.02 11:54  
angevoyageur:
I don't think so. He wants to protect his EA and ask if it's possible to get a mq4 file from an ex4. If it was possible it's not worth to add protection in the code.
Yes you are right ... That was my point ...
Rogerio Figurelli
Moderator
39697
Rogerio Figurelli 2014.05.03 06:01  

Regarding the solution, don't forget that protect code using account number must work with demo accounts too, if you will enable your users use it.

In this sense, you have to enable demo accounts and/or check if you are really using a real account.

Young Ho Seo
15900
Young Ho Seo 2014.05.03 11:05  
figurelli:

Regarding the solution, don't forget that protect code using account number must work with demo accounts too, if you will enable your users use it.

In this sense, you have to enable demo accounts and/or check if you are really using a real account.

Nice point. It would be great if you could share a couple of sample code for doing that job or any link we can learn that. 

Kind regards. 
Rogerio Figurelli
Moderator
39697
Rogerio Figurelli 2014.05.03 15:42  
FinanceEngineer:
Nice point. It would be great if you could share a couple of sample code for doing that job or any link we can learn that. 

Kind regards. 

To be honest, I don't think that Account Number limitation is a good idea for customers.

Anyway, maybe a good start to do this is study more Account Properties (link below).

https://www.mql5.com/en/docs/constants/environment_state/accountinformation 

For instance, ENUM_ACCOUNT_TRADE_MODE and ACCOUNT_TRADE_MODE_REAL can help you identify and protect just real accounts.

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Account Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Account Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Account Properties - Documentation on MQL5
To add comments, please log in or register