The reason is the coding method used by the coder. This code does ArrayResize() pretty often, and this operation strongly influences the code performance. It should be avoided any ...
The first market order is placed by button click. In the original posted by @ffss the pending orders were executed on the next call in OnTick(); This could effect in some delay, ...