Modify ea

Can anyone help me modify the free Moving Average ea that comes with MT4 so that it will trade mini lots of .01? Right now, the smallest lot size it will trade is .1 even when the inputs are changed in the properties tab. I have also changed /---- return lot size if(lot<0.1) lot=0.1; to /---- return lot size if(lot<0.01) lot=0.01; but this has not handled the problem. Any help will be appreciated.

Lot size depend on the money you have (Free Margin) and this Decrease Factor. I don’t know the strategy, but tune Decrease Factor.

You can also place "Print("Lot size “,lot);” in different places inside LotsOptimized() to see how “lot” is changed.

NormalizeDouble is used also. This is function for rounding numbers, where the first parameter is the number, and the second parameter is precision. In LotsOptimized() there are two NormalizeDouble cases where the second parameter used for this rounding lotsize is 1. So lot size is rounded with 0.1 precision. I don’t know if this will make any change, but try to round with precision 2.