Even then it could not be safe. I once got a heads up from a computer dude that reckoned Metatrader can probably see the EA's if they want to. There's a lot of two ways comm's and we wouldn't know if it's copying and sending the EA's back to some server.
I don't want to start rumors, but it for total security you have to write and control all the software running on the computer you're using.
Personally I think MT is ok for learning and experimenting, but C++ and API's are the way to go if one ever gets beyond a few thousand bucks in the account.
I've heard about custom MT4's that allow EA peeking, I think it was FXPro (dont quote me on this) that modified their MT4 to do that. Most Market Maker brokers wont go to the trouble since 95% of people lose and if you're not scalping they can hedge the risk anyway. (and if you're scalping they'll kick you off) - They way the MM's get to see code is by holding contests that why I never submit. They're ran by brokers and you submit cleanly written source code!!
What I would do if I was in the EA selling business is write an EA that calculates the trade levels and directions on server A, and write the information to server B.
Then release a small EA to the clients to go and read those levels on server B. It should be possible. Myfxbook has an Ea that sends information to a server, so if it can send it must be able to fetch.
There are several possible layers of protection, I will sort it from the worst to the best:
1. Compiled EA - useless, the EA can be easily decomplied with a 3rd party service for a minimal fee.
2. EA cobined with a dll - this is a better solution since all of the EA's logic is in the dll which is much harder to decompile, although not impossible (Take for example Microsoft or Apple who can't prevent their operating systems protections' from being cracked).
3. Remote hosting of the logic as Elkart suggested - this is one of the better protections possible, since there is nothing to decompile - the EA only receives buy/sell orders from a remote machine. This comes with a price though - latency. For scalping systems this would be a huge disatvantage since it's all about perfect timing.
4. Standalone execution - this would be the best solution, however it will cost accordingly. For each managed account you would need local access to the platform - either by having a MetaTrader open for each client on your own private machine, or access to the API of the broker used. This method of course also has some latency, but it's reduced to the minimum since lower latency can be achieved only if your machine is located in the same datacenter of the broker's.
Since the 4th soultion is not viable for most of the average EA creators, I would recommend using the 3rd solution if the EA is not sensitive to latency.
AVERTISSEMENT SUR LE RISQUE ÉLEVÉ : Le trading de devises comporte un niveau de risque élevé qui peut ne pas convenir à tous les investisseurs.
Leffet de levier crée un risque supplémentaire et une exposition aux pertes. Avant de décider de négocier des devises, examinez attentivement vos objectifs dinvestissement, votre niveau dexpérience et votre tolérance au risque.
Vous pourriez perdre une partie ou la totalité de votre investissement initial. Ninvestissez pas largent que vous ne pouvez pas vous permettre de perdre. Renseignez-vous sur les risques associés au trading de devises et demandez conseil à un conseiller financier ou fiscal indépendant si vous avez des questions.
Toutes les données et informations sont fournies "en létat", uniquement à titre dinformation, et ne sont pas destinées à des fins de trading ou de recommandation.
Les performances passées ne sont pas indicatives des résultats futurs.