关于股票成交量均线的问题,我们总结了以下几点,给你解答:
股票成交量均线
def get_volume_ma(self, code, count=30):
"""
获取股票成交量均线
Parameters:
code:股票代码
count:多少天
Return:
成交量均线数据
"""
df = self.get_k_data(code, count=count)
volume_list = df['volume'].tolist()
volume_ma_list = []
for i in range(len(volume_list)):
if i == 0:
volume_ma_list.append(volume_list[i])
else:
volume_ma = (volume_list[i-1] + volume_list[i])/2
volume_ma_list.append(volume_ma)
return volume_ma_list
# 获取股票成交量
def get_volume(self, code, count=30):
"""
获取股票成交量
Parameters:
code:股票代码
count:多少天
Return:
成交量数据
"""
df = self.get_k_data(code, count=count)
volume_list = df['volume'].tolist()
return volume_list
# 获取股票收盘价
def get_close_price(self, code, count=30):
"""
获取股票收盘价
Parameters:
code:股票代码
count:多少天
Return:
收盘价数据
"""
df = self.get_k_data(code, count=count)
close_list = df['close'].tolist()
return close_list
# 获取股票最高价
def get_high_price(self, code, count=30):
"""
获取股票最高价
Parameters:
code:股票代码
count:多少天
Return:
最高价数据
"""
df = self.get_k_data(code, count=count)
high_list = df['high'].tolist()
return high_list
# 获取股票最低价
def get_low_price(self, code, count=30):
"""
获取股票最低价
Parameters:
code:股票代码
count:多少天
Return:
最低价数据
"""
df = self.get_k_data(code, count=count)
low_list = df['low'].tolist()
return low_list
# 获取股票开盘价
def get_open_price(self, code, count=30):
"""
获取股票开盘价
Parameters:
code:股票代码
count:多少天
Return:
开盘价数据
"""
df = self.get_k_data(code, count=count)
open_list = df['open'].tolist()
return open_list
# 获取股票涨跌幅
def get_change_rate(self, code, count=30):
"""
获取股票涨跌幅
Parameters:
code:股票代码
count:多少天
Return:
涨跌幅数据
"""
df = self.get_k_data(code, count=count)
change_list = df['change'].tolist()
return change_list
# 获取股票换手率
def get_turnover_rate(self, code, count=30):
"""
获取股票换手率
Parameters:
code:股票代码
count:多少天
Return:
换手率数据
"""
df = self.get_k_data(code, count=count)
turnover_list = df['turnover'].tolist()
return turnover_list
# 获取股票市盈率
def get_pe_ratio(self, code, count=30):
"""
获取股票市盈率
Parameters:
code:股票代码
count:多少天
Return:
市盈率数据
"""
df = self.get_k_data(code, count=count)
pe_list = df['pe_ratio'].tolist()
return pe_list
# 获取股票市净率
def get_pb_ratio(self, code, count=30):
"""
获取股票市净率
Parameters:
code:股票代码
count:多少天
Return:
市净率数据
"""
df = self.get_k_data(code, count=count)
pb_list = df['pb_ratio'].tolist()
return pb_list
# 获取股票日期
def get_date(self, code, count=30):
"""
获取股票日期
Parameters:
code:股票代码
count:多少天
Return:
日期数据
"""
df = self.get_k_data(code, count=count)
date_list = df['date'].tolist()
return date_list
# 获取股票名称
def get_name(self, code):
"""
获取股票名称
Parameters:
code:股票代码
Return:
股票名称
"""
df = self.get_k_data(code, count=1)
name = df['name'].tolist()[0]
return name
# 获取股票行业
def get_industry(self, code):
"""
获取股票行业
Parameters:
code:股票代码
Return:
股票行业
"""
df = self.get_k_data(code, count=1)
industry = df['industry'].tolist()[0]
return industry
# 获取股票地区
def get_area(self, code):
"""
获取股票地区
Parameters:
code:股票代码
Return:
股票地区
"""
df
股票成交量均线怎么看
简单点儿,就像你平时看K线图的均线一样,5日线上穿10日线看涨,下穿就看空。
如果成交量在均线附近频繁震动,股价上涨时成交量超出均线较多,而股价下跌时成交量低于均线较多,则该股就应成为密切关注的对象。因为,这表明筹码正在连续不断地集中到主力手中。
股票成交量均线怎么设置
一般都可以修改参数的方法来设置