And here is another log. It additionally measures the time for each execution of OrderModify(). As one can see, there is no delay between the Click (visual execution, logged as "SL Clicked"), - not one millisecond - and one can see, and the the start of the actual execution of OrderModify() and it is not waiting for a tick, cause it happens during OnChartEvent.
But the log shows an execution time between 600! milliseconds (first execution) and and average of 200 milliseconds for the following executions. The measurement is located directly around OrderModify(), there is no other code between. As estimated before, the total time is almost round about 2 seconds for five SLs.
and here is another one, more than 5 seconds for 5 TPs ... see for yourself:
OK, I give the answer myself and for the rest of the world, which is going to search for an answer too.
This huge delay was caused by the MetaQuotes Demo-Account-Server. After I´ve tested it on a live-acount, the execution time went down to <>70 msecs per order, which is totally acceptable.
Thank you anyway
To add comments, please log in or register