XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3);
XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3);
TEMPG:=MAX(HIGH,XOPEN);
XHIGH:=EMA(MAX(TEMPG,XCLOSE),3);
TEMP:=MIN(LOW,XOPEN);
XLOW:=EMA(MIN(TEMP,XCLOSE),3);
O1:=IF(XOPEN<XCLOSE,XOPEN,XCLOSE);
C1:=IF(XOPEN<XCLOSE,XCLOSE,XOPEN);
B:=CLOSE*0;
短线:IF(B=-1,MA(HIGH,6),MA(LOW,6)),LINETHICK1,COLORWHITE;
IF(短线>REF(短线,1),短线,DRAWNULL),LINETHICK3,COLORYELLOW;
DRAWICON(CROSS(MA(LOW,6),REF(MA(LOW,6),1)),短线,13);
DRAWTEXT(CROSS(MA(LOW,6),REF(MA(LOW,6),1)),L*0.98,'买'),COLOR00FFFF;
中线:EMA(SLOPE(CLOSE,21)*20+CLOSE,55),LINETHICK1,COLORGREEN;
IF(中线>REF(中线,1),中线,DRAWNULL),LINETHICK3,COLORMAGENTA;
DRAWTEXT(CROSS(中线,REF(中线,1)),L,'加仓'),COLORMAGENTA;
DRAWICON(CROSS(中线,REF(中线,1)),中线,18);
X1:=(CLOSE+LOW+HIGH)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);{公式在线网提供:}
VAR2:=EMA(EMA(X1,1),13);
长线:EMA(VAR2,21),LINETHICK1,COLORBLUE;
IF(长线>REF(长线,1),长线,DRAWNULL),LINETHICK3,COLORRED;