【量化笔记】量价关系分析

量价关系分析

价涨量增:股票价格上涨动能增强,价格会继续走高
价涨量平:上涨行情中,预示着可能价格即将到达顶部,也可能市场处于调整期
价涨量缩:可能是横盘调整完,一批投资者被洗盘出局
价平量增:下跌行情中,说明多方力量可能进行了拉低布局,形势可能上涨
价平量缩:一般出现在新一轮上涨初期,或者调整洗盘期
价跌量增:高位下跌的初期,和下跌末期市场
价跌量平:无法预测后市的走势,如果价跌量平跟随在价平量平后面,表示市场已经开始下跌行情
价跌量缩:即将止跌,也可能是市场行情不好,买方力量极弱,接盘量少。
import pandas as pd
import numpy as np
CJSecurities=pd.read_csv('CJSecurities.csv',index_col='Date')
CJSecurities=CJSecurities.iloc[:,1:]
CJSecurities.index=pd.to_datetime(CJSecurities.index)
CJSecurities.head()

Open High Low Close Volume
Date
2014-01-02 10.42 10.42 10.20 10.27 54734700
2014-01-03 10.21 10.22 9.86 9.88 88544000
2014-01-06 9.88 9.97 9.71 9.80 67493100
2014-01-07 9.69 9.83 9.60 9.61 52957200
2014-01-08 9.67 9.91 9.65 9.77 55127700
import matplotlib.pyplot as plt
from candle import candleVolume
CJSecurities1=CJSecurities['2015-04-01':'2015-04-30']
plt.rcParams['figure.figsize']=(20.0,10.0)
candleVolume(CJSecurities1,candletitle='长江证券2015年4月份蜡烛图',\
             bartitle='长江证券2015年4月份日成交量')

在这里插入图片描述

CJSecurities2=CJSecurities['2015-01-15':'2015-02-15']
candleVolume(CJSecurities2,candletitle='长江证券2015年1月和2月份蜡烛图',\
            bartitle='长江证券2015年1月和2月份日成交量')

在这里插入图片描述

CJSecurities3=CJSecurities['2015-03-01':'2015-03-31']
candleVolume(CJSecurities3,candletitle='长江证券2015年3月份蜡烛图',\
             bartitle='长江证券2015年3月份日成交量')

在这里插入图片描述

CJSecurities4=CJSecurities['2014-01-02':'2014-03-31']
candleVolume(CJSecurities4,candletitle='长江证券2014年前3个月份蜡烛图',\
            bartitle='长江证券2014年前3个月份日成交量')

在这里插入图片描述

不同价格段位的成交量

close=CJSecurities.Close
close.describe()
# 调整收盘价
BreakClose=np.ceil(close/2)*2
BreakClose.name='BreakClose'
pd.DataFrame({
   'BreakClose':BreakClose,\
            'Close':close}).head(n=2)
  • 1
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值