Trade Size with fixed amount in $ ? #401
Unanswered
pliciwebstephane
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Seconded.
which kind of suggests there is no way to trade in equal-dollar positions. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Buying for fixed $100 is rather easy: price = self.data.Close[-1]
size = 100 // price
if size:
self.buy(size=size, ...) In case of Bitcoin, one would first need to convert that to non-fractional uBTC or satoshis. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is there a way to open a position with fixed amount, for exemple 100 $ .
Because, using size = 1, is to simulate buying one asset (for sample, if BTC is at 35000 $ , is for buying 1 BTC with 35000 $).
100 $ is 0,002857143 BTC
But if i open a position with size = 0,002857143, it is not 0,002857143 BTC but it is 0.2857143% of my wallet.
Is there a way to simulate a fixed amount of buying ?
Sorry for my poor english... :)
Beta Was this translation helpful? Give feedback.
All reactions