<jupyter_start><jupyter_text><jupyter_code>pip install mplfinance
# Import the libraries
import pandas as pd
import pandas_datareader as web
import numpy as np
import datetime
import matplotlib.pyplot as plt

import mplfinance as mpf
# Get the stock quote
df = web.DataReader('AAPL', data_source='yahoo',start='2020-01-01', end='2021-01-01')
df
mpf.plot(df,type='candle',volume=True, figratio=(15, 7), style='yahoo', title='Apple')
mpf.plot(df,type='candle',volume=True, figratio=(15, 7), style='yahoo', mav=(6, 15), title='Apple')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14736842105263157, 'fraction_numerical': 0.043859649122807015, 'mean_word_length': 7.1571428571428575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '14091', 'license': 'MIT', 'n_tokens_mistral': 235, 'n_tokens_neox': 211, 'n_words': 49, 'path': 'Candle.ipynb', 'repo_name': 'sergiocabrales/python', 'size': '570'}