Any way to record running equity values from mt4?

 

Hello, 

Does anyone know of an ea or another way to record running equity values from mt4? I'd like to record equity values every 5 minutes or so in order to do some analysis, but I haven't been able to figure out a way. 

Thanks

 
To my mind come

EventSetTimer(5*60);
...

void OnTimer(){
   FileOpen(...);
   FileWrite(...);
   ...

}

 

Let search on Codebase.

below is an indicator 

https://www.mql5.com/en/code/13242

Equity Chart
Equity Chart
  • votes: 33
  • 2016.02.08
  • transcendreamer
  • www.mql5.com
The indicator displays the equity and balance charts.