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

Техническое задание

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


Откликнулись

1
Разработчик 1
Оценка
(52)
Проекты
133
44%
Арбитраж
14
50% / 29%
Просрочено
55
41%
Свободен
2
Разработчик 2
Оценка
(879)
Проекты
1392
67%
Арбитраж
117
32% / 42%
Просрочено
215
15%
Свободен
3
Разработчик 3
Оценка
(84)
Проекты
149
31%
Арбитраж
32
34% / 41%
Просрочено
43
29%
Свободен
4
Разработчик 4
Оценка
(1235)
Проекты
2820
80%
Арбитраж
156
22% / 43%
Просрочено
488
17%
Свободен
5
Разработчик 5
Оценка
(196)
Проекты
318
35%
Арбитраж
64
13% / 56%
Просрочено
82
26%
Свободен
6
Разработчик 6
Оценка
(221)
Проекты
369
66%
Арбитраж
10
50% / 0%
Просрочено
46
12%
Свободен
7
Разработчик 7
Оценка
(33)
Проекты
49
12%
Арбитраж
16
0% / 88%
Просрочено
10
20%
Свободен
8
Разработчик 8
Оценка
(559)
Проекты
770
46%
Арбитраж
23
39% / 13%
Просрочено
63
8%
Работает
9
Разработчик 9
Оценка
(48)
Проекты
80
28%
Арбитраж
8
75% / 13%
Просрочено
41
51%
Свободен
10
Разработчик 10
Оценка
(33)
Проекты
35
40%
Арбитраж
11
9% / 91%
Просрочено
4
11%
Свободен
11
Разработчик 11
Оценка
(135)
Проекты
193
42%
Арбитраж
17
29% / 59%
Просрочено
28
15%
Свободен
12
Разработчик 12
Оценка
(59)
Проекты
182
55%
Арбитраж
31
45% / 16%
Просрочено
103
57%
Свободен
13
Разработчик 13
Оценка
(195)
Проекты
395
28%
Арбитраж
155
20% / 52%
Просрочено
112
28%
Свободен
14
Разработчик 14
Оценка
(491)
Проекты
1017
58%
Арбитраж
29
28% / 24%
Просрочено
132
13%
Свободен
15
Разработчик 15
Оценка
(2434)
Проекты
3065
66%
Арбитраж
77
48% / 14%
Просрочено
340
11%
Работает
16
Разработчик 16
Оценка
(43)
Проекты
72
49%
Арбитраж
4
0% / 50%
Просрочено
19
26%
Свободен
17
Разработчик 17
Оценка
(65)
Проекты
87
39%
Арбитраж
3
0% / 33%
Просрочено
29
33%
Свободен
18
Разработчик 18
Оценка
(563)
Проекты
932
47%
Арбитраж
302
59% / 25%
Просрочено
124
13%
Занят
19
Разработчик 19
Оценка
(66)
Проекты
143
34%
Арбитраж
10
10% / 60%
Просрочено
26
18%
Свободен
20
Разработчик 20
Оценка
(1)
Проекты
1
0%
Арбитраж
1
0% / 100%
Просрочено
0
Свободен
Похожие заказы
Description of the ScriptThis script is designed for MetaTrader 4 (MT4) to execute a Buy order based on a re-entry strategy using the BBMA (Bollinger Bands Moving Average) approach. The main timeframe used is H1 (1-hour), and the script employs the Classic Bullish Engulfing pattern as a validation criterion before placing a Buy order.Key Components of the Script:Input Parameters:Lots: Defines the lot size for the
I need an expert to help me with adding more features to my existing mt4 EA I think the addition I want added to this EA is fairly simple--but I don't really understand how programming works, Contact me for a long term work, This is not the only project, I will explain the features in the inbox, Let me know if you can do it
Expert Advisor para operar no par XAU/USD no gráfico de 30 minutos, com as seguintes especificações: Indicadores : Utilize uma mídia móvel simples (SMA) de 72 períodos. Utilize o indicador Money Flow Index (MFI) com um período de 7. Inclui um indicador para marcar suporte e resistência nas últimas duas semanas no gráfico H4. Critérios de Operação : Venda : Execute uma ordem de venda se o preço se poupar no mínimo 800
EA Robot 30 - 500 USD
I Shawn Mametsa wants to creat a robot that will help a lot of people to make money through trading and become successful through trading I want to help those who want to trade but don’t know how to analyse the market
This is a simple Martingale based EA with RSI indicator used as buy/sell order conditions Mandatory Inputs: extern double TakeProfit = 120.0; // self explanatory for first order, for martingale orders it will adjust TP of all orders of the same type (buy / sell) to one, for example if an order opened at 100, 2nd opens at 105, the both of their tps will be at the same point, if an order is manually closed, it will
I need an expert advisor based on supply and demand zones. The zones should be identified automatically with tweakable parameters, but there should be also an option to input my own zones. I need the EA to have capability of opening market positions as well as pending orders. Other requirements: Martingale News filter Time filter Set expiry to zones, to prevent opening positions when price enters old zones
I have an indicator with two lines | want an EA the buy when the fast line crosses the slow line from below one important thing> the slow line must at least a specific distance below the last cross through the fast line from above take profit is between 1 or 3 times more than stoploss the stop loss is the last low the sell order is the opposite for buy Thanks
want to create a EA 1- break out candle ( T F customized) and customized SL TP 2- breakout fib zone 3- supertrend and candle stick patterns 4 Heikein Ashi and Renko charts
**Project Title:** Development of a Complex High-Performance EA for Step Index **Project Overview:** I need an advanced Expert Advisor (EA) for trading the Step Index on MetaTrader 5. The EA should use multiple indicators and advanced risk management techniques to enhance profitability and manage risks effectively. **Trading Strategy Details:** Indicators: - 50-period EMA - 200-period EMA - RSI with 14 periods - MACD
My needs I need powerful robots to avoid losses as well as a business strategy or whether it is buying or selling in the market or any strategy that exists in the business sector

Информация о проекте

Бюджет
50 - 150 USD
VAT (19%): 9.5 - 28.5 USD
Итого: 59.5 - 178.5 USD
Исполнителю
45 - 135 USD