Rounded size? #602
Unanswered
zaferyumruk
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Do you mean backtesting.py/backtesting/backtesting.py Lines 208 to 209 in 8b83b35 If fractional units were allowed (e.g. 3.6 units) only for >1, this would create a weird dichotomy with interval (0, 1), which is interpreted as "proportional share of current equity" (e.g. 5%). It was an up-front design decision. See also: #134 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why the following constraint exists in a design perspective? What is the benefit of using rounded size?
-1 < size < 1 or round(size) == size
Beta Was this translation helpful? Give feedback.
All reactions