Skip to content

Trying to figure out how OCO sell orders work for Spot Trading #1073

Answered by alverelt
alverelt asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, i would appreciate if you could provide me a source to check an example of OCO sell orders, i cannot find any tutorial explaining this, also every example i see keeps track of the prices to close the position, do you have any example of how to or what is triggered when a tp or sl is hit? Thank you very much

Alright, i will auto respond, fortunately i found this blog https://greyhoundanalytics.com/blog/stop-losses-in-backtestingpy/ where it explains how stop-loss works on backtesting.py and from there i could figure out how to make the OCO sell order.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alverelt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant