Skip to content

Instantly share code, notes, and snippets.

@saleh-old
Created June 9, 2020 07:57
Show Gist options
  • Save saleh-old/7d3c604598840f26db5b6d9aeb5d8a5d to your computer and use it in GitHub Desktop.
Save saleh-old/7d3c604598840f26db5b6d9aeb5d8a5d to your computer and use it in GitHub Desktop.
def on_reduced_position(self):
self.stop_loss = self.position.qty, self.position.entry_price
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment