通达信自用主图涨跌停,牛熊线一目了然
{自用主图}
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),LINETHICK2,COLORMAGENTA;
MA60:MA(CLOSE,60),LINETHICK3,COLORGREEN;
MA120:MA(CLOSE,120),LINETHICK3,COLORWHITE;
MA250:MA(CLOSE,250),COLORBLUE;
C6:=REF(C,1);
涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
跌停:=IF((C6-C)*100/C6>=(10-0.01*100/C6),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
{公式在线提供:www.gszx.com.cn}
DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.28,0,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.35,0,0,EXTERNSTR(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.65,0,0,'主营业务:')COLORFF00FF;
DRAWTEXT_FIX(1,0.72,0,0,EXTERNSTR(0,2))COLORFF00FF;