exodus-stock/backtest.py
2022-04-06 14:56:09 +07:00

15 lines
269 B
Python

import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import matplotlib.animation as animation
import yfinance as yf
symbol=yf.Ticker("AAPL")
data=symbol.history(interval="1d",period="1y")
close=data["Close"]
print(close)
plt.plot(close)
plt.show()