Any MQL4 programmers?

Discussion in 'Automated Trading' started by dnaj65000, Jan 17, 2009.

  1. Lynn

    Lynn

    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.
     
    #11     Mar 12, 2009
  2. What software package are you using to program in MQL?

    Are you running within IBFX or in the standalone Metatrader product?
     
    #12     Mar 13, 2009
  3. Lynn

    Lynn

    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?
     
    #13     Mar 13, 2009