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

MQL4 Asesores Expertos Sripts

Tarea técnica

I am looking for an expert advisor 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:

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

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

c.    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.

a.    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

4.    The EA should either use the FIFO (First in First out) or LIFO (Last in First out) principle, when closing positions

5.    I would like to enter several closing instructions; i.e.:

a.    1) If the average profit then…

b.    2) If the average profit then…

c.    3) If the average profit…

d.   

ð  If there needs to be a limit, than I would prefer 3 different closing instructions

6.    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).


Han respondido

1
Desarrollador 1
Evaluación
(52)
Proyectos
133
44%
Arbitraje
14
50% / 29%
Caducado
55
41%
Libre
2
Desarrollador 2
Evaluación
(885)
Proyectos
1410
67%
Arbitraje
123
32% / 41%
Caducado
218
15%
Libre
Ha publicado: 1 ejemplo
3
Desarrollador 3
Evaluación
(84)
Proyectos
149
31%
Arbitraje
32
34% / 41%
Caducado
43
29%
Libre
4
Desarrollador 4
Evaluación
(1235)
Proyectos
2820
80%
Arbitraje
156
22% / 43%
Caducado
487
17%
Libre
5
Desarrollador 5
Evaluación
(206)
Proyectos
333
35%
Arbitraje
66
12% / 58%
Caducado
87
26%
Libre
6
Desarrollador 6
Evaluación
(221)
Proyectos
369
66%
Arbitraje
10
50% / 0%
Caducado
46
12%
Libre
7
Desarrollador 7
Evaluación
(33)
Proyectos
49
12%
Arbitraje
16
0% / 88%
Caducado
10
20%
Libre
8
Desarrollador 8
Evaluación
(629)
Proyectos
849
47%
Arbitraje
29
38% / 14%
Caducado
63
7%
Trabaja
9
Desarrollador 9
Evaluación
(52)
Proyectos
89
25%
Arbitraje
8
75% / 13%
Caducado
44
49%
Trabajando
10
Desarrollador 10
Evaluación
(33)
Proyectos
35
40%
Arbitraje
11
9% / 91%
Caducado
4
11%
Libre
Ha publicado: 4 ejemplos
11
Desarrollador 11
Evaluación
(136)
Proyectos
196
43%
Arbitraje
17
29% / 59%
Caducado
28
14%
Libre
12
Desarrollador 12
Evaluación
(59)
Proyectos
182
55%
Arbitraje
31
45% / 16%
Caducado
103
57%
Libre
13
Desarrollador 13
Evaluación
(195)
Proyectos
395
28%
Arbitraje
155
20% / 52%
Caducado
112
28%
Libre
14
Desarrollador 14
Evaluación
(493)
Proyectos
1022
58%
Arbitraje
30
27% / 23%
Caducado
133
13%
Trabaja
15
Desarrollador 15
Evaluación
(2643)
Proyectos
3359
68%
Arbitraje
77
48% / 14%
Caducado
342
10%
Trabaja
Ha publicado: 1 ejemplo
16
Desarrollador 16
Evaluación
(43)
Proyectos
74
50%
Arbitraje
5
0% / 60%
Caducado
19
26%
Libre
17
Desarrollador 17
Evaluación
(65)
Proyectos
87
39%
Arbitraje
3
0% / 33%
Caducado
29
33%
Libre
18
Desarrollador 18
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
19
Desarrollador 19
Evaluación
(69)
Proyectos
146
34%
Arbitraje
13
8% / 62%
Caducado
26
18%
Libre
Ha publicado: 6 ejemplos
20
Desarrollador 20
Evaluación
(1)
Proyectos
1
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
Solicitudes similares
Knight king 30+ USD
1. The bot must start when the markets start. 2.Then his capacity must be $1000. 3.and his trades must start at 0.04 slot and it must open up most available trades
I need a MetaTrader 5 Expert Advisor (EA) for Forex trading. Account size: $1000 Requirements: 1. The EA should work only on Forex pairs. 2. Automatic Buy and Sell trades. 3. Lot size starting from 0.04. 4. Stop Loss and Take Profit settings. 5. Only one trade at a time. 6. Works on pairs like EURUSD, GBPUSD, USDJPY etc. 7. Risk management suitable for a $1000 account. 8. Easy settings for lot size, SL, TP and risk
I am looking to purchase an existing Multi-Currency MT5 Expert Advisor that is capable of trading multiple currency pairs simultaneously . Please only contact me if you already have a ready-made EA and are willing to sell the full system including the complete source code . ⚠️ Important: If you do not own the EA, do not have the source code, or are planning to ask me build something from scratch, please do
I want to design an EA that can identify key Supports and Resistances. This should be able to work on any timeframe from 1 minute to 1 hour (i.e 1 minute, 5 minutes, 15 minutes and 1 hour time frames.) The EA should be able to determine a Fibonacci retracement from a support and the next resistance point in an uptrend and vice versa (i.e the EA should be able to determine a Fibonacci retracement from a resistance and
Product Requirements Document (PRD) Project Title: Liquidity Sniper Semi-EA (Fibonacci & SMC Based) Platform: MetaTrader 5 (MQL5) Target Asset: XAUUSD (High Volatility) / M5 Timeframe 1. EA Operating Concept (Semi-Automated) Human-Machine Collaboration: The trader manually draws a standard Fibonacci Retracement object on the M15 chart to define the market structure (setting the 1.0 and 0.0 anchor points). EA's Role
Looking for a good EA 30 - 100 USD
Hello guys,i am looking for a good already established ea,that doesnt blow account,only give 5 percent per month with maximum 10 percent drowdown,I need prove,i need to backtest by myself,after that i select the developer
Short Description: I am seeking an experienced MQL4 developer to build a high-frequency Asymmetric Salami Grid EA . This is a sophisticated volatility harvester, not a basic martingale. Key Features to Implement: Virtual Grid Execution: No pending orders; all logic handled in-memory via OnTick . Asymmetric Lot Sizing: Trend-side degression vs. Counter-trend progression . Salami Partial Liquidation: XX% of profits
I would like to convert my MT4 EA to MT5 EA, it should have all the default indicators in it but can remove the custom indicators, it should have the same logic as MT4 EA no chnages at all in the logic
Description: I am looking for an experienced MQL4 developer to create an Expert Advisor (EA) for trading DAX (GER40) based on the confluence of two indicators. I already have both indicators in .ex4/.mq4 format. Key Requirements: Indicators: Use "PivotPoints-All-In-One" and "shved_supply_and_demand" (via iCustom). Entry Logic: Open BUY/SELL only when a Pivot level (PP, S1, R1 etc.) is located inside a "Verified" or
Hello i need an expert advisor for meta trader 5 .Strategy: Trend on H1 using EMA 50. ENTRY on M5 when the price pulls back to EMA 21 or VWAP. BUY after bullish candle confirmation , SELL after bearish candle conformation.STOP LOSS 5- 8 pips ,TAKE PROFIT 10 - 15 pips.include spread filter , no trade on major news and a maximum of 3 trades per day

Información sobre el proyecto

Presupuesto
50 - 150 USD