python 移动平均线
With the evolution of technology rapidly evolving, so do strategies in the stock market. In this post, I’ll go over how I created a SMA(Short Moving Average) strategy.
随着技术的飞速发展,股票市场的策略也在不断发展。 在本文中,我将介绍如何创建SMA(短期移动平均线)策略。
DISCLAIMER: Stocks can be risky and it is very possible to lose money. I have not used this strategy to make any financial gains, investments, or purchases. I do not recommend you read this article and use the strategy for your own investment purposes and/or financial gain. I am not responsible for your losses if you choose to use this. The strategy below is only an experiment.
免责声明:股票可能具有风险,很可能会亏损。 我没有使用这种策略来获得任何财务收益,投资或购买。 我不建议您阅读本文,并出于自己的投资目的和/或财务收益而使用该策略。 如果您选择使用此方式,我对您的损失不承担任何责任。 以下策略只是一个实验。
I decided to look at Apple stock (AAPL) because they are a technology giant making big financial gains in the past few months. As of today, August 13, 2020, AAPL opened at $457.72. On March 18, 2020, they opened at $239.77. I’m no expert when it comes to driving prices up and down but the fact is AAPL rose more than $200 in a five month span. I know there are signals in the market that let a consumer know when the right time to buy and sell is and I wanted to explore if a SMA strategy would be of any help.
我决定研究Apple股票(AAPL),因为它们是一家在过去几个月中取得了可观财务收益的技术巨头。 截至今天,2020年8月13日,AAPL开盘价为457.72美元。 2020年3月18日,它们开盘价为239.77美元。 我不是专家来推动价格上下,但事实是AAPL在五个月内上涨了200多美元。 我知道市场上有一些信号可以让消费者知道什么时候是正确的买卖时间,我想探讨一下SMA策略是否有帮助。
The first thing I did was go to Yahoo Finance and download the 5 year historical data csv file and explored the data.
我做的第一件事是去Yahoo Finance并下载5年历史数据csv文件并浏览了数据。