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

Error: incompatibility with pyramiding #56

Open
eth-man opened this issue Jul 19, 2022 · 1 comment
Open

Error: incompatibility with pyramiding #56

eth-man opened this issue Jul 19, 2022 · 1 comment
Labels
bug Something isn't working
Projects

Comments

@eth-man
Copy link

eth-man commented Jul 19, 2022

i had this strategy running well for a few days with pyramiding settings at 2 orders ,take profit orders at 4
seems like the second buy and 4 take profit orders executed instantly
any idea what can cause this issue?

image

thanks

@AlbertoCuadra AlbertoCuadra added the bug Something isn't working label Jul 28, 2022
@AlbertoCuadra
Copy link
Owner

Hello @eth-man, thanks for reporting the bug.

At the moment, the algorithm is incompatible with pyramiding. The Take Profit (TP) orders are assigned to a constant id ('Long' or 'Short'). As a consecuence, e.g., in the case of a long position, if is opened at a price higher than a previous TP order, the strategy will set instantaneously the TP orders that were satisfied.

@AlbertoCuadra AlbertoCuadra pinned this issue Jul 28, 2022
@AlbertoCuadra AlbertoCuadra changed the title strategy seems to execute unexpected sell buy orders Error: incompatibility with pyramiding Jul 28, 2022
@AlbertoCuadra AlbertoCuadra added this to Future in Roadmap Jul 28, 2022
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
Roadmap
Future
Development

No branches or pull requests

2 participants