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

MQL4 Experten Skripte

Spezifikation

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


Bewerbungen

1
Entwickler 1
Bewertung
(52)
Projekte
133
44%
Schlichtung
14
50% / 29%
Frist nicht eingehalten
55
41%
Frei
2
Entwickler 2
Bewertung
(879)
Projekte
1392
67%
Schlichtung
117
32% / 42%
Frist nicht eingehalten
215
15%
Frei
3
Entwickler 3
Bewertung
(84)
Projekte
149
31%
Schlichtung
32
34% / 41%
Frist nicht eingehalten
43
29%
Frei
4
Entwickler 4
Bewertung
(1235)
Projekte
2820
80%
Schlichtung
156
22% / 43%
Frist nicht eingehalten
488
17%
Frei
5
Entwickler 5
Bewertung
(196)
Projekte
318
35%
Schlichtung
64
13% / 56%
Frist nicht eingehalten
82
26%
Frei
6
Entwickler 6
Bewertung
(221)
Projekte
369
66%
Schlichtung
10
50% / 0%
Frist nicht eingehalten
46
12%
Frei
7
Entwickler 7
Bewertung
(33)
Projekte
49
12%
Schlichtung
16
0% / 88%
Frist nicht eingehalten
10
20%
Frei
8
Entwickler 8
Bewertung
(559)
Projekte
770
46%
Schlichtung
23
39% / 13%
Frist nicht eingehalten
63
8%
Arbeitet
9
Entwickler 9
Bewertung
(48)
Projekte
80
28%
Schlichtung
8
75% / 13%
Frist nicht eingehalten
41
51%
Frei
10
Entwickler 10
Bewertung
(33)
Projekte
35
40%
Schlichtung
11
9% / 91%
Frist nicht eingehalten
4
11%
Frei
11
Entwickler 11
Bewertung
(135)
Projekte
193
42%
Schlichtung
17
29% / 59%
Frist nicht eingehalten
28
15%
Frei
12
Entwickler 12
Bewertung
(59)
Projekte
182
55%
Schlichtung
31
45% / 16%
Frist nicht eingehalten
103
57%
Frei
13
Entwickler 13
Bewertung
(195)
Projekte
395
28%
Schlichtung
155
20% / 52%
Frist nicht eingehalten
112
28%
Frei
14
Entwickler 14
Bewertung
(491)
Projekte
1017
58%
Schlichtung
29
28% / 24%
Frist nicht eingehalten
132
13%
Frei
15
Entwickler 15
Bewertung
(2434)
Projekte
3065
66%
Schlichtung
77
48% / 14%
Frist nicht eingehalten
340
11%
Arbeitet
16
Entwickler 16
Bewertung
(43)
Projekte
72
49%
Schlichtung
4
0% / 50%
Frist nicht eingehalten
19
26%
Frei
17
Entwickler 17
Bewertung
(65)
Projekte
87
39%
Schlichtung
3
0% / 33%
Frist nicht eingehalten
29
33%
Frei
18
Entwickler 18
Bewertung
(563)
Projekte
932
47%
Schlichtung
302
59% / 25%
Frist nicht eingehalten
124
13%
Überlastet
19
Entwickler 19
Bewertung
(66)
Projekte
143
34%
Schlichtung
10
10% / 60%
Frist nicht eingehalten
26
18%
Frei
20
Entwickler 20
Bewertung
(1)
Projekte
1
0%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
Hi, I have a Compiled JForex strategy (.jfx file) I would like someone to convert it in to readable source code. Please let me know if you can do this task. Thank you
I want to make something automatic which EMA will automatically trade in my account. For this I want to make a simple robot I want to get this made automatically on a simple EMA
I need a professional who have the full knowledge in Ctrader and I want to add new idea for my ctrader https://ctrader.com/algos/indicators/show/3444/ Let me know if this is what you can do and the price to get it done. Thanks
I am looking for a skilled Thinkorswim script developer for a one-time project. Your task will be to combine 8 distinct Thinkorswim studies (I will provide the code for each) into one Lower Study. The final script should display histogram rows for the individual studies with a bubble color scheme of bright green, dark green, gray, dark red, and bright red
I need some who can develop my strategy and hand me over the source code... I will give you the specific area in the market i want to mark out and then set pending orders to execute once price move into the zone

Projektdetails

Budget
50 - 150 USD
MwSt (19%): 9.5 - 28.5 USD
Insgesamt: 59.5 - 178.5 USD
Für die Entwickler
45 - 135 USD