How to code an average total holding days of a trade

 
Anybody know how to code an average total holding days of a trade from the account history?
 
Anyone?
 

Have a look at this thread. It 'll get you started on how to work with the history pool.

Come back if you have any further questions about specific calculations you need within the history.

https://www.mql5.com/en/forum/117597


CB

Reason: