A1:=(MA(C,7)-MA(C,21));
B1:=(MA((0.668*REF(A1,1)+0.333*A1),1));
短线做多:IF(A1>=B1,A1,B1),LINETHICK1,COLORRED;
短线做空:IF(B1-A1,B1,A1),LINETHICK1,COLORFFFF00;
短线:=短线做多-短线做空;
{-股票公式网站 }
JJ:=(C*2+H+L)/4;
SK:=(MA(JJ,13)-MA(JJ,21));
SD:=MA(SK,3);
SP:=MA(SK,10);
长线持股:IF(SD>=SP,SD,SP),COLORYELLOW LINETHICK2;
长线止损:IF(SP-SD,SP,SD),LINETHICK2,COLOR00FF00;
长线:=长线持股-长线止损;