Skip to content

TP is a STOP_LIMIT/MARKET vs a LIMIT type #673

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

You must be logged in to vote

The running recommendation is: if you'd like to trade the price between candles, you should be using more fine-grained data (e.g. if you use daily candles, use 15-minute candles instead). AFAIK most brokers honor your stop limit prices while the market is open, but they are not immune to price gapping on market open!

But then, crypto is another story. The market is always open, and your limit order normally would have been picked at the price. I'm therefore willing to see this feature added as a parameter passed to Backtest constructor.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@racinger
Comment options

Answer selected by racinger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants