Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to open trade [Invalid stops] #4

Open
stfl opened this issue Oct 1, 2020 · 1 comment
Open

Failed to open trade [Invalid stops] #4

stfl opened this issue Oct 1, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@stfl
Copy link
Owner

stfl commented Oct 1, 2020

when running on H1 I am seeing this:

2020.10.01 16:14:39.128	2013.01.21 18:00:00   failed instant sell 0.71 AUDNZD at 1.25561 sl: 1.25756 [Invalid stops]

Is the stop loss too close? What is the spread at that time?

I need to catch this errors at runtime!

@stfl stfl changed the title Failed to open trade Failed to open trade [Invalid stops] Oct 1, 2020
@stfl stfl added the bug Something isn't working label Oct 14, 2020
@stfl
Copy link
Owner Author

stfl commented Oct 16, 2020

The distance between Entry price and the SL needs to be at least the point value.. so at least a distance of 0.0001 or 0.00001
this might be the reason.. I did not debug this because I only saw it when trying to run on the 1 hour chart...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant