Forum

Array out of range while looping through positions due to one or more position closed or opened during the loop

Hello, my first question so i may not get this right but i do have a problem i cannot seem to solve. As a part of an EA i gather the information about the positions - and if a position is close or opened while in that information gathering loop i get an " Array out of range "; obviously. Is there a

Unload an EA through code

Greetings, How would I code an EA to shut down (or simply "stop") when a criteria is met? TerminalClose() is not suitable since it shuts down MT - divide by zero is not to nice either.. Blessings, Martin

Agents on Windows Server 2016 Datacenter?

Hello, my agents are not "working" - even after about a week of up-time.. I think this may have to do with the prohibition of running agents on a virtual OS since I am running MetaTrader on Windows Server 2016 - however I am running it non-vitually.. I am wrong? Thank you, live long, and prosper