Skip to content

inaccurate trades number #264

Answered by kernc
kfkf9999 asked this question in Q&A
Feb 23, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Buy and sell methods, by default, make orders for size equivalent to full free equity (available cash + margin), which fluctuates in time depending on the underlying OHLC values.

You might want to consider passing explicit buy/sell size= parameter.

Alternatively, you should be able to control the explicit closing of trades with trade.close() or position.close().

Replies: 2 comments 2 replies

Comment options

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

Answer selected by kfkf9999
Comment options

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

kernc Apr 9, 2022
Maintainer

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