AX1:=EMA(CLOSE,7);
AX2:=EMA(AX1,15);
AX3:=EMA(AX2,30);
AX4:=EMA(AX3,45);
AX5:=EMA(AX4,60);
AX6:=EMA(AX5,75);
AX7:=EMA(AX6,90);
AX8:=EMA(AX7,105);
AX9:=EMA(AX8,120);
AX10:=EMA(AX9,135);
AX11:=EMA(AX10,150);
AX12:=EMA(AX11,165);
AX13:=EMA(AX12,180);
AX14:=EMA(AX13,195);
AX15:=EMA(AX14,210);
AX16:=EMA(AX15,225);
AX17:=EMA(AX16,240);
AX18:=EMA(AX10,255);
AX19:=EMA(AX14,270);
AX20:=EMA(AX15,285);
AX21:=EMA(AX16,300);
AX22:=EMA(AX10,315);
AX23:=EMA(AX16,330);
分界:EMA(AX10,345),LINETHICK3,colorFFFFFF;
PARTLINE(CLOSE>分界,分界),LINETHICK4,colorFF;
PARTLINE(CLOSE>分界 AND 分界>REF(分界,1),分界),LINETHICK2,colorFFFF;
顶:=分界*1.95;
分界上:分界*0.94;
分界下:分界*1.06;
低:=分界*0.4;
上50:=(分界*1.95+分界)/2;
下50:=(分界*0.4+分界)/2;
顶1:=顶*1.29;
顶2:=顶*1.6;
低1:=低*0.666;
低2:=低1*0.63;
低3:=低2*0.6;
低4:=低3*0.6;
PARTLINE(CLOSE>顶1,顶2),POINTDOT,LINETHICK1;
PARTLINE(CLOSE>顶1,顶1),POINTDOT,LINETHICK1;
PARTLINE(CLOSE>上50,顶),POINTDOT,LINETHICK2,colorFFFFFF;
PARTLINE(CLOSE>分界,上50),POINTDOT,LINETHICK1,colorFFFF00;
PARTLINE(CLOSE<分界,下50),POINTDOT,LINETHICK1,colorFFFF00;
PARTLINE(CLOSE<分界,低),POINTDOT,LINETHICK2,colorFFFF;
PARTLINE(CLOSE<低,低1),POINTDOT,LINETHICK0,colorFF00;
PARTLINE(CLOSE<低1,低2),POINTDOT,LINETHICK1,colorFF;
PARTLINE(CLOSE<低2,低3),POINTDOT,LINETHICK1;
PARTLINE(CLOSE<低3,低4),POINTDOT,LINETHICK1;