I'm trying to find any datetime functions for calulating time differences. I want to run a script to check on the elapsed time that an open trade has been active.
Suggest you always poke around the site's massive archive. eg, the MQL4 Tutorial is good. Also, Articles are of enormous use to us all.