N:=5;P1:=55;
MA13:EMA(C,13);
成本线: EMA(COST(81),10) COLORYELLOW,LINETHICK1;
STICKLINE(REF(C>O,2) AND REF(C<O OR C<REF(C,1),1) AND (C>EMA(C,200) AND C>=O AND C>EMA(C,200)),EMA(C,210),EMA(C,170),1.5,0),COLORBLUE;
STICKLINE(EMA(C,200)>REF(EMA(C,200),1) AND EMA(C,50)>REF(EMA(C,50),1) ,EMA(C,200),EMA(C,180),1,0),COLORRED;
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);
前期高位:REF(C,BARSLAST(HD)),COLOR8000FF,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLOR8000FF;
A0:=REF(TY,7)=HHV(TY,2*7+1);
B0:=FILTER(A0,7);
C0:=BACKSET(B0,7+1);
HD0:=FILTER(C0,7);
前期高位0:=REF(C,BARSLAST(HD0)),COLORBLUE,POINTDOT;
STICKLINE(C,前期高位0,前期高位0,8,0),COLORBLUE;
VAR1W:=(C+H+O+L)/4;
卖出:=XMA(VAR1W,N)*(1+P1/1000);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;