快好知 kuaihz

154、通达信独一无二箱体主图指标公式

来源:Internet,编辑:股旁网,2019-10-08

N:=5;

MA250:=MA(CLOSE,250),COLORMAGENTA,LINETHICK3;

{N(3,30,5);}

【箱顶】:PEAK(3,N,1)*0.999;

箱底】:TROUGH(3,N,1)*0.999;

【箱高】:=1*(【箱顶】-【箱底】)/【箱底】;

K线运行的升幅:=(MA(H,3)-REF(MA(H,3),1))*100/REF(MA(H,3),1);{NODRAW;}

{ML:=EMA(L,7),COLORMAGENTA;

MH:=MA(H,7),COLORGRAY;

趋势线:MA((MH+ML)/2,3),LINETHICK1,COLORGREEN;

趋势线1:IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORMAGENTA;}

{八周均线}

VAR1:MA(C,7),COLORGREEN;

VAR1A:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLORRED;

DRAWICON(CROSS(C,VAR1),L*0.99,1);

DRAWICON(CROSS(VAR1,C),H*1.00,2);

XDU:=IF(EMA(EMA(EMA(C,2),2),2)>REF(EMA(EMA(EMA(C,2),2),2),1),【箱底】,【箱顶】);

XTB:=【箱底】!=REF(【箱底】,2) &&【箱底】=REF(【箱底】,1);

XTS:=【箱顶】!=REF(【箱顶】,2) &&【箱顶】=REF(【箱顶】,1);

买点:=(【箱底】!=REF(【箱底】,2) && 【箱底】=REF(【箱底】,1));

卖点:=(【箱顶】!=REF(【箱顶】,2) && 【箱顶】=REF(【箱顶】,1));

DRAWICON(XTB,MIN(【箱底】,L)*0.979,1);

DRAWTEXT(XTB,MIN(【箱底】,L)*0.977,"[到底了!]"),COLOR0000DD;

DRAWICON(XTS,MAX(【箱顶】,H)*1.018,2);

DRAWTEXT(XTS,MIN(【箱顶】,H)*1.028,"[到顶了]")COLOR00DD00;

上升段:DRAWLINE(XTB,MIN(LLV(L,1),【箱底】),XTS,MAX(HHV(H,1),【箱顶】),0)

COLOR000099,LINETHICK2;{XTBL}

下跌段:DRAWLINE(XTS,MAX(HHV(H,1),【箱顶】),XTB,MIN(LLV(L,1),【箱底】),0)

COLOR009900,LINETHICK2;{XTSL}

{主图中涨停板,跌停板颜色。}

C6:=REF(C,1);

涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);

STICKLINE(涨停,OPEN,CLOSE,2,0),COLORMAGENTA;

STICKLINE(涨停,H,L,0,0),COLORLIRED;

跌停:=(REF(C,1)-C)*100/REF(C,1)>=(10-1/REF(C,1)) AND

(REF(C,1)-C)*100/REF(C,1)<=(10+1/REF(C,1)) AND L=C;

STICKLINE(跌停,OPEN,CLOSE,2,0),COLORYELLOW;

本站资源来自互联网,仅供学习,如有侵权,请通知删除,敬请谅解!
搜索建议:箱体  箱体词条  通达  通达词条  独一无二  独一无二词条  公式  公式词条  指标  指标词条  
股票

 顺向T+0和逆向T+0的操作适应...

前言:很多朋友希望有一个好的指标来辅助选股,现有一份“抄底神器”指标(附使用说明),如需领取该指标可留言,工作人员看到后会及时回复!顺向T+0操作适应范围(1)...(展开)