Maximum Lots MM

 

I have nice life problems here.

My EA only trade once or twice a week  and now I have reached my broker's maximum lots, now I feel like the EA is being limited and no longer performing as it has been for the past months. I am currently thinking of a way to code my new lots management so that it will add trades to accomplish the calculated lots size above the broker's maximum lots. 

Any Ideas?

 

I got it! thanks to Whroeder

      for(int split=MathCeil(lotsNew/maxLot);       
          split>0; split--) 
        {                        
         double size=MathCeil(lotsNew/split/lotStep)*lotStep;
         lotsNew-=size;
         
         //send order.....
         }
Reason: