The plan is to create a .dll file for expert advisors that shares information between the server and EA.
The EA will execute dll every hour and send account an account number, holder name, brokerage name special id number (that will be hardcoded in EA) to dll file. Dll will then pass the information to the server via http (eg. [login to view URL] wayne&brokerage=broker&id=1244322)
If we see on our server that the person can use the EA with his account, then server will respond back with data that contains some EA parameters.
If person is not allowed to use the EA, the server can respond eg. -1.
Let’s say we add 4 parameters on the server: stoploss, takeprofit, indicatorPeriod1, indicatorPeriod2.
Those parameters have to be sent to EA somehow through dll.
for example like this:
takeprofit = getParamValueFromDll(“takeprofit”);
stoploss = getParamValueFromDll (“stoploss”);
Parameters can be anything and there must be no limit on number of params.
You can also suggest us the best way to do this.
Hello,
I can build this, from the EA to the Dll and to the website control. Any parameter or setting the EA needs can be configurable. The identification data could probably be pulled from the MT4 application itself(broker, account id, symbol) before being registered and verified with the server. I can give you more technical information if you require so.
Thank you,
Ionut Lalu