Upgrade old MT4 EA to new MT4 EA

shanmugapradeep

Active Trader
Dec 18, 2020
119
5
34
39
I have an old EA for MT4. it has functions like


MQL4:
extern bool Example = TRUE;
 
int init() {
 
//remaining code
return (0);
 
}
 
int deinit() {
 
//remaining code
return (0);
 
}
 
int start() {
 
//remaining code
return (0);
}

And if i want to upgrade to latest code, can i just change the name

int init() => void OnInit()
int deinit() => Void OnDeinit
int start() => void OnTick()
extern => input



MQL4:
input bool Example = TRUE;
void OnInit() {
 
//remaining code
return (INIT_SUCCEEDED);
 
}
 
void OnDeinit(const int reason) {
 
//remaining code
return (0);
 
}
 
void OnTick() {
 
//remaining code
return (0);
}



Will this impact my EA functions and performance?
 
Last edited by a moderator: