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

指定

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 日