Mql4 code to detect the last trade to close

MQL4 Esperti Strategy modules

Lavoro terminato

Tempo di esecuzione 24 minuti
Feedback del cliente
Quick and good commumication. Did small job for me without delay and instantly made small requested adjustments. Would use again.

Specifiche

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

Con risposta

1
Sviluppatore 1
Valutazioni
(53)
Progetti
74
26%
Arbitraggio
30
10% / 63%
In ritardo
22
30%
Gratuito
2
Sviluppatore 2
Valutazioni
(22)
Progetti
28
29%
Arbitraggio
3
0% / 67%
In ritardo
7
25%
Gratuito
3
Sviluppatore 3
Valutazioni
(219)
Progetti
405
60%
Arbitraggio
13
38% / 23%
In ritardo
160
40%
Gratuito
4
Sviluppatore 4
Valutazioni
(50)
Progetti
80
39%
Arbitraggio
4
50% / 25%
In ritardo
0
Gratuito
5
Sviluppatore 5
Valutazioni
(202)
Progetti
206
27%
Arbitraggio
0
In ritardo
3
1%
Gratuito
6
Sviluppatore 6
Valutazioni
(362)
Progetti
506
40%
Arbitraggio
147
18% / 72%
In ritardo
99
20%
Caricato
7
Sviluppatore 7
Valutazioni
(221)
Progetti
369
66%
Arbitraggio
10
50% / 0%
In ritardo
46
12%
Gratuito
8
Sviluppatore 8
Valutazioni
(66)
Progetti
95
28%
Arbitraggio
20
25% / 55%
In ritardo
24
25%
Gratuito
9
Sviluppatore 9
Valutazioni
(130)
Progetti
184
32%
Arbitraggio
16
31% / 63%
In ritardo
27
15%
Gratuito
10
Sviluppatore 10
Valutazioni
(1130)
Progetti
1432
62%
Arbitraggio
21
57% / 10%
In ritardo
43
3%
Gratuito
11
Sviluppatore 11
Valutazioni
(554)
Progetti
765
46%
Arbitraggio
23
39% / 13%
In ritardo
63
8%
In elaborazione
12
Sviluppatore 12
Valutazioni
(90)
Progetti
118
17%
Arbitraggio
44
23% / 39%
In ritardo
20
17%
Gratuito
13
Sviluppatore 13
Valutazioni
(94)
Progetti
148
59%
Arbitraggio
16
38% / 13%
In ritardo
25
17%
Gratuito
14
Sviluppatore 14
Valutazioni
(563)
Progetti
932
47%
Arbitraggio
302
59% / 25%
In ritardo
124
13%
Caricato
15
Sviluppatore 15
Valutazioni
(4)
Progetti
6
0%
Arbitraggio
2
0% / 50%
In ritardo
4
67%
Gratuito
Ordini simili
Hello, I‘m interested in an indicator to predict the next candles probability (bullish or bearish). But honestly I have no idea how to do this. Would be interested in your opinion how we can create such an indicator. Please let me know if you‘ve done similar work
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &
Hey greetings. Am in need of a developer that has already made profitable MT4 or MT5 EA that I can buy with the backtesting and proven result. How is the draw down ? What is the winning rate ? Kindly reply and let proceed
I will buy your EA for MT5, in case that on distance it is able to make a profit of 10% per month. - Martingale methods and grid strategies should not be used as the basis of a trading strategy. - Excellent win rate (>80%) - High risk/loss management - Option to select direction of trading (long, short or both) - News filter - Editable Trading Hours I will need to test in the strategy tester and on live market (on
Hello, i need a good programmer; to code an EA to trade the most productive forex pairs (mainly 2 for the day, and 2 for the night+gold), the strategy is based on the use of one moving average and the rsi, thank you in advance
Arafat 30 - 80 USD
Offre valable uniquement pour avoir des nouvelles de votre réponse rapide de votre aide cordialement mme le quartier de votre avis sur les vacances scolaires et les activités de votre réponse
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
I am interested in creating an EA, I already have the code but I need someone who can debug it make it more greater look more into the strategy and put more strategy modification and modeling and optimization to make it great also at same time debug it
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 mt4/mt5 EA(not included in my tradingview source code): recalculate after order is filled, order size: xx% of equity
Hey greetings. Am in need of a tradingview developer that can add a simple alert to my existing tradingview indicator with a simple conditions. Kindly bid for the project if it is what you can do for me and let proceed

Informazioni sul progetto

Budget
30+ USD
Per lo sviluppatore
27 USD
Scadenze
da 1 a 3 giorno(i)