Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    notify_trade() not called when live

    Indicators/Strategies/Analyzers
    1
    2
    243
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      manos last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • M
        manos last edited by

        Upon further testing, I don't get notify_trade() called even upon closing a position fully.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018, 2019, 2020, 2021 NodeBB Forums | Contributors