通达信【主升起飞】副图指标 抓主升浪的神兵利器 源码附图
{主升起飞副}
冠:HORCALC(HYBLOCK,105,1,DRAWNULL)=1,NODRAW,COLORRED;
亚:HORCALC(HYBLOCK,105,1,DRAWNULL)=2,NODRAW,COLORYELLOW;
季:HORCALC(HYBLOCK,105,1,DRAWNULL)=3,NODRAW,COLORWHITE;
神秘捉妖88:=EMA(C,9);
主升浪1:=EMA(神秘捉妖88*1.14,5),COLORGREEN;
主升浪4:=EMA(C,2),COLORRED;
STICKLINE(主升浪4>=主升浪1,REFDATE(HHV(H,130),DATE),REFDATE(LLV(L,130),DATE),1,0),COLOR545454 ;
神秘捉妖12:(C-LLV(LOW,40))/LLV(LOW,40)*100,COLORYELLOW;
趋势线: (C-MA(C,40))/MA(C,40)*100,NODRAW;
主力线: (C-MA(LLV(LOW,40),40))/MA(LLV(LOW,40),40)*100,COLORMAGENTA;
攻击线:28,COLORLIBLUE,DOTLINE;
楚河汉界:50,COLORLIRED,DOTLINE;
MA5:=MA(C,5);
持股线:IF((HHV(MA5,100)=MA5),主力线,DRAWNULL),COLORMAGENTA,LINETHICK5;
AA:=((C*V-REF(COST(90),1)*V)/20+250)*1.2/5,COLORMAGENTA;
BB:=((REF(COST(90),1)*V-C*V)/20+250)*1.2/5,COLORCYAN;
CC:=((C*V-REF(COST(10),1)*V)/20+250)*1.2/5,COLORRED;
DD:=((REF(COST(10),1)*V-C*V)/20+250)*1.2/5,COLORBLUE;
主升浪A:=(CC>0 AND CROSS(AA,BB) OR CROSS(AA,0)) ;
主升浪B:=CC>0 AND AA>0 AND BB<0 AND DD<0;
好运来了:=(主升浪A AND COUNT(主升浪A,10)=1) OR (主升浪B AND COUNT(主升浪B,60)=1);
DRAWTEXT(好运来了 AND COUNT(好运来了,20)=1,神秘捉妖12*1.16,'★主升浪'),COLORYELLOW;
DRAWICON(好运来了 AND COUNT(好运来了,20)=1,神秘捉妖12*1.09,11);DRAWTEXT(CC>=HHV(CC,60) AND COUNT(CC>=HHV(CC,20),20)=1 AND CC>BB,神秘捉妖12*1.16,'★看戏'),COLORGREEN;
DRAWICON(CC>=HHV(CC,60) AND COUNT(CC>=HHV(CC,20),20)=1 AND CC>BB,神秘捉妖12*1.19,12);
DRAWICON(CROSS(神秘捉妖12,攻击线),神秘捉妖12,1);
DRAWICON(CROSS(神秘捉妖12,楚河汉界),神秘捉妖12,15);