The log files are permanent, so you can use those.Yes, I've always used journal or log so far to determine execution time and slippage.
This is unsatisfactory for two reasons: 1) the journal isn't permanent, so I'd have to copy/paste the info to a text file to have a lasting record
It is disappointing that MetaQuotes does not have millisecond precision, but knowing that an execution took 1, 2, or more seconds is still useful, so millisecond precision is not essential.2) both journal and log only state times in full seconds, so they aren't exactly precise.
It does provide the requested price, but on the first line (of the four lines). See my example above.In addition, the log does not provide prices for the request but only for the actual execution, which makes it useless to determine slippage.
There are many ways that my code could be used. They are just MQL functions that submits an order to open a trade, or closes an existing open trade. You can copy and paste either the entire functions into your own expert advisor or you can just copy some lines and paste them into your own order sending and closing code. This assumes of course that you have access to the code of the expert advisor.That is why I'd hoped for some instruction on how to use the code you've provided
If you want to record execution duration and slippage for manual trades, you could put the code into scripts. I've made an example in this post: http://www.forexpeacearmy.com/forex...er-execution-duration-slippage.html#post82836