Refactor TrendDetectorSimple by removing redundant method definitions for trend detection and plotting, streamlining the code for better readability.
This commit is contained in:
parent
b0ffedc6af
commit
c7732881c5
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user