Implement exponential lot size

 
Hi. I have a strategy but need to implement an exponential lot size. Does anybody know how to do so? The code is the following:
Files:
Reason: