源碼 D1:=5;D2:=10; DIF1:=EMA(C,12) - EMA(C,26),LINETHICK2; DEA1:=EMA(DIF1,9),LINETHICK2; MACD1:=2*(DIF1-DEA1),STICK; MACD2:=EMA(MACD1,3); STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3.2,0),COLOR000055; STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.7,0),COLOR000077; STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2.1,0),COLOR000099; STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1.5,0),COLOR0000BB; STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.9,0),COLOR0000DD; STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,0.3,0),COLOR0000FF; STICKLINE(MACD1>MACD2 AND MACD1<> STICKLINE(MACD1>MACD2 AND MACD1<> STICKLINE(MACD1>MACD2 AND MACD1<> STICKLINE(MACD1>MACD2 AND MACD1<> STICKLINE(MACD1>MACD2 AND MACD1<> STICKLINE(MACD1>MACD2 AND MACD1<> STICKLINE(MACD1<> STICKLINE(MACD1<> STICKLINE(MACD1<> STICKLINE(MACD1<> STICKLINE(MACD1<> STICKLINE(MACD1<> STICKLINE(MACD1>=0 OR MACD1<> {} DIF:DIF1,COLOR33FF33; DEA:DEA1,COLORYELLOW; MACD:MACD1,NODRAW,COLORMAGENTA; 低位金叉:CROSS(DIF1,DEA1) AND DIF1<> JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA1>=0)); 二次金叉:=CROSS(DIF1,DEA1) AND DEA1<0 and="" count(jccount="">0> STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF; DRAWICON(二次金叉,DEA1*0.9,1) ; DRAWTEXT(二次金叉,0.4,' 二次金叉'),COLORYELLOW; 強(qiáng)度:IF(DIF1>=DEA1,DIF1,DRAWNULL),COLORRED,LINETHICK2; A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1)); 底背離:=REF(CLOSE,A1+1)>CLOSE AND DIF1>REF(DIF1,A1+1) AND CROSS(DIF1,DEA1); STICKLINE(底背離,0,0.03,6,0),COLOR00FF00; 底背:DRAWLINE(A1=0,DEA1,底背離,DEA1,0),COLORRED,LINETHICK4; DRAWTEXT(底背離,0.1,' 底背離'),COLORYELLOW; A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1)); 頂背離:=REF(CLOSE,A2+1) 頂背:DRAWLINE(A2=0,DEA1,頂背離,DEA1,0),COLORGREEN,LINETHICK4; DRAWTEXT(頂背離,0.1,'頂背離'),COLORGREEN; {} {金叉共振及三全項(xiàng)} DRAWICON(D1,1,1); DRAWICON(D2,1,2); B4:CROSS(DIF,DEA) AND CROSS('KDJ.K'(9,3,3),'KDJ.D'(9,3,3)); DRAWTEXT(B4,0.1,'★金叉共振'),COLORYELLOW; DRAWTEXT(低位金叉 AND 二次金叉 AND 底背離,0.25,'三全項(xiàng)'),COLORYELLOW,LINETHICK2; {買入信號(hào)} SHORT:=6; LONG:=9; MID:=3; DIF11:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK1,COLOR0000FF; DEA11:=EMA(DIF11,MID); 向下:=IF(DIF11<> 強(qiáng)勢(shì)區(qū):=IF((EVERY(向下>=REF(向下,1),1)),-0.2,0)COLOR0000FF,LINETHICK3; 買入信號(hào):IF(((CROSS(-0.01,強(qiáng)勢(shì)區(qū))) AND DIF<> DRAWTEXT_FIX(1,0.00,0.00,0,''),COLORYELLOW; DRAWTEXT_FIX(1,0.00,0.15,0,''),COLORYELLOW; 關(guān)注我,還有看我的娛樂視頻啊哈哈 |
|