From c7732881c5dc05a0ca302cfb0b5b8f5d83943a1f Mon Sep 17 00:00:00 2001 From: Simon Moisy Date: Fri, 9 May 2025 12:27:40 +0800 Subject: [PATCH] Refactor TrendDetectorSimple by removing redundant method definitions for trend detection and plotting, streamlining the code for better readability. --- trend_detector_simple.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/trend_detector_simple.py b/trend_detector_simple.py index 5e92e05..efe77b1 100644 --- a/trend_detector_simple.py +++ b/trend_detector_simple.py @@ -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.