When it calculates the profit, it has wrong result. When testing, my EA buy 0.1 lot EURGBP at 0.5064 and close it at 0.5127, the profit I get is -157.83. It should be a value greater than 0 I think. I attach the testing result here. It is only one example, I met many times which the profit result is wrong.
I couldn't attach a html file in my last post. So I copy the result here. Please help me to see this problem. 3 1984.02.13 00:00 buy 2 0.10 0.5064 0.0000 0.0000 4 1985.04.08 00:00 close 2 0.10 0.5127 0.0000 0.0000 -157.83
verage profit trade 734.79 loss trade -244.35 Maximum consecutive wins (profit in money) 1 (1158.94) consecutive losses (loss in money) 2 (-488.69) Maximal consecutive profit (count of wins) 1158.94 (1) consecutive loss (count of losses) -488.69 (2) Average consecutive wins 1 consecutive losses 2
# Time Type Order Size Price S / L T / P Profit Balance 1 1982.11.15 00:00 buy 1 0.10 0.4607 0.0000 0.0000 2 1983.06.06 00:00 close 1 0.10 0.4864 0.0000 0.0000 310.64 10310.64 10152.81 5 1993.09.27 00:00 buy 3 0.10 0.7921 0.0000 0.0000 6 1993.11.22 00:00 close 3 0.10 0.7748 0.0000 0.0000 -330.86 9821.95 7 1994.04.11 00:00 buy 4 0.10 0.7743 0.0000 0.0000 8 1996.03.04 00:00 close 4 0.10 0.8678 0.0000 0.0000 1158.94 10980.89
I couldn't attach a html file in my last post. So I copy the result here. Please help me to see this problem. 3 1984.02.13 00:00 buy 2 0.10 0.5064 0.0000 0.0000 4 1985.04.08 00:00 close 2 0.10 0.5127 0.0000 0.0000 -157.83
verage profit trade 734.79 loss trade -244.35 Maximum consecutive wins (profit in money) 1 (1158.94) consecutive losses (loss in money) 2 (-488.69) Maximal consecutive profit (count of wins) 1158.94 (1) consecutive loss (count of losses) -488.69 (2) Average consecutive wins 1 consecutive losses 2
# Time Type Order Size Price S / L T / P Profit Balance 1 1982.11.15 00:00 buy 1 0.10 0.4607 0.0000 0.0000 2 1983.06.06 00:00 close 1 0.10 0.4864 0.0000 0.0000 310.64 10310.64 10152.81 5 1993.09.27 00:00 buy 3 0.10 0.7921 0.0000 0.0000 6 1993.11.22 00:00 close 3 0.10 0.7748 0.0000 0.0000 -330.86 9821.95 7 1994.04.11 00:00 buy 4 0.10 0.7743 0.0000 0.0000 8 1996.03.04 00:00 close 4 0.10 0.8678 0.0000 0.0000 1158.94 10980.89
Sorry, there are no bugs with MT4. The swap is high when trade on a weekly line. No problems now.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
When it calculates the profit, it has wrong result. When testing, my EA buy 0.1 lot EURGBP at 0.5064 and close it at 0.5127, the profit I get is -157.83. It should be a value greater than 0 I think. I attach the testing result here. It is only one example, I met many times which the profit result is wrong.