I use a piece of code that will close all my positions (long or short) when the price is above the average (positionprice):
For example, if you have 4 LONG positions open, and the average price is becoming positive, then you can close them at market. The extrapip is the amount of pips you want to be positive (x number of contracts). If you want a conservative approach, you can set extrapip=0
This only works with EITHER long or short. As you know PRT doesn’t allow you to open long and short (hedging) positions at the same time, in the same strategy