In MT4 is there a way to detect if an EA is already running on another chart ?
Regards
Scoobs.
Regards
Scoobs.
Running a .exe from MQL4 12 replies
How to keep a trading system running while computer is turned-off? 15 replies
stop running 8 replies
what does "running stops" mean? 11 replies
DislikedGo to the chart of the pair and look at the right hand corner. If there is an icon, thats for the EA. As the Window menu choice has a choice called "more windows" if you have lots of charts open. It will give you a listing of the pairs and the name of any EA attached to that chart.Ignored
DislikedI don't think there is a function like IsTesting() or IsDemo().
You could do this with some extra coding by using a Global variable that stores the name of the EA and currency pair. Another EA could check for the existence of the variable.Ignored
DislikedI thought global variable was only seen by an EA instance and not by others ?Ignored
DislikedThere is a confusing conflict in terminology. They are not really variables in the usual sense (declared in the code), these other "global variables" are name-value pairs that can be accessed through a special API, they are accessible by all EAs in the running terminal, are persisted to disk and survive even an unclean shutdown (crash). They are accessed with GlobalVariableSet(), GlobalVariableGet() and a few other functions starting with GlobalVariable*. They should have given them a different name to avoid this confusion.Ignored