Navigation

    Backtrader Community

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

    Abhay Jindal

    @Abhay Jindal

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

    Abhay Jindal Unfollow Follow

    Latest posts made by Abhay Jindal

    • Error in multi-core optimization
      1. I am getting the following error when I run multi-core optimization.
        AttributeError: Can't pickle local object 'GenericCSVData.start.<locals>.<lambda>'

      2. Also, how can I close all my open positions or get the total (realized+unrealized) profit after each optimization run? Currently, I am getting only the realized PnL using the following line in the stop function.
        round(self.broker.get_value(), 2)

      posted in General Code/Help
      Abhay Jindal
      Abhay Jindal
    • Implement stop loss

      I am executing a buy (market) order on the next candles opening price after my strategy gives signal to buy. My stop loss is a function of the price at which the order is executed. How should I implement this stoploss in backtrader

      posted in Indicators/Strategies/Analyzers
      Abhay Jindal
      Abhay Jindal