涨停:=C/REF(C,1)>1.0970 AND C=H AND C/REF(C,1)<1.11;
T:=BArslAST(REF(CLOSE,1)/REF(CLOSE,2)>1.05);
魔笛量化值:=(COST(90+(100-90)/2)-COST((100-90)/2))/(COST(90+(100-90)/2)+COST((100-90)/2))*100/2;
周期:=BARSLAST(REF(NOT(涨停),1) AND 涨停);
量化起点:=周期=0 AND CLOSE>=REF(CLOSE,T+1);
X_1:=FORCAST(EMA(CLOSE,3),8);
X_2:=FORCAST(EMA(CLOSE,5),8);
X_3:=FORCAST(EMA(CLOSE,8),8);
X_4:=FORCAST(EMA(CLOSE,13),8);
X_5:=FORCAST(EMA(CLOSE,21),8);
X_6:=X_1+X_2+X_3+X_4-4*X_5;
X_7:=EMA(X_6,2);
X_8:=Abs(X_7)+ABS(REF(X_7,1));
X_9:=(3*CLOSE+2*OPEN+HIGH+LOW)/7;
X_10:=FORCAST(EMA(X_9,16),8);
STICKLINE(X_7>=REF(X_7,1) AND X_10>=REF(X_10,1),0,X_8,2.5,0),COLORRED;
STICKLINE(X_7<REF(X_7,1) AND X_10<=REF(X_10,1),0,X_8,2.5,0),COLORGREEN;
STICKLINE(X_7>=REF(X_7,1) AND X_10<REF(X_10,1),0,X_8,2.56,1),COLORGREEN;
STICKLINE(X_7<REF(X_7,1) AND X_10>=REF(X_10,1),0,X_8,2.5,1),COLORRED;
STICKLINE(量化起点,0,X_8/2,3,0),COLORYELLOW;