# src/backtest/__init__.py
"""
Módulo de backtesting
"""
from .engine import Engine
from .strategy import Strategy, Signal
from .trade import Trade, TradeType, TradeStatus, Position
from .optimizer import ParameterOptimizer
from .visualizers.visualizer import BacktestVisualizer
from .metrics import (
    calculate_sharpe_ratio,
    calculate_sortino_ratio,
    calculate_max_drawdown,
    print_backtest_report,
    compare_strategies
)

__all__ = [
    'Engine',
    'Strategy',
    'Signal',
    'Trade',
    'TradeType',
    'TradeStatus',
    'Position',
    'ParameterOptimizer',
    'BacktestVisualizer',
    'calculate_sharpe_ratio',
    'calculate_sortino_ratio',
    'calculate_max_drawdown',
    'print_backtest_report',
    'compare_strategies',
]