Backtrader Community

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

    strazak

    @strazak

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

    strazak Unfollow Follow

    Latest posts made by strazak

    • Start strategy from 2008 even if some stocks was listed later

      Hello guys,
      I prepared the following strategy based on some fundamental indicators I select 10 stock each month and buy them. Now my current output is a map where the key is a date of entry and as value, I have a map where the key is a stock and the value is the percent of the portfolio to invest.
      Something like this:
      2018-01-29: {'JPM': 0,5, 'AAPL': 0,5}
      I wanted to apply this map to bakctrader to see the strategy analyzer outputs to select the best fundamental indicators.

      Now I have a problem as for example when my calculation output is done for 2008-2021 range a lot of stocks was not listed in 2008 and backtrader is not able to start from 2008. Is any workaround for this?

      posted in General Code/Help
      S
      strazak