-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
-
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
Beta Was this translation helpful? Give feedback.
All reactions
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
-
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.
Beta Was this translation helpful? Give feedback.