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.
Best posts made by KT
-
Modify Order
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 :)
-
RE: Commission
@backtrader do you mean the name of the data or the name of the commission? Thanks :)
-
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!!
-
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 :)
-
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 :)
-
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. -
RE: Order
Thanks @backtrader !! Is it possible to access the opening price and closing price of an order?
-
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))
-
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 :)