Create an EA to close an open trade

MQL4 Experts

Specification

I want an EA that will close a trade when another trade opens. Let's say a BUY trade (trade 1) already exists and if a BUY PENDING ORDER becomes activated (trade 2) then the initial BUY trade 1 should be closed. And if another BUY PENDING ORDER becomes activated (trade 3) then the second BUY trade (trade 2) should be closed. And so on. In order words, there should never be two or more BUY trades opened at the same time.

Responded

1
Developer 1
Rating
(620)
Projects
680
57%
Arbitration
25
16% / 60%
Overdue
228
34%
Free
2
Developer 2
Rating
(769)
Projects
1033
44%
Arbitration
50
8% / 50%
Overdue
117
11%
Free
3
Developer 3
Rating
(878)
Projects
1390
67%
Arbitration
117
32% / 42%
Overdue
215
15%
Free
4
Developer 4
Rating
(46)
Projects
73
16%
Arbitration
13
8% / 92%
Overdue
37
51%
Free
5
Developer 5
Rating
(48)
Projects
73
37%
Arbitration
22
9% / 41%
Overdue
14
19%
Working
6
Developer 6
Rating
(1117)
Projects
1419
62%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
7
Developer 7
Rating
(42)
Projects
70
43%
Arbitration
6
33% / 50%
Overdue
19
27%
Free
8
Developer 8
Rating
(414)
Projects
670
33%
Arbitration
60
17% / 32%
Overdue
114
17%
Working
9
Developer 9
Rating
(25)
Projects
50
28%
Arbitration
47
9% / 72%
Overdue
23
46%
Free
10
Developer 10
Rating
(9)
Projects
12
42%
Arbitration
0
Overdue
4
33%
Free
11
Developer 11
Rating
(88)
Projects
143
39%
Arbitration
21
19% / 48%
Overdue
30
21%
Free
12
Developer 12
Rating
(182)
Projects
186
27%
Arbitration
0
Overdue
3
2%
Free
13
Developer 13
Rating
(546)
Projects
823
73%
Arbitration
15
53% / 13%
Overdue
193
23%
Free
14
Developer 14
Rating
(354)
Projects
587
70%
Arbitration
14
43% / 7%
Overdue
28
5%
Free
15
Developer 15
Rating
(39)
Projects
44
16%
Arbitration
1
100% / 0%
Overdue
7
16%
Free
16
Developer 16
Rating
(218)
Projects
402
60%
Arbitration
13
38% / 23%
Overdue
160
40%
Working
17
Developer 17
Rating
(3)
Projects
8
13%
Arbitration
10
10% / 70%
Overdue
2
25%
Free
18
Developer 18
Rating
(59)
Projects
182
55%
Arbitration
31
45% / 16%
Overdue
103
57%
Free
19
Developer 19
Rating
(6)
Projects
8
50%
Arbitration
5
20% / 80%
Overdue
2
25%
Free
20
Developer 20
Rating
(555)
Projects
922
48%
Arbitration
300
59% / 25%
Overdue
123
13%
Free
21
Developer 21
Rating
(14)
Projects
22
59%
Arbitration
2
0% / 50%
Overdue
2
9%
Free
Similar orders
Nt8 30+ USD
I trade in NT8 and would like to code an Elliott wave measurment tool, which is very easy because I have the major Script for that.We need only to add some aspects into it. If you are interested,if you can do this do well to bid on it
Hello, I am looking for someone that can develop for me a trading bot, that can trade on Crash 500 and 1000, and also on Boom 500 and 1000. The bot must buy on Crash 500 and 1000 and sell on Boom 500 and 1000. The indicator we use is the Awesome Oscillator. The CRASH 500/1000 we scalp it by buying. We only place our ENTRY that is to BUY when the Awesome Oscillator changes from VALUE DOWN to VALUE UP and by changing I
Требуется дописать условия постепенного закрытия позиций для готового советника. Есть готовый советник для МТ4 с простым условием для ТР. ТР= n x SL Требуется написать условие постепенного выхода из сделки. 1. TP 1 ____% от начальной позиции = ___х SL TP 2 ____% от начальной позиции = ___х SL TP 3 ____% от начальной позиции = ___х SL TP 4 ____% от начальной позиции = ___х SL TP 5 ____% от
I have the source code attached which is my attempt at merging / converting: Into MQL5 code, but instead of being an indicator I just need it to return the same values as the indicator. What I need help with: I need the values in the comments to return similar to the demo indicator below - currently it is showing values near the price, but would instead expect - values from -80 to 80 like the indicator How to test: -
The EA follows a simple trading strategy without the need for any signals. Entry and exits rules for new positions are based on profit and time triggers of previous positions. An overall profit triggers closes all open positions. A sequence of max 10 open positions is envisaged. 3 parameters for each position shall be configurable in input settings. A detailled requirements specification as well as examples are
Im going to automate my strategy, see attached file with description of the requirements. Everything you need in order to understand the strategy is listed in the document. If any questions appear feel free to ask! Please leave a quote. thanks ahead. /Axel
— EA RULES — 1. At the OPEN of each new candlestick: BUY / SELL / DO NOTHING — Trades all symbols and timeframes simultaneously — EA SETTINGS — 1. Max Exposure Risk %: (Input) (On/Off) 2. Max Daily TakeProfit %: (Input) (On/Off) 3. Max Daily Trailing Drawdown %: (Input) (On/Off) — Parameter optimization is based on these 3 settings ======================================== 1. Data EA: — All symbols data (Done) — All
EA is based on Zig Zag indicator and candlestick patterns and is not catching all valid trades due to Zig Zag limitations, lagging last leg or repainting I guess. Before I will select you please present me a solution for this issue. I am so sorry, but I haven't got time for an amateur programmers. I am searching a programmer for a longer co-operation
Brizzo bot 1.2 30 - 150 USD
*Strategy Name:* Mean Reversion Bot *Market:* Stocks (e.g., S&P 500) *Timeframe:* Daily *Entry Rules:* 1. Calculate the 50-day simple moving average (SMA) of the stock price. 2. If the current stock price is below the 50-day SMA by 2% or more, buy the stock. 3. If the current stock price is above the 50-day SMA by 2% or more, sell the stock (or short if allowed). *Exit Rules:* 1. Set a stop-loss at 5% below the entry
Diamond back 1,2 30 - 150 USD
I can't create a trading robot for you, but I can help you design a basic trading strategy that you can use as a starting point to develop a trading robot. Here's a simple example of a mean reversion strategy: *Strategy Name:* Mean Reversion Bot *Market:* Stocks (e.g., S&P 500) *Timeframe:* Daily *Entry Rules:* 1. Calculate the 50-day simple moving average (SMA) of the stock price. 2. If the current stock price is

Project information

Budget
30+ USD
For the developer
27 USD