init
This commit is contained in:
14
backtest.py
Normal file
14
backtest.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user