notify_trade() not called when live
-
Related to this question: https://community.backtrader.com/topic/937/notify_trade-not-firing-on-subsequent-trades-when-using-tradeid/3
I'm using my own live broker, and trying to figure out why I never see notify_trade() called when an order is submitted (and completed), and a position is opened.
According to the official reply in that thread, notify_trade() should get called (in the broker, strategy, analyzers) when the position is opened, but I'm only seeing order_notify() called. I can confirm a position was opened, which implies a trade (open) happened and should have been notified? I've never seen trade_notify() called at all when running live, in fact.
Any clues?
-
Upon further testing, I don't get notify_trade() called even upon closing a position fully.