exodus-stock/backtest.py

15 lines
269 B
Python
Raw Normal View History

2022-04-06 03:56:09 -04:00
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()