ivolatility-backtesting 1.1.0__py3-none-any.whl → 1.39__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.
- ivolatility_backtesting/__init__.py +48 -12
- ivolatility_backtesting/ivolatility_backtesting.py +11943 -735
- {ivolatility_backtesting-1.1.0.dist-info → ivolatility_backtesting-1.39.dist-info}/METADATA +72 -70
- ivolatility_backtesting-1.39.dist-info/RECORD +7 -0
- {ivolatility_backtesting-1.1.0.dist-info → ivolatility_backtesting-1.39.dist-info}/WHEEL +1 -1
- ivolatility_backtesting-1.1.0.dist-info/RECORD +0 -7
- {ivolatility_backtesting-1.1.0.dist-info → ivolatility_backtesting-1.39.dist-info/licenses}/LICENSE +0 -0
- {ivolatility_backtesting-1.1.0.dist-info → ivolatility_backtesting-1.39.dist-info}/top_level.txt +0 -0
|
@@ -1,17 +1,53 @@
|
|
|
1
1
|
from .ivolatility_backtesting import (
|
|
2
|
-
BacktestResults, BacktestAnalyzer, ResultsReporter,
|
|
3
|
-
ChartGenerator, ResultsExporter, run_backtest,
|
|
4
|
-
init_api,
|
|
2
|
+
BacktestResults, BacktestAnalyzer, ResultsReporter,
|
|
3
|
+
ChartGenerator, ResultsExporter, run_backtest, run_backtest_with_stoploss,
|
|
4
|
+
init_api, api_call, APIHelper, APIManager, get_api_data, is_api_response_valid,
|
|
5
|
+
ResourceMonitor, create_progress_bar, update_progress, format_time,
|
|
6
|
+
StopLossManager, PositionManager, StopLossConfig,
|
|
7
|
+
calculate_stoploss_metrics, print_stoploss_section, create_stoploss_charts,
|
|
8
|
+
create_stoploss_comparison_chart,
|
|
9
|
+
optimize_parameters, plot_optimization_results,
|
|
10
|
+
create_optimization_folder,
|
|
11
|
+
preload_options_data,
|
|
12
|
+
STRATEGIES, StrategyRegistry, detect_strategy_type, format_params_string,
|
|
13
|
+
preload_data_universal, # NEW: Universal preloader V2
|
|
14
|
+
safe_get_greek, collect_garbage, # Helper functions
|
|
15
|
+
get_option_by_strike_exp, # NEW: Universal option lookup (works with any endpoint)
|
|
16
|
+
apply_optimization_preset, list_optimization_presets,
|
|
17
|
+
calculate_combinations_count, print_preset_info,
|
|
18
|
+
get_cache_config, UniversalCacheManager,
|
|
19
|
+
_process_options_df,
|
|
20
|
+
precalculate_indicators_from_config, build_indicator_lookup,
|
|
21
|
+
INDICATOR_REGISTRY, auto_calculate_lookback_period,
|
|
22
|
+
calculate_iv_lean_from_ivx, preload_ivx_zscore_cache,
|
|
23
|
+
calculate_iv_percentile_from_ivx, # For earnings strategies
|
|
24
|
+
configure_baseline_stop_loss # For optimization baseline
|
|
5
25
|
)
|
|
6
26
|
|
|
7
27
|
__all__ = [
|
|
8
|
-
'BacktestResults',
|
|
9
|
-
'
|
|
10
|
-
'
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'
|
|
28
|
+
'BacktestResults', 'BacktestAnalyzer', 'ResultsReporter',
|
|
29
|
+
'ChartGenerator', 'ResultsExporter', 'run_backtest', 'run_backtest_with_stoploss',
|
|
30
|
+
'init_api', 'api_call', 'APIHelper', 'APIManager', 'get_api_data', 'is_api_response_valid',
|
|
31
|
+
'ResourceMonitor', 'create_progress_bar', 'update_progress', 'format_time',
|
|
32
|
+
'StopLossManager', 'PositionManager', 'StopLossConfig',
|
|
33
|
+
'calculate_stoploss_metrics', 'print_stoploss_section', 'create_stoploss_charts',
|
|
34
|
+
'create_stoploss_comparison_chart',
|
|
35
|
+
'optimize_parameters', 'plot_optimization_results',
|
|
36
|
+
'create_optimization_folder',
|
|
37
|
+
'preload_options_data',
|
|
38
|
+
'STRATEGIES', 'StrategyRegistry', 'detect_strategy_type', 'format_params_string',
|
|
39
|
+
'preload_data_universal', # NEW: Universal preloader V2
|
|
40
|
+
'safe_get_greek', 'collect_garbage', # Helper functions
|
|
41
|
+
'get_option_by_strike_exp', # NEW: Universal option lookup (works with any endpoint)
|
|
42
|
+
'apply_optimization_preset', 'list_optimization_presets',
|
|
43
|
+
'calculate_combinations_count', 'print_preset_info',
|
|
44
|
+
'get_cache_config', 'UniversalCacheManager',
|
|
45
|
+
'_process_options_df',
|
|
46
|
+
# Indicator pre-calculation (v2.27.3+)
|
|
47
|
+
'precalculate_indicators_from_config', 'build_indicator_lookup',
|
|
48
|
+
'INDICATOR_REGISTRY', 'auto_calculate_lookback_period',
|
|
49
|
+
# IV Lean / Z-Score functions
|
|
50
|
+
'calculate_iv_lean_from_ivx', 'preload_ivx_zscore_cache',
|
|
51
|
+
'calculate_iv_percentile_from_ivx', # For earnings strategies
|
|
52
|
+
'configure_baseline_stop_loss' # For optimization baseline
|
|
17
53
|
]
|