小黑龙量学指标 超强K线主图
三一: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) C_: CONST(C),COLORLIRED,POINTDOT;{现价线} MA5:=MA(C,5); MA5角度: ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW; 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 STICKLINE(大阴线,O,C,1,0),COLORLIGREEN; STICKLINE(涨停,O,C,1,0),COLORMAGENTA; STICKLINE(跌停,O,C,1,0),COLORLICYAN; 假阴:=C STICKLINE(假阴,O,C,0,0),COLORRED;{假阴柱};