Skip to content

How to entry trade on next candle? #834

Answered by kernc
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

IOW, you:

self.position.close()
self.buy(...)

This places two orders to be executed when the next candle opens.

If you want to skip a candle, simply consider it all as a state machine.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@ghost
Comment options

@kernc
Comment options

kernc Dec 8, 2022
Maintainer

@ghost
Comment options

@kernc
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
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