At the bottom of the window, on the position tab, select the positions you want to merge by selecting them from the first column. Then right-click on one of the positions and choose “Merge Selected.

To calculate the price of the future position, multiply the price of each position by the amount of the position and add the results together. Then you divide this number by the total amount of positions.

If the two positions have the same value, just add the prices and divide the result by 2. It works the same way for two long positions.

If the orders are going in opposite directions, the new price will be the same as the largest order.