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

İş Gereklilikleri

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

 







Yanıtlandı

1
Geliştirici 1
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(71)
Projeler
103
20%
Arabuluculuk
6
0% / 83%
Süresi dolmuş
3
3%
Serbest
3
Geliştirici 3
Derecelendirme
(365)
Projeler
412
36%
Arabuluculuk
35
26% / 57%
Süresi dolmuş
63
15%
Serbest
4
Geliştirici 4
Derecelendirme
(769)
Projeler
1033
44%
Arabuluculuk
50
8% / 50%
Süresi dolmuş
117
11%
Serbest
Benzer siparişler
I currently have a Forex trading script in .txt format that I want to be converted to a functional/working robot (in .mq4), without altering the strategy of the script. The strategy of the script is already in and shouldn't be changed unless with mutual understanding

Proje bilgisi

Bütçe
30+ USD
KDV (20%): 6 USD
Toplam: 36 USD
Geliştirici için
27 USD
Son teslim tarihi
from 1 to 4 gün