简简单单给大家分享两个指标,‘夺宝奇兵主图+强升启动幅图’当幅图的强生启动信号出现并且主图的黄色柱状信号出现,代表后期有一波主升浪。
源码: 买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004; 买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1); STICKLINE(买进条件,H,L,0.5,1),COLORWHITE,LINETHICK2;{白-买进} STICKLINE(买进条件,O,C,6,0),COLORWHITE,LINETHICK2; 加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004; 加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1); STICKLINE(加码条件,H,L,0.5,1),COLORYELLOW,LINETHICK2;{黄-加码} STICKLINE(加码条件,O,C,6,0),COLORYELLOW,LINETHICK2; X1:EMA(C,7),COLOR0088FF; X2:EMA(C,21),COLOREE00EE; X3:EMA(X2,21),COLORWHITE; X4:EMA(X3,27),COLOR009900; X5:EMA(X2,100),COLORFFAA00; X6:EMA(X5,100),COLOR009999; V1:EMA(CLOSE,5); V2:EMA(EMA(CLOSE,29)*1.01,10); DRAWICON(CROSS(V1,V2),V2,1); LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; 逃 :IF(CROSS(84,RSI) , HIGH,HIGH+1),POINTDOT,LINETHICK7,COLORYELLOW ;HIGH+1,POINTDOT,LINETHICK7,COLOR000000; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)DRAWICON(FILTER(B1>0,5),L*0.94,10); DRAWTEXT(FILTER(B1>0,5),L*0.94,'M底'),COLORGREEN;{MACD底背离} A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1)); B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
副图: HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6,LINETHICK0; HHJSJDB:=(19*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3) +16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7) +12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11) +8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15) +4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,20)+REF(HHJSJDA,19))/210,COLORYELLOW; HHJSJDC:=MA(HHJSJDB,5),COLORRED; XG:CROSS(C,HHJSJDC) AND CROSS(C,HHJSJDB),COLORLIMAGENTA; |