红色表示买,换色表示卖,短期频繁操作指标。
N:=150;
高1:=REF(HHV(H,N),3);
低1:=REF(LLV(L,N),3);
H1:=高1-(高1-低1)*0.809;
H2:=高1-(高1-低1)*0.618;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.382;
H5:=高1-(高1-低1)*0.191;
天:REFDATE(高1,DATE),colorgreen,CROSSDOT,LINETHICK1;
地:REFDATE(低1,DATE),colorred,CROSSDOT,LINETHICK1;
下191:REFDATE(H1,DATE),colorcyan,POINTDOT;
下382:REFDATE(H2,DATE),coloryellow,POINTDOT;
中5:REFDATE(H3,DATE),colormagenta,LINETHICK2;
上618:REFDATE(H4,DATE),coloryellow,POINTDOT;
上809:REFDATE(H5,DATE),colorcyan,POINTDOT;
DRAWICON(CROSS(ZIG(3,12),REF(ZIG(3,12),1)),LOW*0.80,7);
DRAWICON(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),LOW*0.98,1);
DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.92,3);
DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.86,5);
DRAWICON(CROSS(REF(ZIG(3,12),1),ZIG(3,12)),HIGH*1.16,8);
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.11,6);
DRAWICON(CROSS(REF(ZIG(3,8),1),ZIG(3,8)),HIGH*1.06,4);
DRAWICON(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),HIGH*1.02,2);
红轨道:=MA(MA(CLOSE,3),1);
轨道:MA(MA(CLOSE,3),3),colorblue,LINETHICK2;
升:IF(红轨道>=轨道,轨道,红轨道),coloryellow,LINETHICK2;