명시
I require a simple EA that work as follow
I will first open a trade manually on a chart and once i close that trade manually , the EA must execute a new trade automatically and every time it closes a trade it will continue opening new trade based on the maximum amount of trade it can open in the EA settings. Note: EA opens 1 single trade each time, and the trade must be closed by the Ea before opening the next trade automatically.
The EA should have a martingale option for each series of trade, for example if a trade is a win it will not open a martingale but if the next trade is a loss it will use the martingale option for the next trade. Once it wins a trade it will revert back to opening trade without using the martingale option
The EA must function this way if there is a win it will keep opening the same lot size, if there is a loss the next trade will be based on the multiplier value , Example: lot size 0.01 multiplier 1, if the TRADE wins keep opening the same lot size (0.01) , if second trade loose next trade to open lot size 0.01x2 =0.02 if the value of multiplayer is 2 , if third trade loose next trade open lot size based will be based on multiplayer value in the Ea. Once the EA wins a trade after a loss the next opening trade will revert back to default lot size : 0.01 .
The EA will use the default lot size, and will only start using the multiplier value if there is a loss or a series of losses.
To clarify if trade 1 loose, use multiplier value for next trade , if trade 2 is a loss use multiplayer value for trade 2, if trade 3 is a loss use multiplayer value for trade and so on. Do remember if a trade wins we will not use a multiplier for the next trade.
The maximum level number trade series for martingale should be up 50, for example
martingale multiplier trade 1 : 2 martingale multiplier trade 2 : 4 martingale multiplier trade 3 : 6
The EA will use 2 type of risk management based on true/false:
First one is the standard TP and SL in points, those must be hidden from the broker
Second TP and SL will be based on % of the current capital, for example if i set TP 2% for a 2000$ it will automatically close a trade once its 40$ in profit, once again the TP and SL must be hidden from the broker
We should have a settings that determine the maximum amount of trades the EA will open , for example if i set to 50 the EA will open only a maximum total amount of trade of 50 and will not open anymore trade once that number is reached.
The EA settings:
EA Magic number: Use martingale :True/False martingale multiplier trade 1 : 2 martingale multiplier trade 2 : 4 martingale multiplier trade 3 : 6 martingale multiplier trade 4 : 8 martingale multiplier trade 5 : 10 martingale multiplier trade 6 : 12 martingale multiplier trade 7 : 14 martingale multiplier trade 8 : 16 Use standard TP and SL: True/False Hidden stop loss: Hidden take profit: Maximum amount of trade to open: 50 Lot size: Use TP and SL based on % of account: True/False Hidden TP: % Hidden SL: %