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 일