X_1:=30;
X_2:=30;
X_3:=15;
X_4:=1;
X_5:=(CLOSE-MA(CLOSE,X_1))/MA(CLOSE,X_2)*100;
X_6:=MA(X_5,X_3);
X_7:=REF(X_6,X_4);
X_8:=X_6-X_7;
MA5:MA(CLOSE,5),COLORMAGENTA;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,20),COLORLIBLUE;
多空线:EMA(CLOSE,99),COLORBLUE,LINETHICK3;
战略线:MA(CLOSE,99),COLORWHITE,LINETHICK2;
IF(X_8>=0,MA5,DRAWNULL),COLORRED,LINETHICK4;
IF(X_8<0,MA5,DRAWNULL),COLORGREEN,LINETHICK4;
DRAWTEXT_FIX(CLOSE>OPEN,0.01,0.01,0,4),COLORYELLOW;