Skip to content

Commit 1601b0c

Browse files
committed
update charts colors
1 parent 8a10a1b commit 1601b0c

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

pattern_detector.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,23 @@ def plot_patterns(self, prices, max_min, patterns, save=False):
150150
patterns: Detected patterns
151151
save: Whether to save the plot
152152
"""
153-
colors = {'IHS': 'green', 'DT': 'red', 'DB': 'blue', 'HS': 'orange'}
153+
colors = {
154+
'HS': 'orange',
155+
'IHS': 'green',
156+
'DB': 'blue',
157+
'DT': 'red',
158+
'ASCENDING_TRIANGLE': 'cyan',
159+
'DESCENDING_TRIANGLE': 'magenta',
160+
'SYMMETRICAL_TRIANGLE': 'gold',
161+
'RISING_WEDGE': 'brown',
162+
'FALLING_WEDGE': 'purple',
163+
'BULL_FLAG': 'teal',
164+
'BEAR_FLAG': 'navy',
165+
'ASCENDING_CHANNEL': 'olive',
166+
'DESCENDING_CHANNEL': 'deeppink',
167+
'HORIZONTAL_CHANNEL': 'gray',
168+
'CUP_AND_HANDLE': 'darkgreen',
169+
}
154170

155171
if len(patterns) == 0:
156172
print("No patterns found")

0 commit comments

Comments
 (0)