ivolatility-backtesting 1.11.0__py3-none-any.whl → 1.12.0__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 ivolatility-backtesting might be problematic. Click here for more details.

@@ -19,6 +19,7 @@ import psutil
19
19
  import warnings
20
20
  from itertools import product
21
21
  import sys
22
+ import gc
22
23
  from typing import Dict, List, Optional, Tuple, Union, Any
23
24
  warnings.filterwarnings('ignore', category=pd.errors.SettingWithCopyWarning)
24
25
  warnings.filterwarnings('ignore', message='.*SettingWithCopyWarning.*')
@@ -3255,6 +3256,11 @@ def optimize_parameters(base_config, param_grid, strategy_function,
3255
3256
 
3256
3257
  results.append(result)
3257
3258
 
3259
+ # ═══ MEMORY CLEANUP AFTER EACH TEST ═══
3260
+ # Delete large objects to free RAM for next iteration
3261
+ del analyzer, test_config
3262
+ gc.collect()
3263
+
3258
3264
  # Show intermediate summary every 10 combinations (or at end)
3259
3265
  if idx % 10 == 0 or idx == total_combinations:
3260
3266
  valid_so_far = [r for r in results if r['is_valid']]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ivolatility_backtesting
3
- Version: 1.11.0
3
+ Version: 1.12.0
4
4
  Summary: A universal backtesting framework for financial strategies using the IVolatility API.
5
5
  Author-email: IVolatility <support@ivolatility.com>
6
6
  Project-URL: Homepage, https://ivolatility.com
@@ -0,0 +1,7 @@
1
+ ivolatility_backtesting/__init__.py,sha256=MWcT7Bb8svHsOouQYMBkwwNzscbZmGN8UCEh2KwT7uY,1616
2
+ ivolatility_backtesting/ivolatility_backtesting.py,sha256=3jKzE1fYXPQWENG6OdBrRRu_ASaHS4vpGQggpRzYCI0,176956
3
+ ivolatility_backtesting-1.12.0.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ ivolatility_backtesting-1.12.0.dist-info/METADATA,sha256=IayxoVNFPUsOba2T--UnZitlOL-bqLHcByN8UBxKTjI,2053
5
+ ivolatility_backtesting-1.12.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ ivolatility_backtesting-1.12.0.dist-info/top_level.txt,sha256=Qv3irUBntr8b11WIKNN6zzCSguwaWC4nWR-ZKq8NsjY,24
7
+ ivolatility_backtesting-1.12.0.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- ivolatility_backtesting/__init__.py,sha256=MWcT7Bb8svHsOouQYMBkwwNzscbZmGN8UCEh2KwT7uY,1616
2
- ivolatility_backtesting/ivolatility_backtesting.py,sha256=zadTyKX7oPvQxlfypUPefsMT7gyOmCEoF4D9syyjWx8,176739
3
- ivolatility_backtesting-1.11.0.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- ivolatility_backtesting-1.11.0.dist-info/METADATA,sha256=nybQGafikOlbVV__Q0KAJ_Dkhhyjc_xY0UT_drGHqCE,2053
5
- ivolatility_backtesting-1.11.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- ivolatility_backtesting-1.11.0.dist-info/top_level.txt,sha256=Qv3irUBntr8b11WIKNN6zzCSguwaWC4nWR-ZKq8NsjY,24
7
- ivolatility_backtesting-1.11.0.dist-info/RECORD,,