Function which calculates how much money is engaged by a total of all trades

MQL4 Esperti Script

Specifiche

I got a simple expert (This is the MovingAverage.mq4) provided by MT4, which can not loose more than 20% if the account. 

context : 

Balance is 10000 Euros / Currency Euro

pair EURUSD

Leverage 1:200

You need to write a new function which calculates how much money is engaged by a total of all trades (from a same expert ) and displays an alert

means, if the expert looses 2000 euros, the expert must stop immedialty


Important:

**** do not use those following functions as BalanceEquity or MarginFree, or MarginRequired or whatever.

Just, calculate the amount of money for each trade with OrderProfit(), OrderLots() , OrderOpenPrice() ..

 







Con risposta

1
Sviluppatore 1
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(71)
Progetti
103
20%
Arbitraggio
6
0% / 83%
In ritardo
3
3%
Gratuito
3
Sviluppatore 3
Valutazioni
(365)
Progetti
412
36%
Arbitraggio
35
26% / 57%
In ritardo
63
15%
Gratuito
4
Sviluppatore 4
Valutazioni
(772)
Progetti
1039
44%
Arbitraggio
50
8% / 50%
In ritardo
116
11%
Gratuito

Informazioni sul progetto

Budget
30+ USD
Scadenze
da 1 a 4 giorno(i)