Either limit the positions by script, or use the reverseLong/Short functions that limit the positions automatically.