如何读懂日本K线图
再将最高价对应处的点与实体上端连接,称为上影线;将最低价与实体下端连接,称为下影线。收盘价比开盘价高称之为阳线,画图时实体中间留出空白即可。收盘价比开盘价低称之为阴线,画图时应将实体涂黑。 如果当天开盘价即为最低价,收盘价即为最高价,则K线图无上下影线,俗称“光头光脚(大/小)阳线”(大或小根据K线实体来定)。它表明当天行情开盘即涨,多头占据绝对地位。 如果当天开盘价为最高,随后股价下跌,收盘在最低点,则K线图也无下影线,俗称“光头光脚(大/小)阴线”。它表明空头占绝对优势。 如果当天开盘与收盘处于同一位置,则K线图上没有实体,俗称十字星。如果收盘比开盘略低,则称为“阴线十字星”; 若收盘比开盘略高,则称为“阳线十字星”。它表明多空双方经过一天争头后基本达到了平衡。 若下影线较长(一般为实体的2倍以上)而无上影线或上影线很短,K线形态像一把锤子,俗称“锤头”。 若上影线较长(一般为实体的2倍以上)而无下影线或下影线很短,K线形态像一把倒转的锤头,故俗称“倒锤头”。 如果开盘与收盘接近,且没有上影线而有下影线,K线形态像T字形,俗称“T字星”。 如果开盘与收盘接近,而没有下影线却有上影线,俗称“倒T字星”。 当然,K线图还有许多形态,这里不一一列举。
Python如何绘制K线图?
朱卫军
python绘制股票K线图
洛必达不到 于 2019-12-27 19:42:34 发布 4006 收藏 57
其中mpf需要提一下,原本的finance可以通过import matplotlib.finance as mpf导入,但是现在由于版本问题finance模块已经从matplotlib2.0.2中脱离出来,需要下载mpl_finance包。
matrix_data 是 np.matrix 对象,matrix_data 中要存放的前五个数据必须是:时间、开盘价、收盘价、最高价、最低价,顺序也要对应起来。下边是我的数据:
这里的date必须使用 matplotlib.pylab 中的 date2num(datetime) 方法来将datetime对象转换一个特定的时间戳数字。
我使用的是 pandas.DataFrame 来储存数据,利用pd.read_csv() 读取 csv 文件,得到就是一个 DataFrame 对象。图中我的DataFrame对象中包含有 date, open,high, low, close, volume 六列数据。
成果图:
EGsnn/wxcharts
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub 如何读懂日本K线图 Desktop and try again.如何读懂日本K线图
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
About
微信小程序 chart 、K线图、分时图
Topics
Resources
Stars
Watchers
Forks
Releases
Packages 0
Contributors 2
Languages
Footer
© 2022 GitHub, Inc.
You 如何读懂日本K线图 can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to 如何读懂日本K线图 refresh your session.