Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upOption to limit order size/exposure #3
Comments
kernc
added
the
enhancement
label
Apr 30, 2019
This comment has been minimized.
This comment has been minimized.
|
Would you like to try to make a PR for it? I think API-wise, something like this might work? Strategy.buy(..., size: float = 1) # percentage of cash |
This comment has been minimized.
This comment has been minimized.
|
I would if I were a python programmer. Unfortunately I'm just hacking around... started playing with python a month ago. With that being said, it is an interesting challenge but I won't make any promise :) |
kernc
added
the
help wanted
label
May 3, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
adrianmiu commentedApr 29, 2019
Is there a way to place orders that are limited in size?
I'm working on a Forex strategy where I want to specify the size of the order based on the SL/TP levels provided by a prediction model. Your library mentions that the Strategy.buy/sell methods use "all available funds" which cannot be used in this case.
Thank you!