puncher:
AccountProfit() ?
My Question is: Can I count SUM of OrderProfit() for all the different symbols as one result ?
OK :) THX
AccountProfit() is different from the sum of all active orders using OrderProfit() (it's not including OrderSwap() etc.), AccountProfit() Including all.
Attached is the indicatory iExposure. I believe it may do what you want.
Files:
iexposure.mq4
8 kb

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Has anybody any idea how to count the result of all active orders for all different Symbols at one time?
For example I have opened:
0.1 Lot sell EURUSD -> OrderProfit() is -10.00 USD
0.1 Lot sell EURCHF -> OrderProfit() is 8.00 USD
0.1 Lot buy USDCHF -> OrderProfit() is -22.45 USD
0.1 Lot sell GOLD -> OrderProfit() is 135.75 USD
0.1 Lot buy #C (CrudeOil) -> OrderProfit() is 250.70 USD
0.1 Lot sell USDPLN -> OrderProfit() is -130.85 USD
My Question is: Can I count SUM of OrderProfit() for all the different symbols as one result ?
The Result for above example should be: (-10)+8+(-22)+135.75+250.70+(-130.85) = 231.60 USD
If YES, Can I pls any example with MQ4 syntax?