股票分析网站(股市分析)
当前沪指以下跌趋势运行,目前已跌至3000点附近,为了确定当前的位置及预测以后可能的走势,很多人喜欢用简单明了的趋势线的方法来预测后面的走势。但是这个趋势线究竟怎样来画,下面详细分析一下。
首先来看一下沪指日K线图:
横盘震荡时,一般情况震荡空间比较小,所以操作难度大,因此一般是轻仓为主,在两根绿色箭头处高抛低吸。
tabletext.add_run('类别:').bold = True
# 涨停股数中次新股,上市日期小于1年
text1.add_run('A股上涨个数:').bold = True #添加文字并设置粗体
text1.add_run('{} '.format(str(df_up.shape[0]))).font.color.rgb = RGBColor(255, 0, 0) #添加变量
text1.add_run('A股下跌个数:').bold = True
text1.add_run('{} '.format(str(df_down.shape[0]))).font.color.rgb = RGBColor(0, 255, 0)
text1.add_run('A股走平个数:').bold = True
text1.add_run('{} '.format(str(df_even.shape[0]))).font.color.rgb = RGBColor(0, 0, 255)
text1.line_spacing = Pt(25) #设置段落行距
text1.style = 'List Bullet' # 设置项目符号列表
text2.add_run('A股总成交额:').bold = True
text2.add_run('{}'.format(str(round(df['amount'].sum(),2)))).font.color.rgb = RGBColor(128, 0, 128)
text2.add_run('千元 ')
text2.add_run('总成交量:').bold = True
text2.add_run('{}'.format(str(round(df['vol'].sum(),2)))).font.color.rgb = RGBColor(128, 0, 128)
text2.add_run('手 ')
text2.line_spacing = Pt(25)
text2.style = 'List Bullet'
text3.add_run('A股平均市盈率:').bold = True
text3.add_run('{} '.format(str(round(df['pe'].mean())))).font.color.rgb = RGBColor(128, 0, 128)
text3.add_run('平均流通市值:').bold = True
text3.add_run('{}'.format(str(round(df['circ_mv'].mean(),2)))).font.color.rgb = RGBColor(128, 0, 128)
text3.add_run('万元')
text3.add_run('\n')
text3.add_run('平均总市值:').bold = True
text3.add_run('{}'.format(str(round(df['total_mv'].mean(),2)))).font.color.rgb = RGBColor(128, 0, 128)
text3.add_run('万元 ')
text3.line_spacing = Pt(25)
text3.style = 'List Bullet'
text3.add_run('\n')
text4.add_run('涨停数量:').bold = True
text4.add_run('{}'.format(str(limit_up.shape[0]))).font.color.rgb = RGBColor(255, 0, 0)
text4.add_run('个 ')
text4.add_run('涨停中上市日期小于15天的:').bold = True
text4.add_run('{}'.format(str(limit_up_new.shape[0]))).font.color.rgb = RGBColor(255, 0, 0)
text4.add_run('个 ')
text4.add_run('\n')
text4.add_run('涨停中上市日期小于1年的:').bold = True
text4.add_run('{}'.format(str(limit_up_fresh.shape[0]))).font.color.rgb = RGBColor(255, 0, 0)
text4.add_run('个 ')
text4.line_spacing = Pt(25)
text4.style = 'List Bullet'
text5.add_run('跌停数量:').bold = True
text5.add_run('{}'.format(str(limit_down.shape[0]))).font.color.rgb = RGBColor(0, 255, 0)
text5.add_run('个 ')
text5.add_run('跌停中上市日期小于15天的:').bold = True
text5.add_run('{}'.format(str(limit_down_new.shape[0]))).font.color.rgb = RGBColor(0, 255, 0)
text5.add_run('个 ')
text5.add_run('\n')
text5.add_run('跌停中上市日期小于1年的:').bold = True
text5.add_run('{}'.format(str(limit_down_fresh.shape[0]))).font.color.rgb = RGBColor(0, 255, 0)
text5.add_run('个 ')
text5.line_spacing = Pt(25)
text5.style = 'List Bullet'
tabletext.add_run('{} '.format(str(i))).font.color.rgb = RGBColor(222, 125, 44)
tb = file.add_table(rows=len(j.index)+1, cols=len(j.columns),style='Medium Grid 3 Accent 1')
#tb.cell(0, x).width = Inches(1.2) #设置行宽
tb.cell(row+1, col).text = str(j.iloc[row, col]) #设置行宽
tb.cell(row+1, col).paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER #文字居中