Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Irving Birger
    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 3
    • Best 0
    • Groups 0

    Posts made by Irving Birger

    • Optimization: how to change target metric

      Hi all! First of all, let me voice my appreciation for the Backtrader, I really enjoy working with it and it has the most impressive collection of tools I've seen so far. I'm particularly happy to test with multiple data feeds.

      When it comes to optimizing, I understand that it opts for the greatest profit expressed by money units. It makes sense as nobody wants to lose money. However, I think the main goal of trading systems is rather about HOW it is done, i.e., how consistent, how volatile, how correlated to other things, etc.

      Hence, my question is: how to target a different optimization metric than profits, e.g. drawdown or information ratio (AROR / annualized risk)?

      posted in General Code/Help
      Irving Birger
      Irving Birger
    • RE: Closed trade list (including MFE/MAE) analyzer

      @irving-birger said in Closed trade list (including MFE/MAE) analyzer:

      Looks amazing! Thx for the effort!

      I run into

      if trade.history[0].event.size > 0: dr = 'long'
         IndexError: list index out of range
      

      did I miss sth?

      Got it! Forgot to enable history with this:

      cerebro = bt.Cerebro(tradehistory=True)
      
      posted in Indicators/Strategies/Analyzers
      Irving Birger
      Irving Birger
    • RE: Closed trade list (including MFE/MAE) analyzer

      Looks amazing! Thx for the effort!

      I run into

      if trade.history[0].event.size > 0: dr = 'long'
         IndexError: list index out of range
      

      did I miss sth?

      posted in Indicators/Strategies/Analyzers
      Irving Birger
      Irving Birger
    • 1 / 1