# Martingale base on balance now / n-order

I propose the setting “Martin base balance / n-order” = true / false;

Benefit:

If account get cutloss in other pair. The existing pair, martin lot will not increase rapidly.

Or if get partial close many time. Martin lot will not increase rapidly.

Logic is for opening next martin position. Next lot size is calculate base on balance now not the lot size of last position that open. So if there are change in balance (WD or Stoploss). The lot size of next posisiton is smaller because it calculate base on balance now. BUT next lot is cannot be smaller than the last opening position. If smaller, Size next martin lot is the same size as last position.

Logic:

Using autolot / Fixed size per 1000

NextLot calculate based on balance in account.

NextLot = ( Balance/ 1000 * LotSize) * MathPow(MartinLotCoef, nOpenPosisition-1)

If (NextLot < LastOpeningLot) NextLot = LastOpeningLot

I will give 2 example:

Example1: Changes in balance

balance $10.000, martin lot coef 1.5

Lot type is autolot, based on “Fixed size per 1000”, lost size 0.01.

There already 4 layer,

the layer: 0.1 0.15 0.23 0.34

and that account get GA Stoploos in other pair -20%. So Balance now $8.000

if “Martin based balance / n-order” = true

the next 5th layer, (8000 / 1000 *0.01) * MathPow(1.5 , 5-1) = 0.41

so the layer: 0.1 0.15 0.23 0.34 0.41

if “Martin based balance / n-order” = false,

the next 5th layer 0.51

so the layer: 0.1 0.15 0.23 0.34 0.51

Example2: Get partial Close many times

balance $10.000, martin lot coef 1.5

If lot type is autolot, based on “Fixed size per 1000”, lost size 0.01.

There already 5 layer,

the layer: 0.1 0.15 0.23 0.34 0.51

and that account get partial close 1 and 5 position.

So the layer now: 0.15 0.23 0.34

if “Martin based balance / n-order” = true

the next 4th layer, (10000 / 1000 *0.01) * MathPow(1.5 , 4-1) = 0.34

so the layer: 0.15 0.23 0.34 0.34

get partial close again 1 and 4 position.

So the layer now: 0.23 0.34

the next 3th layer, (10000 / 1000 *0.01) * MathPow(1.5 , 3-1) = 0.23

because 0.23 smaller than last position 0.34. the next size layer = last lot

So the layer now: 0.23 0.34 0.34

the next 4th layer, (10000 / 1000 *0.01) * MathPow(1.5 , 4-1) = 0.34

So the layer now: 0.23 0.34 0.34 0.34

So on

So after many times partial close, martingale become like averaging with coef 1.0. I think it more safe and get low DD but disadvantage the TP will be further because size lot not increase.

if “Martin based balance / n-order” = false,

the next 4th layer, 0.051

so the layer: 0.15 0.23 0.34 0.51

get partial close again 1 and 4 position.

So the layer now: 0.23 0.34

the next 3th layer, 0.51

So the layer now: 0.23 0.34 0.51

the next 4th layer, 0.76

So the layer now: : 0.23 0.34 0.51 0.76

So on

The next martin lot increase constantly with coef 1.5