Expert Advisor that closes open positions on the chart if average profit in pips/points on all open positions is achieved

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 3 días
Comentario del Cliente
Yulia did a great Job developing the EA. She delivered the Version on time and was also very communicative. It was a pleasure working with her...
Comentario del Ejecutor
I am very satisfied with the customer, it was a great pleasure working with Philipp!

Tarea técnica

Hallo:


I am looking for a very simple EA or script that manages open positions on my MT4 platform (Broker Details: FXCM; 5 Digits account; 30:1 leverage; Instruments: FX & CFDs) that are manually openend.

Logic: If average profit from all open positions in FX-Pair/CFD-contract is more than X-amount in pips/points, then close x-% of all open positions

Example: 

  1. If the average profit from all open positions in EURUSD is:
    1. more than 10 pips/points, then close 33% of all open positions
    2. more than 20 pips/points, then close 33% of all open positions
    3. more than 30 pips/points, then close 33% of all open positions
  2. If there are for example 5 positions open at the moment the first profit target is reached, the EA should close 2 positions (so round up because it is not possible to close 1,66 (5*33%) positions). If the second profit target is reached (and there were no new positions created in the meantime) the EA should close 1 position ((5-2)*33% = 1)
  3. While the EA is running in the background, the programm always has to monitor the change in open positions. So in case new positions are manually openend or closed the EA has to recalculate its next operations.
    1. Example from above: If the Second profit target was reached and there were new positions entered in the meantime, the EA should start with the initial configuation, so that if the „new“ average profit from all open positions in EURUSD is:

                                                    i.     more than 10 pips/points, then close 33% of all open positions

                                                   ii.     more than 20 pips/points, then close 33% of all open positions

                                                  iii.     more than 30 pips/points, then close 33% of all open positions

  1. The EA should either use the FIFO (First in First out) or LIFO (Last in First out) principle, when closing positions
  2. I would like to enter several closing instructions; i.e.:
    1. 1) If the average profit then…
    2. 2) If the average profit then…
    3. 3) If the average profit…
  • If there needs to be a limit, than I would prefer 3 different closing instructions
  1. Under some circumstances the EA also needs to be able to work with magic numbers, so that it only closes positions that were assigned a certain magic number (on/off function).

 

This is an MVP and I am looking to further enhance the code with you in the future.

 

Please let me know about the approximate costs/time of the project.


Han respondido

1
Desarrollador 1
Evaluación
(173)
Proyectos
201
49%
Arbitraje
18
11% / 44%
Caducado
1
0%
Libre
2
Desarrollador 2
Evaluación
(3)
Proyectos
7
29%
Arbitraje
1
100% / 0%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(3)
Proyectos
6
0%
Arbitraje
3
33% / 33%
Caducado
1
17%
Libre
4
Desarrollador 4
Evaluación
(1235)
Proyectos
2820
80%
Arbitraje
156
22% / 43%
Caducado
488
17%
Libre
5
Desarrollador 5
Evaluación
(2428)
Proyectos
3057
66%
Arbitraje
77
48% / 14%
Caducado
340
11%
Libre
6
Desarrollador 6
Evaluación
(258)
Proyectos
395
28%
Arbitraje
69
19% / 49%
Caducado
120
30%
Libre
7
Desarrollador 7
Evaluación
(15)
Proyectos
24
21%
Arbitraje
1
0% / 100%
Caducado
7
29%
Libre
8
Desarrollador 8
Evaluación
(196)
Proyectos
318
35%
Arbitraje
64
13% / 56%
Caducado
82
26%
Libre
9
Desarrollador 9
Evaluación
(94)
Proyectos
148
59%
Arbitraje
16
38% / 13%
Caducado
25
17%
Libre
10
Desarrollador 10
Evaluación
(13)
Proyectos
36
58%
Arbitraje
3
33% / 33%
Caducado
6
17%
Libre
11
Desarrollador 11
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(1855)
Proyectos
3458
88%
Arbitraje
73
40% / 15%
Caducado
265
8%
Libre
13
Desarrollador 13
Evaluación
(119)
Proyectos
127
41%
Arbitraje
3
33% / 67%
Caducado
0
Libre
Solicitudes similares
GOODAY TO YOU I AM NEED OF A FAST, TALENTED AND HIGH QUALITY CODER TO THIS JOB FOR ME. THE EA TRADE MANAGER WILL HAVE THE FOLLOWING: STOPLOSS & TAKEPROFIT IN PIPS LOT SIZE IN PIPS NUMBER OF TRADES (1-30 TRADES MAXIMUM) PLEASE LOOK AT THE PICTURE ABOVE FOR A GUIDE
evalq({ #نوع دالة التنشيط. الحقيقة <- c( "sig" , #: sigmoid "sin" , #: sine "radbas" , #: radial basis "hardlim" , #: hard-limit "hardlims" , #: symmetric hard-limit "satlins" , #: satlins "tansig" , #: tan -sigmoid "tribas" , #: triangular basis "poslin" , #: positive linear "purelin" ) #: linear السندات
Hello, I want to create an EA with the belowspecification. EA will check conditions based on following input parameters: ● High Price ● Low Price ● Move Value (in Price) ● Gap (in price) After start, EA will mark High and Low prices based on input parameters. EA will start trading when the current price will hit any of the price POSITION at High , Low, Control Buy or Control Sell . EA will open
a gap between 1 pip opposite order open continue once tp hit ea change position and start from 1 everything is manually adjustable tp gap pip and pip all show start from 0.01
If you are knowledgeable in hedging strategy we can chat. I created my simple EA using Fxdreema , so you only need to modify it for me. There are two parts of the EA , 1. Is the execution strategy 2. Is the money management strategy (hedging). I already created number 1 which is the execution of trades , I only need someone who can implement hedging in every orders the EA create. Additional Parameters needed. Trade
Necesito una placa EA que me permita ejecutar órdenes buy limit sell limit buy stop sell stop pero estas órdenes su tp su stop loss si triling stopp su punto de equilibrio debe ser virtual y algunas especificaciones mas solo aplican si tienes experiencia adjunta un ejemplo quiero algo como esto pero mas simple https://www.mql5.com/es/market/product/73489?source=Site +Market+MT5+Search+Rating006%3aEasyGRID+MT5
Hello Im looking for professional trading developer who htf ready made trading with best and working strategy with low risk level with average of 30 to 60 percent profit margin, broker is not problem, any broker is welcomed and any trading pairs are welcomed as well
Black Tokens EA 30+ USD
I want yo create a trading robot which can analyse into the markets and be able to spot what the market targets (Arrays) the robot should make out my strategies and respect them well
I am looking for a developer to create an automated ATM strategy for NinjaTrader. The strategy should operate as follows: Trade Entry : Manual entry based on a bullish or bearish engulfing pattern. Stop Loss : Set at the low of the previous candle for long trades and at the high of the previous candle for short trades, covering the entire candle body and wicks. Take Profit : Set at twice the size of the stop loss
i need to convert this indicator (check the points=are the trades - m5 chart), i need the exact trades as expert on mt4, apply only if you are sure to complete this project 100%, i dont want leave bad feedbacks please, i hope you can understand, if you want have a major consideration, tell me how it works so i can know that you have the knowlodge to do this work

Información sobre el proyecto

Presupuesto
50 - 300 USD
IVA (19%): 9.5 - 57 USD
Total: 59.5 - 357 USD
Para el ejecutor
45 - 270 USD