Try strategy.exit
if strategy.position_size > 0 strategy.exit( id = 'Long Exit', from_entry = 'Long', stop = today_low, limit = 400)