Script for close order automatically

MQL5 Scripts C++

Trabalho concluído

Tempo de execução 2 dias

Termos de Referência

I trade multiple pairs with a automated signal provided from another platform.


Existing method: when mt4/mt5 receives the buy or sell signal it will execute the order automatically. But it doesn't close the previously running position in the same pair.


Requirement:

Script should work @ each order is executed(buy/sell).

Only one trade will be there per symbol at any point of time. if mt4/mt5 receives a signal it will execute the orders. Now script will check for more than one order in any symbol. If there is more than one order in a symbol the script should close the older order.

For example: if mt4/mt5 receives a sell signal it will be executed automatically. now the script should check for the more than one order condition in that symbol if there is more than one trade (Sell executed now and a buy is running already and its a older order) the script should close older orders and the latest should be active and running.


NOTE: need this script in both mt4 and mt5

Respondido

1
Desenvolvedor 1
Classificação
(191)
Projetos
232
30%
Arbitragem
1
100% / 0%
Expirado
9
4%
Livre
2
Desenvolvedor 2
Classificação
(12)
Projetos
12
25%
Arbitragem
0
Expirado
1
8%
Livre
3
Desenvolvedor 3
Classificação
(20)
Projetos
29
55%
Arbitragem
0
Expirado
0
Livre
4
Desenvolvedor 4
Classificação
(430)
Projetos
606
55%
Arbitragem
48
23% / 56%
Expirado
178
29%
Livre
5
Desenvolvedor 5
Classificação
(349)
Projetos
463
51%
Arbitragem
41
24% / 49%
Expirado
149
32%
Livre
6
Desenvolvedor 6
Classificação
(19)
Projetos
27
19%
Arbitragem
6
33% / 33%
Expirado
2
7%
Livre
7
Desenvolvedor 7
Classificação
(34)
Projetos
49
43%
Arbitragem
3
0% / 33%
Expirado
14
29%
Livre
8
Desenvolvedor 8
Classificação
(65)
Projetos
71
30%
Arbitragem
8
0% / 88%
Expirado
5
7%
Livre
9
Desenvolvedor 9
Classificação
(5)
Projetos
7
43%
Arbitragem
4
0% / 75%
Expirado
3
43%
Livre
10
Desenvolvedor 10
Classificação
(9)
Projetos
8
0%
Arbitragem
5
0% / 80%
Expirado
1
13%
Trabalhando
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
(40)
Projetos
85
13%
Arbitragem
29
28% / 48%
Expirado
35
41%
Ocupado
13
Desenvolvedor 13
Classificação
(49)
Projetos
134
27%
Arbitragem
62
13% / 53%
Expirado
58
43%
Livre
14
Desenvolvedor 14
Classificação
(54)
Projetos
65
52%
Arbitragem
5
40% / 60%
Expirado
22
34%
Trabalhando
15
Desenvolvedor 15
Classificação
(62)
Projetos
140
46%
Arbitragem
19
42% / 16%
Expirado
32
23%
Livre
Pedidos semelhantes
I want EA to picks symbols of the most strong, and trade by typical indicator like MACD. EA calculate this strength in real time to pick which symbols to be traded. For this, once everyday EA calculate the historic strength of all given symbols with ten years historic data, and, with this value, EA calculate Relative Strength in real time continuously. The exact calculation method will be given after being dedicated
The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the with the specified period. If the current EMA value is greater than the previous one, the trend is seen as growing (Ema current > Ema previous). Alternatively, if current EMA is below the previous one, the trend is considered
I need just the code tgat draws trendlines and channels. But with a twist. I need it drawing trend lines afte 2 candles then if a new inner trend happens that line is drawn plus keep original and if there is a channel occurring draw the top of the candle trendline on an uptrend but what's more important is the lines are drawn on the bottom the and top corners to corners of trend not tail n whacks then I also need
Hi developers, I would like to connect my TradingView alerts to MT5 using webhooks. Just a simple buy sell is good enough, no need stop loss, no need take profit. You will need to deliver: 1. Telegram integration (reception of TradingView webhooks signals to be sent to MT5 EA) 2. MT5 EA codes 3. Option of customize lot size (1 lot in TradingView => 0.1 lot in MT5) 4. Have Master Token and
The blue EA 35+ USD
The idea is to take positions after the change of colour on the histogram based on the number of bars since the colour change This must be in the input of the EA ie after xyz bars take a buy when its in blue or sell after xyz when its in red on EA settings we must have Magic number this can be changed by user magic number must have 5 digits start time 00:00 End time 23:00 lot size :this is the lot size to start with
I have 2 MT4 indicators and I want it to be created into an MT4 EA. It is both ex4 files. The strategy is very simple. I will provide images for reference and the 2 MT4 ex4 files
hello, great developer here am looking for great developer to convert a pinescript indicator to mt4 For me if you Can help me with this You can Bid for this project Best regards
Hi, I have 2 MT4 indicators which are ex4 files to be converted to PineScript for TradingView. I do not have the source code/mq4 file. I only have the ex4 files
Hello, I need to programme 1LEG latency arbitrage software/EA for US30 and all currency pairs. I am aiming for programmer who wants to work on long-term because this is oppurtunity. All requirements will be discussed in chat
👋 Hey Great Developer Can you create an AI for Ninjatrader 8 that masters machine learning and develops independently? I need them universally so I can integrate them into my bots, is that possible? I also need help integrating my breakeven and trailstop strategies, ideally universally, so that I can integrate them everywhere, including in new projects. I will be looking for great developer to bid for it Best

Informações sobre o projeto

Orçamento
30 - 40 USD
Desenvolvedor
27 - 36 USD