Is AccountInfoDouble(ACCOUNT_PROFIT) the function for my need?

 

Is the value returned by `AccountInfoDouble(ACCOUNT_PROFIT)` function the profit of all the currently open positions or today's profit of all the CLOSED + OPEN trades?

I want to know the today's profit of my EA. How should I use this function?

 

It returns the amount of current floating profit + swap, do not take into consideration any closed trade, but only opened.

It's expressed in account deposit currency.