Backtrader Community

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

    Posts made by Tornar Yang

    • RE: Commission Setting

      @run-out thanks, I am using percentage sizer which should only use 100% of my cash. Or was it percentage of something else?

      posted in General Discussion
      Tornar Yang
      Tornar Yang
    • Commission Setting

      Hi,

      When I set a percentage commission in the engine, I get a lot of rejected trades.

          cerebro.broker.setcash(10000)
          cerebro.broker.setcommission(commission=0.018,margin=False)
          cerebro.addsizer(bt.sizers.PercentSizer,percents=100) 
      

      If I set comission to 0, or set it to a low figure, I don't have this problem. Any advice what could have caused this?

      Tornar

      posted in General Discussion
      Tornar Yang
      Tornar Yang
    • 1 / 1