三一:H-(H-L)*0.333,NODRAW;
二一:H-(H-L)*0.5,NODRAW;三二:H-(H-L)*0.666,NODRAW;实体三一:O+(C-O)*0.666,NODRAW;实体腰线:O+(C-O)*0.5,NODRAW;{多彩K线-主图公式, 显示大阳\\大阴\\涨停\\跌停\\假阴\\假阳\\跳空\\大K线中点,适用于通达信 }DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块}DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块}DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块}STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;MA5:MA(C,5),DOTLINE;MA10:MA(C,10),DOTLINE;MA20:MA(C,20),DOTLINE;MA30:MA(C,30),DOTLINE;DRAWKLINE(H,O,L,C);{重绘K线}RC1:=REF(C,1);CS:=IF(C>=1,10000,100000);C涨停10:=1.10*RC1-49/CS;{考虑到4舍5入}C涨停5 :=1.05*RC1-49/CS;C跌停10:=0.90*RC1+51/CS;C跌停5 :=0.95*RC1+51/CS;ST:=NAMELIKE('S') OR NAMELIKE('*S');涨停:= IF(ST, C>=C涨停5, C>=C涨停10);跌停:= IF(ST, C<=C跌停5, C<=C跌停10);盘中涨停:=IF(ST, H>=C涨停5, H>=C涨停10);盘中跌停:=IF(ST, L<=C跌停5, L<=C跌停10);STICKLINE(盘中涨停,H,MAX(C,O),0,0),COLORMAGENTA;{涨停后回落}STICKLINE(盘中跌停,L,MIN(C,O),0,0),COLORLICYAN;{跌停后回升}大阳线:=C>O AND (C>=C涨停5 OR C>(1.05*O-51/CS) ) OR (C>1000 AND C>RC1*1.024);STICKLINE(大阳线,O,C,1,0),COLOR0000BB;大阴线:=C<O AND (C<=C跌停5 OR C<(0.95*O+49/CS) ) OR (C>1000 AND C<RC1*0.976);STICKLINE(大阴线,O,C,1,0),COLORLIGREEN;STICKLINE(涨停,O,C,1,0),COLORMAGENTA;STICKLINE(跌停,O,C,1,0),COLORLICYAN;假阴:=C<O AND C>REF(C,1);STICKLINE(假阴,O,C,0,0),COLORRED;{假阴柱};假阳:=C>O AND C<REF(C,1);STICKLINE(假阳,O,C,0,0),COLORGREEN;{假阳柱};大盘TJ:=PERIOD=5 AND NAMELIKE('上证指数')AND (ABS((C-REF(C,1)))/REF(C,1)>=0.025 OR ABS(C-O)>=60);STICKLINE(大盘TJ,(H+L)/2,(H+L)/2,2,0),COLORYELLOW;{显示大盘日线的60点大K线中值};STICKLINE((大阳线 OR 大阴线 OR 涨停 OR 跌停)AND BETWEEN(C,1,500),L+(H-L)/2,L+(H-L)/2,1,0),COLORYELLOW;{大K线画中点线};ZT:=C/REF(C,1)>1.097;DRAWTEXT(ZT,L*0.98,'涨停'),COLORF00FF0;VARZT:=BARSLAST(C/REF(C,1)>1.097);STICKLINE(VARZT=2,L*0.97,L*0.98,8,0),COLOR0000FF;DRAWTEXT(VARZT=2,L*0.95,'3天'),COLORYELLOW;STICKLINE(VARZT=4,H*1.03,H*1.02,8,0),COLOR9966FF;DRAWTEXT(VARZT=4,H*1.06,'5天'),COLORYELLOW;STICKLINE(VARZT=7,L*0.97,L*0.98,8,0),COLOR00FFFF;DRAWTEXT(VARZT=7,L*0.95,'8天'),COLORYELLOW;STICKLINE(VARZT=12,H*1.03,H*1.02,8,0),COLORFF33FF;DRAWTEXT(VARZT=12,H*1.06,'13天'),COLORYELLOW;STICKLINE(VARZT=20,L*0.97,L*0.98,8,0),COLOR0066FF;DRAWTEXT(VARZT=20,L*0.95,'21天'),COLORYELLOW;STICKLINE(VARZT=33,H*1.03,H*1.02,8,0),COLOR9932CD;DRAWTEXT(VARZT=33,H*1.06,'34天'),COLORYELLOW;STICKLINE(VARZT=54,L*0.97,L*0.98,8,0),COLOR006600;DRAWTEXT(VARZT=54,L*0.95,'55天'),COLORYELLOW;STICKLINE(VARZT=88,H*1.03,H*1.02,8,0),COLOR00FF00;DRAWTEXT(VARZT=88,H*1.06,'89天'),COLORYELLOW;STICKLINE(VARZT=143,L*0.97,L*0.98,8,0),COLORCCFFFF;DRAWTEXT(VARZT=143,L*0.95,'144天'),COLORYELLOW;STICKLINE(VARZT=232 ,H*1.03,H*1.02,8,0),COLORFF0033;DRAWTEXT(VARZT=232,H*1.06,'233天'),COLORYELLOW;STICKLINE(VARZT=376,L*0.97,L*0.98,8,0),COLORFF9966;DRAWTEXT(VARZT=376,L*0.95,'377天'),COLORYELLOW;股票公式结合软件的应用属于进阶阶段的股票学了,我们整理网上提出的通达信潜伏主力主图指标公式的问题一些解决方案仅供辅助你学习通达信公式参考,具体内容可能需要具体解决或者找网上其他高手帮忙,也感谢文字和图片来源于股旁网的一些资源分享,帮助新手快速学习提高炒股技能。
声明:通达信潜伏主力主图指标公式的文字和图片来源于网络,版权归原作者所有,仅代表个人观点,于本站无关。
随便说说