Logging out profitable trades