Hello,
I understand your requirements very well and from the research which I've done on this subject I believe that I can help you with this task, most likely also including liquidating positions and adjusting leverage. However, MT4 Manager is not publicly available so you would have to provide me with access to it as well as demo account for testing purposes.
I'm programming since 2006, mostly in C#/.NET, but I'm also interested in FX trading so I know MT4 and MQL 4 quite well, including uncommon projects such as connecting EA with C# base application.
I will work on your task during the weekend, so if everything goes well you can expect delivery on Monday/Tuesday. In case you have any questions fell free to contact me.
Kind Regards,
Michal Opoka