I have an EA which doesn't have martingale. I need the following to be added, explained with an example following are the input parameters: say startLot: 0.01 martingaleMultiplier1: 10 continuousLosses1: 5 martingaleMultiplier2: 7 profitLevel: Highest or Not newCycle: 0 numberofContinuousLosses: 0 newStartLot: 0; before taking any new trade see if balance of the account is greater than the last highest account balance if this is true then make the EA refresh, that is make it as if it started freshly with all parameters reset and the next trade size should be "startLot" i.e. as if it is the first trade start first trade with "startLot", and make newStartLot = "startLot", when ever a trade is a loss trade then next trade size should be "last trade size*martingaleMultiplier1" and "numberofContinuousLosses" = "numberofcontinuousLosses"+1; but if the "numberofContinuousLosses" = "continuousLosses1" then "newCycle"="newCycle"+1 and next trade size is "startLot*newCycle*martingaleMultiplier2" and "numberofContinuousLosses"=0, and make newStartLot = "startLot*newCycle*martingaleMultiplier2" when ever a trade is a win, the next trade size should be "newStartLot"