How to put here profit for 1 day?

 
I dont want it be profit for current opened trades (if I type AccountInfoDouble(ACCOUNT_PROFIT). I want overall daily profit. How can I do that?
Comment( StringFormat("Profit = %.2f"), // what next?
Files:
 
IgorFX Trading: I want overall daily profit. How can I do that?

You will have to calculate it.
          Could EA Really Live By Order_History Alone? (ubzen) - MQL4 programming forum (2012)
          Taking the last profit and storing it in a variable | MQL4 - MQL4 programming forum #3 (2020)

 
IgorFX Trading:
I dont want it be profit for current opened trades (if I type AccountInfoDouble(ACCOUNT_PROFIT). I want overall daily profit. How can I do that?

Have a look at this thread

https://www.mql5.com/en/forum/302805

There are a few code examples in there which may help

accoount balance history - How to get the past account balance of my last 10 trades in Metaeditor
accoount balance history - How to get the past account balance of my last 10 trades in Metaeditor
  • 2019.02.10
  • www.mql5.com
How to get the account balance of the last 10 trades. Sorry not sure if that helped, or total waste of time. How do youput your account balance in the comment. With this code ( please try it ) you will have your current balance on comment
Reason: