关于同花顺平均线颜色的问题,我们总结了以下几点,给你解答:
同花顺均线五种颜色在哪里设置?
五日线黄色,十日线粉色,二十日线绿色,三十日线白色,半年线青色,年线红色。
同花顺与通达信的均线周期切换不同。按下数字键36回车是日线,按下37回车是周线,38回车是月线。
同花顺平均线颜色
'''
def get_ma_color(self, code):
url = 'http://stock.10jqka.com.cn/%s/' % code
html = self.get_html(url)
soup = BeautifulSoup(html, 'lxml')
try:
ma_color = soup.find('div', class_='line-box').find('div', class_='line-con').find('div', class_='line-con-l').find('div', class_='line-con-l-t').find('span', class_='line-color').get('style')
ma_color = ma_color.split(':')[1].split(';')[0]
return ma_color
except:
return None
'''
获取同花顺股票代码
'''
def get_ths_code(self, code):
url = 'http://stockpage.10jqka.com.cn/%s/' % code
html = self.get_html(url)
soup = BeautifulSoup(html, 'lxml')
try:
ths_code = soup.find('div', class_='stockcode').find('span').get_text()
return ths_code
except:
return None
'''
获取同花顺股票名称
'''
def get_ths_name(self, code):
url = 'http://stockpage.10jqka.com.cn/%s/' % code
html = self.get_html(url)
soup = BeautifulSoup(html, 'lxml')
try:
ths_name = soup.find('div', class_='stockcode').find('h1').get_text()
return ths_name
except:
return None
'''
获取同花顺股票行业
'''
def get_ths_industry(self, code):
url = 'http://stockpage.10jqka.com.cn/%s/' % code
html = self.get_html(url)
soup = BeautifulSoup(html, 'lxml')
try:
ths_industry = soup.find('div', class_='stock_bets').find('a').get_text()
return ths_industry
except:
return None
'''
获取同花顺股票概念
'''
def get_ths_concept(self, code):
url = 'http://stockpage.10jqka.com.cn/%s/' % code
html = self.get_html(url)
soup = BeautifulSoup(html, 'lxml')
try:
ths_concept = soup.find('div', class_='stock_bets').find_all('a')[1].get_text()
return ths_concept
except:
return None
'''
获取同花顺股票地域
'''
def get_ths_area(self, code):
url = 'http://stockpage.10jqka.com.cn/%s/' % code
html = self.get_html(url)
soup = BeautifulSoup(html, 'lxml')
try:
ths_area = soup.find('div', class_='stock_bets').find_all('a')[2].get_text()
return ths_area
except:
return None
'''
获取同花顺股票财务报表
'''
def get_ths_finance(self, code):
url = 'http://stockpage.10jqka.com.cn/%s/finance/' % code
html = self.get_html(url)
soup = BeautifulSoup(html, 'lxml')
try:
ths_finance = soup.find('div', class_='m_table').find('table').find('tbody').find_all('tr')
ths_finance_list = []
for item in ths_finance:
ths_finance_list.append(item.get_text().replace('
同花顺 均线颜色
点击需要修改的均线,修改均线,曲线属性,使用固定的颜色进行修改。默认状态:白线代表5日线,黄线代表10日线,紫线代表2及变久时损京宜宜晶岩0日线,绿线代表20日线,蓝线代表60日线。
点开个股k线图,选中任意映掉我令其应一条均线-修改指标参数-均线,可设置显示均线的周期和条数,最高可设置至1000日和8条。投资者可根据需齐状设等缩啊你波赶求进行修改及设置。