He meant that you should loop through all open trades and count the trades with the desired algo.