N1:=9;
N2:=5;
MTM:=C-REF(C,1);
主力轨迹:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORWHITE;
MAZL:MA(主力轨迹,N2),COLORYELLOW;
主力跟踪1:=REF((LOW+O+C+H)/4,1);
主力跟踪2:=SMA(ABS(LOW-主力跟踪1),13,1)/SMA(MAX(LOW-主力跟踪1,0),10,1);
主力跟踪3:=EMA(主力跟踪2,10);
主力跟踪4:=LLV(LOW,33);
主力跟踪5:=EMA(IF(LOW<=主力跟踪4,主力跟踪3,0),3);
洗盘:IF(主力跟踪5>REF(主力跟踪5,1),主力跟踪5,0),COLORRED,NODRAW;
STICKLINE(主力跟踪5>REF(主力跟踪5,1),0,主力跟踪5,3,0 ),COLOR000055;
STICKLINE(主力跟踪5>REF(主力跟踪5,1),0,主力跟踪5,2.6,0 ),COLOR000077;
STICKLINE(主力跟踪5>REF(主力跟踪5,1),0,主力跟踪5,2.1,0 ),COLOR000099;
STICKLINE(主力跟踪5>REF(主力跟踪5,1),0,主力跟踪5,1.5,0 ),COLOR0000BB;
STICKLINE(主力跟踪5>REF(主力跟踪5,1),0,主力跟踪5,0.9,0 ),COLOR0000DD;
STICKLINE(主力跟踪5>REF(主力跟踪5,1),0,主力跟踪5,0.3,0 ),COLOR0000FF;
主力进场:IF(主力跟踪5< REF(主力跟踪5,1),主力跟踪5,0),COLOR000079,NODRAW;
STICKLINE(主力跟踪5< REF(主力跟踪5,1),0,主力跟踪5,3,0),COLOR000079;
STICKLINE(主力跟踪5< REF(主力跟踪5,1),0,主力跟踪5,2.6,0),COLOR000093;
STICKLINE(主力跟踪5< REF(主力跟踪5,1),0,主力跟踪5,2.1,0),COLOR0000C6;
STICKLINE(主力跟踪5< REF(主力跟踪5,1),0,主力跟踪5,1.5,0),COLOR4A4AFF;
STICKLINE(主力跟踪5< REF(主力跟踪5,1),0,主力跟踪5,0.9,0),COLOR7D7DFF;
STICKLINE(主力跟踪5< REF(主力跟踪5,1),0,主力跟踪5,0.3,0),COLORAAAAFF;
主力跟踪21:=SMA(ABS(H-主力跟踪1),13,1)/SMA(MIN(H-主力跟踪1,0),10,1);
主力跟踪31:=EMA(主力跟踪21,10);
主力跟踪41:=HHV(H,33);
主力跟踪51:=EMA(IF(H>=主力跟踪41,主力跟踪31,0),3);
主力拉高:IF(主力跟踪51< REF(主力跟踪51,1),主力跟踪51,0),COLORYELLOW,NODRAW;
STICKLINE(主力跟踪51< REF(主力跟踪51,1),0,主力跟踪51,3,0),COLOR005555;
STICKLINE(主力跟踪51< REF(主力跟踪51,1),0,主力跟踪51,2.6,0),COLOR007777;
STICKLINE(主力跟踪51< REF(主力跟踪51,1),0,主力跟踪51,2.1,0),COLOR009999;
STICKLINE(主力跟踪51< REF(主力跟踪51,1),0,主力跟踪51,1.5,0),COLOR11BBBB;
STICKLINE(主力跟踪51< REF(主力跟踪51,1),0,主力跟踪51,0.9,0),COLOR33DDDD;
STICKLINE(主力跟踪51< REF(主力跟踪51,1),0,主力跟踪51,0.3,0),COLOR55FFFF;
出货:IF(主力跟踪51>REF(主力跟踪51,1),主力跟踪51,0),COLORCYAN,NODRAW;
STICKLINE(主力跟踪51>REF(主力跟踪51,1),0,主力跟踪51,3,0 ),COLORCYAN;
STICKLINE(主力跟踪51>REF(主力跟踪51,1),0,主力跟踪51,3,0),COLOR555555;
STICKLINE(主力跟踪51>REF(主力跟踪51,1),0,主力跟踪51,2.6,0),COLOR777777;
STICKLINE(主力跟踪51>REF(主力跟踪51,1),0,主力跟踪51,2.1,0),COLOR999999;
STICKLINE(主力跟踪51>REF(主力跟踪51,1),0,主力跟踪51,1.5,0),COLORBBBBBB;
STICKLINE(主力跟踪51>REF(主力跟踪51,1),0,主力跟踪51,0.9,0),COLORDDDDDD;
STICKLINE(主力跟踪51>REF(主力跟踪51,1),0,主力跟踪51,0.3,0),COLORFFFFFF;