import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from pandas_datareader import data as web
# Finansal veriyi çekme
df = web.DataReader('AAPL', data_source='yahoo', start='2020-01-01', end='2020-12-31')
# Hızlı ve yavaş hareketli ortalamaları hesaplama
df = df .rolling(window=12).mean()
df = df .rolling(window=26).mean()
# MACD ve Sinyal...