Resize Positions every week

 

Hi,

I am currently building an automated trading system and I would like to resize the size of the positions regarding to the capital value every week.

 For instance, for a 10000 euros account, the first week positions with 1.0 lots are opened. However the second week, the account's value is 12000 euros so positions with 1.2 lots will need to be opened.

 Thank you very much for your help.