before going on with code, are you sure your recovery method is what you are really after? A typical recovery (Martingale) system should be in the lines of
a. If you only wanted to zero losses, after 1st trade of 0.01 lots it should be 0.01>0.01>0.02>0.04>0.08>0.16 and so on
b. for having a win of the size of the original trade, say 0.01 lots, the above becomes 0.01>0.02>0.04>0.08>0.16>0.32 (that reads, one more iteration before blowing account :) )
So, I suspect that your calculations are flawed, as you are getting a gigantic increase of lots in each step as per your logic. Am I right?
And what do you expect it to print?
Are there actually any closed orders with the symbol and Magic Number?
If there are, did the last closed trade close with profit or loss?