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

MQL4 Experts

Job finished

Execution time 3 days
Feedback from customer
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...
Feedback from employee
I am very satisfied with the customer, it was a great pleasure working with Philipp!

Specification

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.


Responded

1
Developer 1
Rating
(173)
Projects
201
49%
Arbitration
18
11% / 44%
Overdue
1
0%
Free
2
Developer 2
Rating
(3)
Projects
7
29%
Arbitration
1
100% / 0%
Overdue
0
Free
3
Developer 3
Rating
(3)
Projects
6
0%
Arbitration
3
33% / 33%
Overdue
1
17%
Free
4
Developer 4
Rating
(1235)
Projects
2820
80%
Arbitration
156
22% / 43%
Overdue
488
17%
Free
5
Developer 5
Rating
(2428)
Projects
3057
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Free
6
Developer 6
Rating
(258)
Projects
395
28%
Arbitration
69
19% / 49%
Overdue
120
30%
Free
7
Developer 7
Rating
(15)
Projects
24
21%
Arbitration
1
0% / 100%
Overdue
7
29%
Free
8
Developer 8
Rating
(196)
Projects
318
35%
Arbitration
64
13% / 56%
Overdue
82
26%
Free
9
Developer 9
Rating
(94)
Projects
148
59%
Arbitration
16
38% / 13%
Overdue
25
17%
Free
10
Developer 10
Rating
(13)
Projects
36
58%
Arbitration
3
33% / 33%
Overdue
6
17%
Free
11
Developer 11
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(1855)
Projects
3458
88%
Arbitration
73
40% / 15%
Overdue
265
8%
Free
13
Developer 13
Rating
(119)
Projects
127
41%
Arbitration
3
33% / 67%
Overdue
0
Free
Similar orders
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
Dear Colleagues, I am currently seeking the assistance of an experienced professional who can help me integrate my TradingView alerts with Interactive Brokers in order to execute live trades automatically. If you have the expertise in setting up such an automation or know someone who does, I would greatly appreciate your support. Please feel free to reach out to me if you can assist with this project or if you need
Options I would need, - Enter the trade immediately after the trading signal or enter the trade after the closing candle. - On & Off Buy/Sell Trading - Close the position after a reversal signal or not. - Maximum of 2 trades at the same time. - TP & SL in points or Trailing stop - Fixed lots or % risk based on balance - Long Position On/Off Function: The long position strategy is applied only when the long position

Project information

Budget
50 - 300 USD
VAT (19%): 9.5 - 57 USD
Total: 59.5 - 357 USD
For the developer
45 - 270 USD