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

MQL4 专家 脚本

指定

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() ..

 







附加的文件:

反馈

1
开发者 1
等级
项目
0
0%
仲裁
0
逾期
0
空闲
2
开发者 2
等级
(71)
项目
103
20%
仲裁
6
0% / 83%
逾期
3
3%
空闲
3
开发者 3
等级
(365)
项目
412
36%
仲裁
35
26% / 57%
逾期
63
15%
空闲
4
开发者 4
等级
(772)
项目
1039
44%
仲裁
50
8% / 50%
逾期
116
11%
空闲

项目信息

预算
30+ USD
截止日期
 1  4 天