try to fix live RT updates on ANNOTATE
This commit is contained in:
@@ -121,9 +121,9 @@ class WilliamsMarketStructure:
|
||||
# Restore original pivot distance
|
||||
self.min_pivot_distance = original_distance
|
||||
|
||||
logger.info(f"Calculated {len(self.pivot_levels)} pivot levels from {len(ohlcv_data)} candles")
|
||||
logger.debug(f"Calculated {len(self.pivot_levels)} pivot levels from {len(ohlcv_data)} candles")
|
||||
for level_num, level_data in self.pivot_levels.items():
|
||||
logger.info(f" L{level_num}: {len(level_data.pivot_points)} pivots")
|
||||
logger.debug(f" L{level_num}: {len(level_data.pivot_points)} pivots")
|
||||
|
||||
return self.pivot_levels
|
||||
|
||||
@@ -185,7 +185,7 @@ class WilliamsMarketStructure:
|
||||
)
|
||||
pivots.append(pivot)
|
||||
|
||||
logger.info(f"Level 1: Found {len(pivots)} pivot points from {len(df)} candles")
|
||||
logger.debug(f"Level 1: Found {len(pivots)} pivot points from {len(df)} candles")
|
||||
return pivots
|
||||
|
||||
except Exception as e:
|
||||
@@ -272,7 +272,7 @@ class WilliamsMarketStructure:
|
||||
# Sort pivots by timestamp
|
||||
pivots.sort(key=lambda x: x.timestamp)
|
||||
|
||||
logger.info(f"Level {level}: Found {len(pivots)} pivot points (from {len(highs)} highs, {len(lows)} lows)")
|
||||
logger.debug(f"Level {level}: Found {len(pivots)} pivot points (from {len(highs)} highs, {len(lows)} lows)")
|
||||
return pivots
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user