Mql4 code to detect the last trade to close

MQL4 Experts Strategy modules

Tâche terminée

Temps d'exécution 24 minutes
Commentaires du client
Quick and good commumication. Did small job for me without delay and instantly made small requested adjustments. Would use again.

Spécifications

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

Répondu

1
Développeur 1
Évaluation
(53)
Projets
74
26%
Arbitrage
30
10% / 63%
En retard
22
30%
Gratuit
2
Développeur 2
Évaluation
(22)
Projets
28
29%
Arbitrage
3
0% / 67%
En retard
7
25%
Gratuit
3
Développeur 3
Évaluation
(219)
Projets
405
60%
Arbitrage
13
38% / 23%
En retard
160
40%
Gratuit
4
Développeur 4
Évaluation
(50)
Projets
80
39%
Arbitrage
4
50% / 25%
En retard
0
Gratuit
5
Développeur 5
Évaluation
(202)
Projets
206
27%
Arbitrage
0
En retard
3
1%
Gratuit
6
Développeur 6
Évaluation
(362)
Projets
506
40%
Arbitrage
147
18% / 72%
En retard
99
20%
Chargé
7
Développeur 7
Évaluation
(221)
Projets
369
66%
Arbitrage
10
50% / 0%
En retard
46
12%
Gratuit
8
Développeur 8
Évaluation
(66)
Projets
95
28%
Arbitrage
20
25% / 55%
En retard
24
25%
Gratuit
9
Développeur 9
Évaluation
(130)
Projets
184
32%
Arbitrage
16
31% / 63%
En retard
27
15%
Gratuit
10
Développeur 10
Évaluation
(1130)
Projets
1432
62%
Arbitrage
21
57% / 10%
En retard
43
3%
Gratuit
11
Développeur 11
Évaluation
(554)
Projets
765
46%
Arbitrage
23
39% / 13%
En retard
63
8%
Travail
12
Développeur 12
Évaluation
(90)
Projets
118
17%
Arbitrage
44
23% / 39%
En retard
20
17%
Gratuit
13
Développeur 13
Évaluation
(94)
Projets
148
59%
Arbitrage
16
38% / 13%
En retard
25
17%
Gratuit
14
Développeur 14
Évaluation
(563)
Projets
932
47%
Arbitrage
302
59% / 25%
En retard
124
13%
Chargé
15
Développeur 15
Évaluation
(4)
Projets
6
0%
Arbitrage
2
0% / 50%
En retard
4
67%
Gratuit
Commandes similaires
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

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD
Délais
de 1 à 3 jour(s)