Tquant Lab, Python, Backpacking, Tejapi Application.
True): context.stop_loss[f'{i}'] = 1.3*context.stop_loss[f'{i}'] context.trailing_count[f'{i}'] += 1 if (curr_price <= context.stop_loss[f'{i}']) and (context.holding[f'{i}'] == True): order_target(i, 0) sell = True context.stop_loss[f'{i}'] = None context.trailing_stop[f'{i}'] = None