ESB has two ways of managing target profit and maximum loss for grid systems.
MODE1->Every Position has its own TP/SL: In this mode, every position has its own Takeprofit and Stoploss. This means that ESB sets a fixed TP and SL for every position and then waits for all positions to get TP or SL.
MODE2->Check Total Profit/Loss: In this mode, ESB uses a target overall profit and maximum loss of all positions. ESB closes grid as overall profit reaches the target of maximum loss is reached.