-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
-
I am testing on continuous futures contracts and because of that I have negative price values, this is very common. Take a look at HO ticker. I am running into the issue of an assertion error because of my negative values and negative stop loss values associated. This assertion needs to be removed
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments
-
This is within the Trade Class under the following method:
def __set_contingent(self, type, price):
assert type in ('sl', 'tp')
assert price is None or 0 < price < np.inf
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
-
@kernc I have put the fix in my forked branch. I can add this to your repo if wanted
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment