Backtrader Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Олег Шпагин
    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 1
    • Followers 0
    • Topics 1
    • Posts 8
    • Best 2
    • Controversial 0
    • Groups 0

    Олег Шпагин

    @Олег Шпагин

    2
    Reputation
    2
    Profile views
    8
    Posts
    0
    Followers
    1
    Following
    Joined Last Online

    Олег Шпагин Unfollow Follow

    Best posts made by Олег Шпагин

    • Can you please approve

      Hello @backtrader! Can you please approve https://github.com/mementum/backtrader/pull/472 these changes?

      1. added posibitity for Black theme for charts
      2. added posibitity to run on matplotlib 3.6+
      3. added posibitity to run on Python 3.9+
        Thanks!
      posted in General Discussion
      Олег Шпагин
      Олег Шпагин
    • RE: problem newly happened

      @backtrader Hello! Can you please approve these changes https://github.com/mementum/backtrader/pull/472 ?

      1st commit: Option to change background for plotted value tags for dark theme - to get dark theme)))
      When you use dark theme you need to change background for plotted value tags.

      2nd commit: Fix: In last Python versions collections.Iterable -> collections.abcIterable - to work with Python 3.11+

      **3rd commit: Fix: The set_view_interval, set_data_interval ... are removed. Now you can work with matplotlib > 3.6.x

      Please review and approve it if you have time. Thanks!

      posted in General Code/Help
      Олег Шпагин
      Олег Шпагин

    Latest posts made by Олег Шпагин

    • RE: Can you please approve

      @backtrader Thanks a lot! )

      posted in General Discussion
      Олег Шпагин
      Олег Шпагин
    • RE: Can you please approve

      @backtrader Hello)) Thanks a lot! Can you please approve another change https://github.com/mementum/backtrader/pull/479 - this is to fix simulated orders. Thanks.

      posted in General Discussion
      Олег Шпагин
      Олег Шпагин
    • RE: Can you please approve

      @backtrader Thanks, a lot! It would be great!!

      posted in General Discussion
      Олег Шпагин
      Олег Шпагин
    • RE: problem newly happened

      @backtrader Hello! Can you please approve these changes https://github.com/mementum/backtrader/pull/472 ?

      1st commit: Option to change background for plotted value tags for dark theme - to get dark theme)))
      When you use dark theme you need to change background for plotted value tags.

      2nd commit: Fix: In last Python versions collections.Iterable -> collections.abcIterable - to work with Python 3.11+

      **3rd commit: Fix: The set_view_interval, set_data_interval ... are removed. Now you can work with matplotlib > 3.6.x

      Please review and approve it if you have time. Thanks!

      posted in General Code/Help
      Олег Шпагин
      Олег Шпагин
    • Can you please approve

      Hello @backtrader! Can you please approve https://github.com/mementum/backtrader/pull/472 these changes?

      1. added posibitity for Black theme for charts
      2. added posibitity to run on matplotlib 3.6+
      3. added posibitity to run on Python 3.9+
        Thanks!
      posted in General Discussion
      Олег Шпагин
      Олег Шпагин
    • RE: Execution price problem with order for multiple stocks

      Hello! I am using the same construction, and all seems OK:

                  self.log(ticker + f": >>> BUY ORDER '{order.info.level_name}' COMPLETED at {order.executed.price:.{globals.f_decimal[ticker]}f} price, "
                                    f"size = {order.size}, Cost={order.executed.value:.2f}, Comm={order.executed.comm:.2f}, "
                                    f"DEPO={self.cerebro.broker.getcash():.2f}, Was Created={order.info.created_date}")
                  self.log_for_csv(ticker=ticker, level_name=order.info.level_name, order='BUY',
                                   order_price=f"{order.executed.price:.{globals.f_decimal[ticker]}f}",
                                   size=order.size, status=order.getstatusname(order.status),
                                   cost=f"{order.executed.value:.2f}",
                                   comm=f"{order.executed.comm:.2f}", amount="?", bar_high=order.data.high[0], bar_low=order.data.low[0])
      

      Have you resolved your problem?

      posted in General Code/Help
      Олег Шпагин
      Олег Шпагин
    • RE: Execution price problem with order for multiple stocks

      Hello! )) Please resend your screen shots again.

      posted in General Code/Help
      Олег Шпагин
      Олег Шпагин