AccountEquity() at a previous time

 

Hi,

I would like to compare current AccountEquity() with AccountEquity() at a specific time in the past (say 12 hours ago). How can I code that?

sp

 
i think you cant do that a common way
 
GarF1eld wrote >>
i think you cant do that a common way

Yeah, it looks like atleast that part has to be manual. Will try to dream over it.

 

Try writing CSV files for specific time with account equity information. And then after several days you'll have internal info about your account equity...

Let's say to save it every 1 minute or 1 hour (depends what kind od trading are you in) and then you can search these results.

 
stradz wrote >>

Try writing CSV files for specific time with account equity information. And then after several days you'll have internal info about your account equity...

Let's say to save it every 1 minute or 1 hour (depends what kind od trading are you in) and then you can search these results.

Thanks, I think this may be the only option. However, how would I loop through the values in MQL?I am not a sophisticated coder-:(

Reason: