2、COLORYELLOW,LINETHICK2;A1X:=(AA-REF(AA,1))/REF(AA,1)*100;A2X:=(BB-REF(BB,1))/REF(BB,1)*100;G:=BARSLAST(CROSS(A1X,0));必卖止损:REF(A0,G),COLORCYAN,LINETHICK1;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5<-0.1ANDA5>A6);见底:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLED
3、OT;见顶:IF(H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,DRAWNULL),COLORGREEN,CIRCLEDOT;MA5:=MA(C,5);MA13:=MA(C,13);高:=REF(HHV(H,N),M);低:=REF(LLV(L,N),M);H19:=高-(高-低)*0.191;H38:=高-(高-低)*0.382;H中:=高-(高-低)*0.5;H61:=高-(高-低)*0.618;H80:=高-(高-低)*
4、0.809;顶点:REFDATE(高,DATE),COLORRED;%19.8:REFDATE(H19,DATE),COLORYELLOW;%38.2:REFDATE(H38,DATE),COLORMAGENTA;%50:REFDATE(H中,DATE),COLORBLUE;%61.8:REFDATE(H61,DATE),COLORMAGENTA;%80.9:REFDATE(H80,DATE),COLORYELLOW;低点:REFDATE(低,DATE),COLORWHITE;DRAWTEXT(ISLASTBAR,顶点,'顶
5、点'),COLORRED;DRAWTEXT(ISLASTBAR,%19.8,'%19.8'),COLORYELLOW;DRAWTEXT(ISLASTBAR,%38.2,'%38.2'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,%50,'%50'),COLORBLUE;DRAWTEXT(ISLASTBAR,%61.8,'%61.8'),COLORMAGENTA;DRAWTEXT(ISLASTBAR,%80.9,'%80.9'),COLORYELLOW;DRAWTEXT(ISLASTBAR,低点,'低点'
6、),COLORWHITE;DIFF:=(EMA(CLOSE,7)-EMA(CLOSE,19));DEA:=EMA(DIFF,9);MACD:=0.90*(DIFF-DEA);TJ:=(DIFF>=DEA);TJ1:=(DIFF>=0);STICKLINE(TJ,H,L,0.4,0),COLORYELLOW;STICKLINE(TJ,O,C,4,1),COLOR0088FF;STICKLINE(TJ,O,C,3.4,1),COLOR00AAFF;STICKLINE(TJ,O,C,2.8,1),COLOR00CCFF;STICK
7、LINE(TJ,O,C,2,1),COLOR00DDFF;STICKLINE(TJ,O,C,1.2,1),COLOR55FFFF;STICKLINE(TJ,O,C,0.4,1),COLOR99FFFF;STICKLINE(TJ1ANDTJ,H,L,0.4,0),COLORF00FF0;STICKLINE(TJ1ANDTJ,O,C,4,1),COLORFF33FF;STICKLINE(TJ1ANDTJ,O,C,3.4,1),COLORFF55FF;STICKLINE(TJ1ANDTJ,O,C,2.8,1),COLORFF77F
8、F;STICKLINE(TJ1ANDTJ,O,C,2,1),COLORFF99FF;STICKLINE(TJ1ANDTJ,O,C,1.2,1),COLORFFBBFF;STICKLINE(TJ1ANDTJ,O,C,0.4,1),COLORFFDDFF;STICKLINE(DIFF