Accumulate Orders By Magic Number and Time

 
Hello coders ! I am trying to code for accumulating orders in 2D array and unable to get correct results can anyone help me plz the detail is in attached file please take a look Thanks
Files:
 

Here is an example using array to manage orders

Hope this helps you.

https://book.mql4.com/build/orders