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
類似した注文
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

プロジェクト情報

予算
50 - 150 USD
VAT(付加価値税) (19%): 9.5 - 28.5 USD
合計: 59.5 - 178.5 USD
開発者用
45 - 135 USD