Created
August 11, 2022 13:43
-
-
Save croosen/41342b28d60bf5c81b2550371eb9b950 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plt.plot(df['tenkan_sen'], label='Tenkan sen', color='cornflowerblue', linewidth = 0.5) | |
plt.plot(df['kijun_sen'], label='Kijun sen', color='salmon', linewidth = 0.5) | |
plt.plot(df['senkou_span_a'], label='Senkou span A', color='lightgreen', linewidth = 0.5) | |
plt.plot(df['senkou_span_b'], label='Senkou span B', color='lightcoral', linewidth = 0.5) | |
plt.plot(df['chikou_span'], label='Chikou span', color='green', linewidth = 1) | |
plt.fill_between(df.index, df['senkou_span_a'], df['senkou_span_b'], where = df['senkou_span_a'] >= df['senkou_span_b'], color = 'honeydew') | |
plt.fill_between(df.index, df['senkou_span_a'], df['senkou_span_b'], where = df['senkou_span_a'] < df['senkou_span_b'], color = 'mistyrose') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment