You can use for(closed_trades) or one of the other loops, see https://zorro-project.com/manual/en/fortrades.htm (examples below)