Hi, newbie question: If I have an EA attached and running on chart A, then I tweaked the code, recompiled and attach it on chart B, will it affect EA on chart A?
- How to display and indicator on the chart window?
- Problems running optimization tests on the Cloud (MT5)
- recompile ea again and again
https://docs.mql4.com/check/UninitializeReason
It'll probably uninit and reinit [case REASON_RECOMPILE]. As for affecting your trading logic and variables, it depends on how the Expert is coded.
Definitely unInit, EA reloaded (meaning all global and static variables have been reset), init called. Only in the tester does compiling not reload the EA.
But EA running on different charts have completely separate scope and global variables right?
gt21:
Hi, newbie question: If I have an EA attached and running on chart A, then I tweaked the code, recompiled and attach it on chart B, will it affect EA on chart A?
Hi, newbie question: If I have an EA attached and running on chart A, then I tweaked the code, recompiled and attach it on chart B, will it affect EA on chart A?
Where was the mq4 file when you recompiled it ? I keep all my source code in a series of directories unrelated to any of my MT4 installations . . . I can tweak and recompile till I'm blue in thee face and this has no effect on any of my terminals . . .
gt21:
But EA running on different charts have completely separate scope and global variables right?
Yes.
But EA running on different charts have completely separate scope and global variables right?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register