Anyone can edit this to kelly strategy money management?

my lot size is 0.10 when starting equity is $250 this should change to 0.11 when equity growth to $500


if(Money_management)
{
switch(AccountType)
{
case 0: lotsi=NormalizeDouble(MathCeil((riskAccountEquity ())/10000)/10,1); break;
case 1: lotsi=NormalizeDouble((risk
AccountEquity())/100000,2); break;
case 2: lotsi=NormalizeDouble((riskAccountEquity())/1000,2); break;
default: lotsi=NormalizeDouble(MathCeil((risk
AccountEquity ())/10000)/10,1); break;

}


Thanks