The short answer to your question is 'No'.matrixebiz » Thu Dec 18, 2014 2:01 am wrote:Hey rene, is there any way to add an account DrawDown for the time period selected?
With my Broker I can't select the amount of Demo money the account starts with so my Demo account is at $100K so it would be nice to know how much drawdown the account went into for the week or whatever so I know that if I was to deposit $100 into a Live account, I wouldn't have blown it do to a margin call. Thx
The long answer is this: MQL does not provide a function to get the UPL for a certain historic date. One way to approximate this is by dissecting the reporting period in a sequence of one-minute candles, working out which of the selected trades (filtered by magic number, comment-fields etc) were open on that candle and for each of them work out their unrealised pip count (by comparing their open price with the one-minute candle close price for that candle). This would give you a minute-by-minute unrealised pip count (that can be converted to dollars using the lotsize).
Problem with this is that the one-minute historic data feed is not accurate and MQL just throws you a number if it hasn't got the data loaded (meaning that you can get different answers for different runs).
Hope not to disappoint you.