Refactor TrendDetectorSimple by removing redundant method definitions for trend detection and plotting, streamlining the code for better readability.

This commit is contained in:
Simon Moisy 2025-05-09 12:27:40 +08:00
parent b0ffedc6af
commit c7732881c5

View File

@ -73,7 +73,6 @@ class TrendDetectorSimple:
self.logger.info(f"Initialized TrendDetectorSimple with {len(self.data)} data points")
def detect_trends(self):
def detect_trends(self):
"""
Detect trends by identifying local minima and maxima in the price data
@ -148,7 +147,6 @@ class TrendDetectorSimple:
return result, analysis_results
def plot_trends(self, trend_data, analysis_results):
def plot_trends(self, trend_data, analysis_results):
"""
Plot the price data with detected trends using a candlestick chart.