The concept of a click EA

[Deleted]  

Good day,


I believe many people have wondered around the idea of a one click EA, I for one was able to compile my EA into an install package but would mak it a lot better if I was able to geet this codee right. Please look at the concept of what I'm trying to do, I believe this can't be done in this way but if there's an alternative, i wwould be glad to have it.


I want to set these variable to be tru so that it automatically starts trading as soon as the EA is droped on the chart.

     TerminalInfoInteger(TERMINAL_DLLS_ALLOWED);
     TerminalInfoInteger(TERMINAL_TRADE_ALLOWED);
     MQLInfoInteger(MQL_DLLS_ALLOWED);
     MQLInfoInteger(MQL_TRADE_ALLOWED);


Innitially, I attempted

     TerminalInfoInteger(TERMINAL_DLLS_ALLOWED,true);
     TerminalInfoInteger(TERMINAL_TRADE_ALLOWED,true);
     MQLInfoInteger(MQL_DLLS_ALLOWED,true);
     MQLInfoInteger(MQL_TRADE_ALLOWED,true);


but it came back with an error, so then I tried

#define     TerminalInfoInteger(TERMINAL_DLLS_ALLOWED,true);
#define     TerminalInfoInteger(TERMINAL_TRADE_ALLOWED,true);
#define     MQLInfoInteger(MQL_DLLS_ALLOWED,true);
#define     MQLInfoInteger(MQL_TRADE_ALLOWED,true);


It still did not work. This too did not work

int     TERMINAL_DLLS_ALLOWED           =true;
int     TERMINAL_TRADE_ALLOWED          =true;
int     MQL_DLLS_ALLOWED                =true;
int     MQL_TRADE_ALLOWED               =true;


The idea behind it is sound but I can't seem to impliment it. Anythoughts on this?

Fernando Carreiro  
Mezzoforte Privilege Khoza: I believe many people have wondered around the idea of a one click EA, I for one was able to compile my EA into an install package but would mak it a lot better if I was able to geet this codee right. Please look at the concept of what I'm trying to do, I believe this can't be done in this way but if there's an alternative, i wwould be glad to have it. I want to set these variable to be tru so that it automatically starts trading as soon as the EA is droped on the chart. The idea behind it is sound but I can't seem to impliment it. Anythoughts on this?

Can't be done under normal circumstances. It is done that way on purpose to prevent "one-click" EA. It is security measure, where the user has to expressly give permission for the EA to trade or to use a DLL.

[Deleted]  
Fernando Carreiro #:

Can't be done under normal circumstances. It is done that way on purpose to prevent "one-click" EA. It is security measure, where the user has to expressly give permission for the EA to trade or to use a DLL.

Thanks. It would be a great touch but I understand. Thanks again. 
Reason: