Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

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

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.

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

AltStyle によって変換されたページ (->オリジナル) /