docs: update backtesting research, optimizer, ADX and visual analysis
This commit is contained in:
@@ -42,14 +42,14 @@ def test_optimizer():
|
||||
)
|
||||
|
||||
log.info("\n📥 Cargando datos...")
|
||||
end_date = datetime.now()
|
||||
start_date = end_date - timedelta(days=60)
|
||||
# end_date = datetime.now()
|
||||
# start_date = end_date - timedelta(days=60)
|
||||
|
||||
data = storage.load_ohlcv(
|
||||
symbol='BTC/USDT',
|
||||
timeframe='1h',
|
||||
start_date=start_date,
|
||||
end_date=end_date,
|
||||
start_date=None,
|
||||
end_date=None,
|
||||
use_cache=False
|
||||
)
|
||||
|
||||
@@ -66,9 +66,11 @@ def test_optimizer():
|
||||
|
||||
# Definir parámetros a probar (pequeño para empezar)
|
||||
param_grid = {
|
||||
'fast_period': [5, 10, 15],
|
||||
'fast_period': [10, 15],
|
||||
'slow_period': [30, 50],
|
||||
'ma_type': ['sma', 'ema']
|
||||
'ma_type': ['sma', 'ema'],
|
||||
'use_adx': [True],
|
||||
'adx_threshold': [20, 25, 30]
|
||||
}
|
||||
|
||||
log.info(f"\n📊 Grid de parámetros:")
|
||||
|
||||
Reference in New Issue
Block a user