Telegram Group & Telegram Channel
برخی تحلیل ها نشان دهنده این است که سال آینده سال کامودیتی‌هاست. علاوه بر فلزات گرانبها که نقش بسیار مهمی در پوشش ریسک دارند، سال آینده احتمالا شاهد تحرکات زیادی در فلزات کاربردی مانند مس خواهیم بود.
در مثال این پست قیمت مس و طلا برای 4 ماه گذشته رسم می شود.

#code by @python4finance
import yfinance as yf
import pandas as pd
import matplotlib.pyplot as plt
plt.style.use("ggplot")

gold_data = yf.download("GC=F",period="4Mo", multi_level_index=False)
copper_data = yf.download("HG=F" ,period="4Mo", multi_level_index=False)

gold_data['Close'].plot(label='Gold', color='gold' , figsize=(16, 6))
copper_data['Close'].plot( secondary_y=True, label='Copper', color='brown')
copper_data['Close'].rolling(10).mean().plot( secondary_y=True, label='Copper MA', color='green', style='--')
plt.xlabel('Date')
plt.ylabel('Price')
plt.title('Gold and Copper Prices')
plt.legend()
plt.show()


پایتون برای مالی

🆔 www.tg-me.com/id/Python4Finance/com.python4finance
🆔 ble.ir/id/Python4Finance/com.python4finance



tg-me.com/python4finance/1094
Create:
Last Update:

برخی تحلیل ها نشان دهنده این است که سال آینده سال کامودیتی‌هاست. علاوه بر فلزات گرانبها که نقش بسیار مهمی در پوشش ریسک دارند، سال آینده احتمالا شاهد تحرکات زیادی در فلزات کاربردی مانند مس خواهیم بود.
در مثال این پست قیمت مس و طلا برای 4 ماه گذشته رسم می شود.

#code by @python4finance
import yfinance as yf
import pandas as pd
import matplotlib.pyplot as plt
plt.style.use("ggplot")

gold_data = yf.download("GC=F",period="4Mo", multi_level_index=False)
copper_data = yf.download("HG=F" ,period="4Mo", multi_level_index=False)

gold_data['Close'].plot(label='Gold', color='gold' , figsize=(16, 6))
copper_data['Close'].plot( secondary_y=True, label='Copper', color='brown')
copper_data['Close'].rolling(10).mean().plot( secondary_y=True, label='Copper MA', color='green', style='--')
plt.xlabel('Date')
plt.ylabel('Price')
plt.title('Gold and Copper Prices')
plt.legend()
plt.show()


پایتون برای مالی

🆔 www.tg-me.com/id/Python4Finance/com.python4finance
🆔 ble.ir/id/Python4Finance/com.python4finance

BY Python4Finance




Share with your friend now:
tg-me.com/python4finance/1094

View MORE
Open in Telegram


Python4Finance Telegram | DID YOU KNOW?

Date: |

The SSE was the first modern stock exchange to open in China, with trading commencing in 1990. It has now grown to become the largest stock exchange in Asia and the third-largest in the world by market capitalization, which stood at RMB 50.6 trillion (US$7.8 trillion) as of September 2021. Stocks (both A-shares and B-shares), bonds, funds, and derivatives are traded on the exchange. The SEE has two trading boards, the Main Board and the Science and Technology Innovation Board, the latter more commonly known as the STAR Market. The Main Board mainly hosts large, well-established Chinese companies and lists both A-shares and B-shares.

Python4Finance from id


Telegram Python4Finance
FROM USA