Mql4 code to detect the last trade to close

İş tamamlandı

Tamamlanma süresi: 24 dakika
Müşteri tarafından geri bildirim
Quick and good commumication. Did small job for me without delay and instantly made small requested adjustments. Would use again.

İş Gereklilikleri

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

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(53)
Projeler
74
26%
Arabuluculuk
30
10% / 63%
Süresi dolmuş
22
30%
Serbest
2
Geliştirici 2
Derecelendirme
(22)
Projeler
28
29%
Arabuluculuk
3
0% / 67%
Süresi dolmuş
7
25%
Serbest
3
Geliştirici 3
Derecelendirme
(218)
Projeler
404
60%
Arabuluculuk
13
38% / 23%
Süresi dolmuş
160
40%
Serbest
4
Geliştirici 4
Derecelendirme
(50)
Projeler
80
39%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(196)
Projeler
200
28%
Arabuluculuk
0
Süresi dolmuş
3
2%
Serbest
6
Geliştirici 6
Derecelendirme
(362)
Projeler
504
40%
Arabuluculuk
147
18% / 72%
Süresi dolmuş
98
19%
Meşgul
7
Geliştirici 7
Derecelendirme
(221)
Projeler
369
66%
Arabuluculuk
10
50% / 0%
Süresi dolmuş
46
12%
Serbest
8
Geliştirici 8
Derecelendirme
(66)
Projeler
95
28%
Arabuluculuk
20
25% / 55%
Süresi dolmuş
24
25%
Serbest
9
Geliştirici 9
Derecelendirme
(130)
Projeler
184
32%
Arabuluculuk
17
29% / 59%
Süresi dolmuş
27
15%
Çalışıyor
10
Geliştirici 10
Derecelendirme
(1127)
Projeler
1429
62%
Arabuluculuk
21
57% / 10%
Süresi dolmuş
43
3%
Serbest
11
Geliştirici 11
Derecelendirme
(546)
Projeler
756
46%
Arabuluculuk
23
39% / 13%
Süresi dolmuş
63
8%
Çalışıyor
12
Geliştirici 12
Derecelendirme
(90)
Projeler
118
17%
Arabuluculuk
44
23% / 39%
Süresi dolmuş
20
17%
Serbest
13
Geliştirici 13
Derecelendirme
(94)
Projeler
148
59%
Arabuluculuk
16
38% / 13%
Süresi dolmuş
25
17%
Serbest
14
Geliştirici 14
Derecelendirme
(563)
Projeler
932
47%
Arabuluculuk
301
59% / 25%
Süresi dolmuş
124
13%
Çalışıyor
15
Geliştirici 15
Derecelendirme
(4)
Projeler
6
0%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
4
67%
Serbest
Benzer siparişler
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

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
from 1 to 3 gün