![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
For some reason, it incorrectly calculates the profit for the month.
Почему-то неправильно считает прибыль за месяц.
Turn on the display of transactions in the history tab, something like this:
Don't hide history. Show your settings and all history. Read the help about the difference between a trade and a position.
Added: Everything works correctly.
Example:
Yes that's right. Counts all transactions(in/out). Ok.
Thanks. Expert great.
Yes that's right. Counts all transactions(in/out). Ok.
Thanks. Expert great.
I want to clarify: the EA counts ALL deals
DEAL_ENTRY_IN
Entry in
DEAL_ENTRY_OUT
Entry out
DEAL_ENTRY_INOUT
reverse
DEAL_ENTRY_OUT_BY
Close a position by an opposite one
to take into account all commissions and fees (often commissions and fees are taken for both entry and exit).