ValueError: Short orders require: TP < LIMIT < SL #850
CadeHalcyon
started this conversation in
General
Replies: 1 comment 3 replies
-
Your SL/TP need to be more than |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
Hi, sometimes I get the following error code when running my strategy, same can happen with long/buy orders (something like ValueError: Buy orders require TP>LIMIT>SL). I understand what this means, but not why it is happening and therefore am stumped how to resolve it. Probably something simple - grateful for any help. Thanks.
ValueError: Short orders require: TP (1.262196) < LIMIT (1.1701024400000002) < SL (1.121952)
Here's the code causing the problem in this particular instance:
Beta Was this translation helpful? Give feedback.
All reactions