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. [url removed, login to view] 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.