1、指标源码:DIFF:(EMA(CL0SE,12) - EMA(CLOSE,26)*20,COLORFFFFFF,LINETHICK1;DEA: EMA(DIFF,9),COLOROOF 阡F 丄 INETHICK1;MACD:2*(DIFF-DEA), COLORSTICK;MACD1:2*(DIFF-DEA),COLORRED,LINETHICKO;MACD2:SMA(MACDl,Oz3),COLORFFFFOO,LINETHICKO;STICKLINE(MACD1MACD2 AND MACD10,0,MACD1Z2,0)ZCOLORRED;STICKLINE(MACD1MACD2 AND 2、MACDl0,OzMACDl,2zO),COLOROOFFFF;STICKLINE(MACDKMACD2,0,MACDl,l/0)/COLOR40FF00;Sl:=MACD=0);S3:=BARSLAST(CROSS(DIFF,DEA);S4:=REF(S3,S3+1);S5:=DEAREF(DEA,S4);S6:=DEA;上成立:=CROSS(DIFF,DEA) AND S5;下成立:二CROSS(DIFFQEA) AND S6;L1:=(EMA(CLOSEZ3) EMA(CLOSE,13);L2:=EMA(L1,9);L3:=BARSLAST(CROSS(L1,L2);L4:=REF(L3 3、,L3+1);L5:=L2;变盘:CROSS(L1 丄2) AND L5丄INETHICKO,COLORD6FF9C;STICKLINE(变盘 z5r5zll),COLORD6FF9C;成立距今:BARSLAST(CROSS(DIFF,DEA)丄 INETHICKO;L6:=BARSCOUNT(CLOSE);DRAWTEXT(CROSS(L1 丄 2)QIFF,买 J,COLOROOOOFF;DRAWTEXT(CROSS(L2,L1),DIFF;卖 jCOLORFFFFOO;REF(DEA,S3),POINTDOT,COLORGREEN;IF(LlL2,REF(DEAzS3)zO),POINT 4、DOT,LINETHICK5,COLORB078FF;IF(MACDvO,REF(DEA,S3),0),POINTDOT 丄 INETHICK5,COLORGREEN; 1_S:=IF(DIFFDEA AND DIFF0zl,0);加速上扬:IF(REF(LS=O,1) AND LS=lz0.1z0);XG1:CROSS(MACD1 zMACD2) AND MACDlvO丄INETHICKO;XG2:CROSS(DIFF,DEA)丄 INETHICKO;M1:=MACDREF(MACD,1) AND DIFFMA(C,55) ANDCOUNT(MACD=5,LINETHICKO;DRAWTEXT(绿柱短 了,MACD,绿柱短了)COLOROOFF80; |
|