Navigation

    Backtrader Community

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

    KT

    @KT

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

    KT Unfollow Follow

    Best posts made by KT

    • Modify Order

      Hi! I would like to check how to modify the order that has been submitted but not executed. I would like to change the stopping price of sell_bracket order after it has been submitted.

      posted in General Discussion
      K
      KT

    Latest posts made by KT

    • Broker with different multiplier for different dataset

      Hi! I am currently coding a strategy that will be applied simultaneously to different datasets. I would like to check how to set broker with unique multiplier for each datasets.

      Also, when I try to plot the data, it gives an error as there are many plots to be plotted. Is it possible if I only plot the equity line.

      Thanks for helping :)

      posted in General Discussion
      K
      KT
    • RE: Commission

      @backtrader do you mean the name of the data or the name of the commission? Thanks :)

      posted in Indicators/Strategies/Analyzers
      K
      KT
    • Commission

      Hi @backtrader ! Just wanna check whether it is possible to add two commission scheme for two different datasets. Let say commission scheme one has multiplier of 1 for self.data0 and commission scheme two has multiplier of 2 for self.data1 and we are trading using these two datasets simulataneously.

      Thanks!!

      posted in Indicators/Strategies/Analyzers
      K
      KT
    • Closing All Orders

      Hi! How do I close all the orders before the end of the session?

      I found out that there are multiple ways to execute it such as self.close() and using Order.Close. However, I don't know how to code it or where to execute it.

      Thanks for the help :)

      posted in General Discussion
      K
      KT
    • RE: Order

      @Curtis-Miller Thanks!! I will check the PyFolio

      posted in General Discussion
      K
      KT
    • Order Validity

      Hi!! Is it possible to set the validity of an order until the next bar instead of using dates? If yes, how do I do it?

      Thanks :)

      posted in General Discussion
      K
      KT
    • RE: Order

      Thanks @backtrader . For the order's opening price and closing price, how do i check the value of the opening and closing price?

      Also, for the statistics that are provided by backtrader, can we check for the following info too ? The info includes
      largest profit trade, largest loss trade, average profit trade, average loss trade, maximum number of consecutive wins, maximum number of consecutive loss, and number of trades.

      posted in General Discussion
      K
      KT
    • RE: Order

      Thanks @backtrader !! Is it possible to access the opening price and closing price of an order?

      posted in General Discussion
      K
      KT
    • RE: Order

      Thanks @backtrader ! For the case of multiple data feeds, is it possible to refer to the trade.pnl of each dataset? (Maybe sth like Trade.pnl(self.data1))

      posted in General Discussion
      K
      KT
    • Order

      Hi! I would like to clarify for the definition of order.executed.value and how the trade.pnl is calculated in backtrader.

      If I am using multiple datasets, is it possible if I calculate trade.pnl for each datasets? And if I am backtesting for FX, how do i obtain the net profit in terms of pips?

      Thankss :)

      posted in General Discussion
      K
      KT