压力0:MA(REF(HHV(C,30),1),2),COLORGREEN,LINETHICK2;
支撑0:MA(REF(LLV(C,30),1),2),COLORGREEN,LINETHICK2;
DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.988,'★日买底离★') ;
DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.014,'★日卖顶离★');
DRAWTEXT(CROSS(REF(ZIG(3,2),1),ZIG(3,2)),HIGH*1.008,'●36卖M离●');
DRAWTEXT(CROSS(ZIG(3,2),REF(ZIG(3,2),1)),LOW*0.996,'●36买底离●') ;
MA1:MA(CLOSE,15);
MA66:=MA(C,2);
MA6:MA(C,5);
MA18:MA(C,10);
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD)
顶:IF(T1,A,A),COLORYELLOW,POINTDOT;
底:IF(T2,B,B),COLORGREEN,POINTDOT;
VAR1:=IF(1.1>SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.05,SMA(HIGH,21,5)*1.05,SMA(HIGH,21,2)*1.05),POINTDOT,COLORFF6600;
VAR2:=IF(1.09>SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.45,SMA(LOW,10,1),SMA(LOW,5,1)),POINTDOT,COLORF00FF0;
VAR3:=IF(MA(VOL,2)>MA(VOL,3)/2>MA(VOL,5), SMA(HIGH,2,1),SMA(CLOSE,3,1)) ,COLORFFFFFF;
买入1:=DRAWTEXT(CROSS(VAR3,MA1),VAR2,'马'),COLORMAGENTA;
买入2:=DRAWTEXT(CROSS(VAR3,VAR1),VAR2,'牛'),COLORCYAN;
STICKLINE(买入1,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(买入1,O,C,4,1),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(MA6,顶),VAR2,'追1'),COLORMAGENTA;
DRAWTEXT(CROSS(MA18,顶),VAR2,'追2'),COLORCYAN;