通达信主力趋势暴涨突破擒牛主升浪副图指标公式源码:
上突破:MA(LOW,20)*1.2,COLOR0080FF,LINETHICK1 DOTLINE;
次上突破:MA(LOW,20)*1.1,COLORYELLOW;次下突破:MA(HIGH,20)*0.9,COLORWHITE;
下突破:MA(HIGH,20)*0.8,COLORGREEN,LINETHICK1 DOTLINE;
牛牛起飞:=(C-REF(C,1))/REF(C,1)*100;龙龙抓牛:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
主力突破:=IF(C>次上突破,IF(C>上突破,4,3),IF(C>次下突破 AND C<次上突破,2,IF(C<下突破,0,1)));
STICKLINE(主力突破=0,H,L,4,1),COLORBLUE;
STICKLINE(主力突破=1,H,L,4,1),COLORGREEN;
STICKLINE(主力突破=2,H,L,4,1),COLORGRAY;
STICKLINE(主力突破=3,H,L,4,1),COLORYELLOW;
STICKLINE(主力突破=4,H,L,3,0),COLORMAGENTA;
STICKLINE(主力突破=0,C,O,3,0),COLORBLUE;
STICKLINE(主力突破=1,C,O,3,0),COLORGREEN;
STICKLINE(主力突破=2,C,O,3,0),COLORGRAY;
STICKLINE(主力突破=3,C,O,3,0),COLORYELLOW;
STICKLINE(主力突破=4,C,O,3,0),COLORMAGENTA;
ABC:=O<次上突破 AND C>次上突破 AND C/REF(C,1)>1.093;CBA:=O<上突破 AND C>上突破 AND C/REF(C,1)>1.093;
强势:=ABC OR CBA;
DRAWTEXT(强势,L*0.96,’↖暴涨’),COLORRED,LINETHICK2;
笑脸:=BARSLASTCOUNT(主力突破=3)=1;
钱袋子:=BARSLASTCOUNT(主力突破=4)=1;
DRAWICON(钱袋子,L,9);
DRAWICON(笑脸,L,5);DRAWTEXT(钱袋子,L*1.025,’ ★突’),COLORYELLOW,LINETHICK2;