better pivots

This commit is contained in:
Dobromir Popov
2025-05-31 00:33:07 +03:00
parent 7a0e468c3e
commit 3a748daff2
3 changed files with 175 additions and 108 deletions

View File

@ -37,7 +37,7 @@ def test_pivot_normalization_system():
# Initialize data provider
symbols = ['ETH/USDT'] # Test with ETH only
timeframes = ['1s', '1m', '1h']
timeframes = ['1s']
logger.info("Initializing DataProvider with pivot-based normalization...")
data_provider = DataProvider(symbols=symbols, timeframes=timeframes)
@ -52,11 +52,11 @@ def test_pivot_normalization_system():
try:
# This will trigger monthly data collection and pivot analysis
logger.info(f"Testing monthly data collection for {symbol}...")
monthly_data = data_provider._collect_monthly_1s_data(symbol)
monthly_data = data_provider._collect_monthly_1m_data(symbol)
if monthly_data is not None:
print(f"✅ Monthly data collection SUCCESS")
print(f" 📊 Collected {len(monthly_data):,} 1s candles")
print(f" 📊 Collected {len(monthly_data):,} 1m candles")
print(f" 📅 Period: {monthly_data['timestamp'].min()} to {monthly_data['timestamp'].max()}")
print(f" 💰 Price range: ${monthly_data['low'].min():.2f} - ${monthly_data['high'].max():.2f}")
print(f" 📈 Volume range: {monthly_data['volume'].min():.2f} - {monthly_data['volume'].max():.2f}")