Mql4 code to detect the last trade to close

Trabalho concluído

Tempo de execução 24 minutos
Comentário do cliente
Quick and good commumication. Did small job for me without delay and instantly made small requested adjustments. Would use again.

Termos de Referência

Hi,

I need a code written to detect when a trade closes, the last one, so it can be used to run a block of code everytime a trade closes.

So I guess something like this.

 bool tradeclosed
{
code to check if a trade just closed
tradeclosed=false
}
else
{
traseclosed=true
}

//So if a trade just closed
if(tradeclosed=true)
{
run my code
}

Thanks for looking

Respondido

1
Desenvolvedor 1
Classificação
(53)
Projetos
74
26%
Arbitragem
30
10% / 63%
Expirado
22
30%
Livre
2
Desenvolvedor 2
Classificação
(22)
Projetos
28
29%
Arbitragem
3
0% / 67%
Expirado
7
25%
Livre
3
Desenvolvedor 3
Classificação
(218)
Projetos
404
60%
Arbitragem
13
38% / 23%
Expirado
160
40%
Livre
4
Desenvolvedor 4
Classificação
(50)
Projetos
80
39%
Arbitragem
4
50% / 25%
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
(196)
Projetos
200
28%
Arbitragem
0
Expirado
3
2%
Livre
6
Desenvolvedor 6
Classificação
(362)
Projetos
504
40%
Arbitragem
147
18% / 72%
Expirado
98
19%
Ocupado
7
Desenvolvedor 7
Classificação
(221)
Projetos
369
66%
Arbitragem
10
50% / 0%
Expirado
46
12%
Livre
8
Desenvolvedor 8
Classificação
(66)
Projetos
95
28%
Arbitragem
20
25% / 55%
Expirado
24
25%
Livre
9
Desenvolvedor 9
Classificação
(130)
Projetos
184
32%
Arbitragem
17
29% / 59%
Expirado
27
15%
Trabalhando
10
Desenvolvedor 10
Classificação
(1127)
Projetos
1429
62%
Arbitragem
21
57% / 10%
Expirado
43
3%
Livre
11
Desenvolvedor 11
Classificação
(546)
Projetos
756
46%
Arbitragem
23
39% / 13%
Expirado
63
8%
Trabalhando
12
Desenvolvedor 12
Classificação
(90)
Projetos
118
17%
Arbitragem
44
23% / 39%
Expirado
20
17%
Livre
13
Desenvolvedor 13
Classificação
(94)
Projetos
148
59%
Arbitragem
16
38% / 13%
Expirado
25
17%
Livre
14
Desenvolvedor 14
Classificação
(563)
Projetos
932
47%
Arbitragem
301
59% / 25%
Expirado
124
13%
Trabalhando
15
Desenvolvedor 15
Classificação
(4)
Projetos
6
0%
Arbitragem
2
0% / 50%
Expirado
4
67%
Livre
Pedidos semelhantes
Hi, I need a robot, which wil get instructions to trade in 3 symbols at the same time based on few parameters and calculations. Example: There is 1 symbol called Gold-Near and the rate for it is 1000-1002 If i specify that when the rate reaches 1050, it should sell 1 lot Upon execution it will have to sell 1 lot of cme gold, buy 3 lots of mcx gold and buy currently (lots will be based on calculation). All the
are you aware of the Monday Range Strategy? https://www.youtube.com/watch?v=7B_yBBFx6z8 5pm EST time sunday - monday 5pm est and it has to be on the H1 chart , minimum 1:2 Risk to reward and break even function after 1:1
An EA that executes when the 21 and 55 SMA Cross on certain time frame also the EA will understand supply and demand levels and executes when price reacts on this levels specified and target/stoploss levels will be predetermined...also the robot will also comprise stochastic oscillator
Starting from scratch, I need a solution to develop my own crypto trading and exchange platform. This platform should compare prices across various exchanges like Coinbase, Binance, KuCoin, and Unocoin, as well as different cryptocurrencies. The solution must identify opportunities to buy on one platform and sell on another for a profit, transferring funds to my personal wallet instantly for security. The bot should
Need EA programmer to create an MT4 EA that will be able to leverage trades in favour of the market direction ,the EA should be able to operate to any broker. The EA must trade on a clear trend not when the Market is ranging. More will be explained once your application has been accepted for the job
Hey, great developer I have a thinkorswim script I want to convert it into TradingView. Can you please let me know if you can i will be looking for great developer that will bid for it best regards
Hey, great developer I have a thinkorswim script I want to convert it into TradingView. Can you please let me know if you can i will be looking for great developer that will bid for it best regards
Tradingview developer 30 - 35 USD
Hey greetings. I am in need of tradingview developer that can modify an open source PineScript indicator code to add additional features. Kindly bid for this project if it is what you handle and let proceed with the project
In summary 1) The bot will only take Firm Buy and Firm Sell Signals . 2) The bot will use the SL and TP based on the indicator . 3) the risk to reward is 2:1 but when the price reaches 1:1 set SL to Breakeven 4) the bot will take Firm Buy and Firm sell after the candle closes with a firm buy or firm sell 5) make sure to give an option for number of contracts to be traded . 6) Bot will close all the trades EOD
hi. I hv a strategy on tradingview need to convert to MT4/MT5 expert advisor for algo trading. would like to add some tradingview strategy setting to the EA(not included in my tradingview code): recalculate after order is filled, order size: xx% of equity

Informações sobre o projeto

Orçamento
30+ USD
Desenvolvedor
27 USD
Prazo
de 1 para 3 dias