Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. manos
    3. Topics
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 8
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by manos

    • M

      notify_trade() not called when live
      Indicators/Strategies/Analyzers • • manos

      2
      0
      Votes
      2
      Posts
      328
      Views

      M

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

    • M

      Position management techniques
      General Discussion • • manos

      1
      0
      Votes
      1
      Posts
      169
      Views

      No one has replied

    • M

      What is broker.getvalue() supposed to return?
      General Discussion • • manos

      6
      0
      Votes
      6
      Posts
      1892
      Views

      Chen Xu

      I think it makes sense to have broker.getvalues(datas=None) to get all the position values plus the cash.

      But it is very confusing to have broker.getvalues([datas[j]]) return all the next position values from ticker j plus all the cash in the broker?

      IMHO, it is better designed in the way such coherence is expected that all_the_cash_in_the_broker + sum([broker.get_values(datas=[d]) for d in datas) == broker.get_values()

    • 1 / 1