Position size calculator Ea

 
Hello, I’m looking for a position size calculator Ea that auto adjust the position size of a trade. 

Let’s say if I open up a order of .01 and my account size is $1000 
But I would like to use 10% of account size to determine lot size. The Ea, the close the .01 order and opens a new order with the current size and the set tp and SL. 
Anything like this already made. ?
Reason: