工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
we need a system that be able to create licence or time access management and be able set limitation date access to use copy and manage client and trader system.
in this system each client can be connected to multi trader and set their own setting by the following options :
EA CONFIGURATIONS
- Stop EA: If true, EA will stop copy any trade.
- MagicNumber: Magic number for EA.
FILTER COPY TRADE
- Order Type To Copy: Select Order type to copy.
- MagicNumber To Copy: The magic number of the order to copy, multiple magic numbers can be specified separated by commas. (example: 12222,1234687....). An empty value means that all order will be copy.
- Symbol To Copy: The symbol of the order to copy, multiple symbol can be specified separated by commas. (example: EURUSD,USDJPY....). An empty value means that all order will be copy.
- Trade's Comment To Copy: Put trade comment of the order to copy, multiple comment can be specified separated by commas. (example: cap zone recovery ea, Universal...). An empty value means that all order will be copy.
- Minimum Lot To Copy: Set Minimum lot to copy.
- Maximum Lot To Copy: Set Maximum lot to copy.
Maximum Drawdown: Set Maximum equity to lost and set margin level. - CopyOnlyLossPosPoint: Duplicate only those transactions, the loss of which is lower than CopyOnlyLossPosPoint in points.
- CopyOnlyProfPosPoint: Duplicate only those transactions, which is higher than the profit CopyOnlyProfPosPointv points.
- Ignore All Exit Signal: If true, EA will not close his copy trades, if original trade closed.
- Allow Slippage In Points: Maximum price slippage will allow to open trade.
- Ignore Copy Existing Order: If true, When you attach EA on chart, if already have some existing trade, EA will ignore to copy whose trade.
- Reverse Duplicate: If true - Reverse trades. (Example: if original trade is buy, copy trade will be sell).
LOTS SETTING
- Lots Type: Lots type for copy trade.
- LotMultiplier: Lot multiplier. Lot size = Lot Multiplier x provider's lot size.
- Add Lots: Lot size = Add Lots + provider's lot size.
- Fix Lots: Fix Lots.
- percent Lots: percent Lots.
- Lot Multiplier: Value of lots multiplier.
- Add Lots: Value of add lots.
- Fix Lots: Value of fix lots.
- Minimum Lots Size: Minimum lots size.
- Maximum Lots Size: Maximum lots size.
TP/SL MANAGEMENT
- TP_SL Type: Take profit and stop loss type.
- Fellow Original TP/SL: Copy same original trade's TP/SL value.
- Set New TP/SL: Set new TP/SL.
- TakeProfit: New take profit value in points.
- StopLoss: New stop profit value in points .
By the way speed of the coping a position must be lower than 2 sec
There is 3 types of user in this design pattern:
1. Trader
2. Client
3. Organization manager
Organization manager has a management panel that can connect specific trader to specific client [this can be on any platform or language as desired] we define this type as license manager
Note : for third party proxy server design expected to runs on a linux server
Note : there is no limit in any ports or protocol and etc..
When trader or client activates the expert some inputs are defined by user [explained in feature list]
After activation they should be license code generated by client side and that license should be activated by organization manager
Then organization manager have total list of traders and users and relation between traders and users are n:n
It means n trader trades can be copied to more than n clients
Or 3 traders can be connected to 5 clients
So it means there is a group of traders that orders should be copied to a group of clients