DEA:MACD.DEA,COLORYELLOW;
强度1:IF(DEA< DIF,DEA,DRAWNULL),COLORMAGENTA;
MACD2:=MACD;
S05:=SUM(MJ,0);
QXT:=BARSLAST(MJ>0 AND REF(MJ,1)< 0)+1;
ST:=IF(MJ>0,REF(QST,QXT)+QXT,REF(QXT,QST)+QST);
低位金叉:=CROSS(DIF,DEA) AND DIF< -0.1;
二次金叉:=CROSS(DIF,DEA) AND DEA< 0 AND COUNT(JCCOUNT=2,21)=1;
三次金叉:=CROSS(DIF,DEA) AND DEA< 0 AND COUNT(JCCOUNT=3,60)=1;
A002:=BARSLAST(REF(CROSS(DIF,DEA),1));
DRAWICON(LONGCROSS(CLOSE,MA(CLOSE,5),17),MACD2,1);
C81:=REF(C,1);
RSI1:=SMA(MAX(C-C81,0),RN,1)/SMA(ABS(C-C81),RN,1)*100;
STICKLINE(低点,0.1,0,0.3,0),COLORYELLOW;
DRAWTEXT(低点, 0.14,'←底'),COLORYELLOW;
DRAWICON(顶, DIF*1.15,2);
死叉:=CROSS(DEA,DIF);
N2:=REF(BARSLAST(死叉),N1+1),NODRAW;
CL1:=LLV(C,N1+1),NODRAW;
CL2:=REF(CL1,N1+1),NODRAW;
CL3:=REF(CL2,N1+1),NODRAW;
PDIFL2:=IF(DIFL2>0,INTPART(LOG(DIFL2))-1,INTPART(LOG(-DIFL2))-1);
PDIFL3:=IF(DIFL3>0,INTPART(LOG(DIFL3))-1,INTPART(LOG(-DIFL3))-1);
MDIFB2:=INTPART(DIF/POW(10,PDIFL2));
直接底背离:=(CL1< CL2 );