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

STOP LOSS not REGISTERING AS A TRADE #14

Open
mik-s opened this issue Aug 21, 2023 · 0 comments
Open

STOP LOSS not REGISTERING AS A TRADE #14

mik-s opened this issue Aug 21, 2023 · 0 comments

Comments

@mik-s
Copy link

mik-s commented Aug 21, 2023

When a stop loss is hit there is no signal being generated back to backtrader. I've worked with direct borker APIs like OANDA and when a SL is triggered, notify_trade would occur. For that signal, logic could be set around SL management.
I've placed print statements throughout the mt5store and mt5broker methods and nothing is being triggered when a stop loss is hit. However, when a position is manually closed using the MT5 terminal, a signal is caught be Backtrader - verifying that there is feedback coming from mt5 on orders/trades.
Any thoughts on what could be causing this? Does it happen to others as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant