investing-algorithm-framework 7.16.17__py3-none-any.whl → 7.16.19__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of investing-algorithm-framework might be problematic. Click here for more details.

@@ -104,8 +104,12 @@ class BacktestMetrics:
104
104
  still open at the end of the backtest.
105
105
  win_rate (float): The win rate of the trades, expressed
106
106
  as a percentage.
107
+ current_win_rate (float): The current win rate of the trades,
108
+ including open trades.
107
109
  win_loss_ratio (float): The ratio of winning trades
108
110
  to losing trades.
111
+ current_win_loss_ratio (float): The current ratio of winning
112
+ trades to losing trades, including open trades.
109
113
  percentage_winning_months (float): The percentage of months
110
114
  with positive returns.
111
115
  percentage_winning_years (float): The percentage of years with
@@ -193,7 +197,9 @@ class BacktestMetrics:
193
197
  number_of_trades_opened: int = 0
194
198
  number_of_trades_open_at_end: int = 0
195
199
  win_rate: float = 0.0
200
+ current_win_rate: float = 0.0
196
201
  win_loss_ratio: float = 0.0
202
+ current_win_loss_ratio: float = 0.0
197
203
  percentage_winning_months: float = 0.0
198
204
  percentage_winning_years: float = 0.0
199
205
  average_monthly_return: float = 0.0
@@ -286,8 +292,12 @@ class BacktestMetrics:
286
292
  "average_trade_duration": self.average_trade_duration,
287
293
  "average_trade_size": self.average_trade_size,
288
294
  "number_of_trades": self.number_of_trades,
295
+ "number_of_trades_closed": self.number_of_trades_closed,
296
+ "number_of_trades_opened": self.number_of_trades_opened,
289
297
  "win_rate": self.win_rate,
298
+ "current_win_rate": self.current_win_rate,
290
299
  "win_loss_ratio": self.win_loss_ratio,
300
+ "current_win_loss_ratio": self.current_win_loss_ratio,
291
301
  "percentage_winning_months": self.percentage_winning_months,
292
302
  "percentage_winning_years": self.percentage_winning_years,
293
303
  "average_monthly_return": self.average_monthly_return,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: investing-algorithm-framework
3
- Version: 7.16.17
3
+ Version: 7.16.19
4
4
  Summary: A framework for creating trading bots
5
5
  Author: MDUYN
6
6
  Requires-Python: >=3.10
@@ -87,7 +87,7 @@ investing_algorithm_framework/domain/backtesting/__init__.py,sha256=q-NejGHzE233
87
87
  investing_algorithm_framework/domain/backtesting/backtest.py,sha256=mS7JdPTXhw5AQrQ-krXWtpNsBbVVYkxc1lBSoPhCqoQ,15617
88
88
  investing_algorithm_framework/domain/backtesting/backtest_date_range.py,sha256=e_V7HMdtln4uu87jwwa_Yr7ZesgrpFqsEqtr0e0DTto,3186
89
89
  investing_algorithm_framework/domain/backtesting/backtest_evaluation_focuss.py,sha256=D__3I_TSxDVnGtlddmWt4wHcqut8MGyYMf1IfQZXYJ0,7547
90
- investing_algorithm_framework/domain/backtesting/backtest_metrics.py,sha256=HR0bEDT3xh-TQq50PLDcKhYggjtnE-JTRuY2TlXz54w,19552
90
+ investing_algorithm_framework/domain/backtesting/backtest_metrics.py,sha256=gfiuNhT15UpY5l02onknf7D5wHJfeUKodlnG9FV5I1E,20120
91
91
  investing_algorithm_framework/domain/backtesting/backtest_permutation_test.py,sha256=8JXdu3EgFh2f2Yc41OYwIBwlYtjFiumyAJUrN5kL078,6703
92
92
  investing_algorithm_framework/domain/backtesting/backtest_run.py,sha256=ffQgilEkyixGrGvKeCZF670OPoY3ljixlgsXPajHpZY,14310
93
93
  investing_algorithm_framework/domain/backtesting/backtest_summary_metrics.py,sha256=OUZPh9uYPxorb45vlkrt5Sc2unx2hSzGmzqDrEu3w-I,6795
@@ -252,8 +252,8 @@ investing_algorithm_framework/services/trade_order_evaluator/default_trade_order
252
252
  investing_algorithm_framework/services/trade_order_evaluator/trade_order_evaluator.py,sha256=pNnmgaKMR9RY6Kxq7xS0nURKoaQDe2ehrP5GfElkkcI,1328
253
253
  investing_algorithm_framework/services/trade_service/__init__.py,sha256=AcwPyJjDRdiREnl_MWMkDSc-V-ZjXtvpHD6eQT9mc1o,68
254
254
  investing_algorithm_framework/services/trade_service/trade_service.py,sha256=OtzIS5EebByGcqDvV2AFeBjXSarvrgubMXDaVKg6Rbw,41193
255
- investing_algorithm_framework-7.16.17.dist-info/LICENSE,sha256=wbVEDvoZiMPHufRY3sLEffvAr7GH5hOIngHF8y4HFQg,11343
256
- investing_algorithm_framework-7.16.17.dist-info/METADATA,sha256=ZnSJfpRXP0z-_feicERH_ow4vphAUYQWdtvCcgy_eEY,19636
257
- investing_algorithm_framework-7.16.17.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
258
- investing_algorithm_framework-7.16.17.dist-info/entry_points.txt,sha256=jrPF0YksDs27vYzEvj3tXLe3OGWU24EJA05z5xHqmq8,91
259
- investing_algorithm_framework-7.16.17.dist-info/RECORD,,
255
+ investing_algorithm_framework-7.16.19.dist-info/LICENSE,sha256=wbVEDvoZiMPHufRY3sLEffvAr7GH5hOIngHF8y4HFQg,11343
256
+ investing_algorithm_framework-7.16.19.dist-info/METADATA,sha256=rSp7ArkSXNK46vN_dmN-lhPCaIX32LFbo4ShWzgaWwg,19636
257
+ investing_algorithm_framework-7.16.19.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
258
+ investing_algorithm_framework-7.16.19.dist-info/entry_points.txt,sha256=jrPF0YksDs27vYzEvj3tXLe3OGWU24EJA05z5xHqmq8,91
259
+ investing_algorithm_framework-7.16.19.dist-info/RECORD,,