I have seen some of the postings and thought I might find the help I need here. I have tried with no success to calculate Weekly Account Profit and then display it on my chart using the Comment() function. Can anyone help me? I cannot seem to come up with the right code or formula using the AccountProfit() and OrderHistoryTotal() functions. I know it seems like a simple taks, but I am baffled. Thanks.
What software package are you using to program in MQL? Are you running within IBFX or in the standalone Metatrader product?
I am using IBFX. I am trying to use AccountBalance() and simple subtract the Sunday Account Balance from the Current Account Balance every week. So the Sunday Account balance should reset every week. Any ideas?