You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a strategy for trade. After trade with backtesting library, I have some trades list in a dataframe called trades. but the problem is closing active trades. I mean when my strategy open one or more trades at the last candles, while they are still active, the library close all of them and append them to trades dataframe. When you comment the code that close the last trades, active trades will not show in dataframe. Is there any way to get active trades in this dataframe or in another variable?
The text was updated successfully, but these errors were encountered:
I have recently published a solution based on a backtesting package, which along with stats and stats._trades also provides a last_day_result dictionary containing data for the last day.
Expected Behavior
Hello, I have a strategy for trade. After trade with backtesting library, I have some trades list in a dataframe called trades. but the problem is closing active trades. I mean when my strategy open one or more trades at the last candles, while they are still active, the library close all of them and append them to trades dataframe. When you comment the code that close the last trades, active trades will not show in dataframe. Is there any way to get active trades in this dataframe or in another variable?
The text was updated successfully, but these errors were encountered: