Skip to content

STOP LOSS not REGISTERING AS A TRADE #14

@mik-s

Description

@mik-s

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions