error occurs when you try to divide something by zero.
Your lot size too big or "IncreaseFactor" variable too big you need to use only the values that you see in input parameters on EAs page :
Or try lower values.
I just wonder why The fast MA setting only 1-20 not 1-49 , since the slow MA setting minimum is 50.
Overall i think its good.
There are no rules here
It's just a suggestion
Use the values you think are correct