how to change lot size when one trade is closed ...?

 

for example, when one closed trade is profitable and I want to increase lots at next opened trade

Is there anybody know how to write this code...? thx

 
I doubt that the same piece of code can be plugged in to all EAs.
 

if you profited the accountbalance will increase,vice versa, if you lost the balance will decrease


so just calculate lot base on the AccountBalance() function.

Reason: