A couple of updates have been released (see below) to better reflect the outcome of a previously closed trade. In a nut-shell, when using the martingale option, the EAs would not consider the swam/commission of the last trade. That proved to be a little confusing. From these versions on, the last trade's profit will include both the swap and the commission, so if martingale is enabled, the EAs will increase the lotsize based on the trade's profit + swap + commission (if that's the case).
IF (last profit + swap + commission) < 0$ THAN martingale