Let begin with the following:
-
Why are you initializating 'initial_lot' on the on Init tab? That option will only be available when there is an open trade. Will there be an open trade the firt time you run the EA on the chart? I guess not. Maybe you just need a Constant in which you specify the initial lot size.
-
You can substitute blocks 18 and 21 by a single 'Check trades count' block. Theer you can specify the group number you need. Same for blocks 37 and 40. You do not need buckets of trades if you know how to use groups. As is apparently the case.
Try that and let me know.

