副图公式源码 :支持手机/电脑
走势线17:EMA(CLOSE,17),COLORGREEN;
短线50:EMA(CLOSE,50),COLORYELLOW,LINETHICK2;
长线453:EMA(CLOSE,453),COLORRED,LINETHICK2;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
MACD:=0.90*(DIFF-DEA);
条件:=(DIFF>=DEA);
条件1:=(DIFF>=0);
STICKLINE(条件,H,L,0,0),COLORYELLOW;
STICKLINE(条件,O,C,8,0),COLORYELLOW;
STICKLINE(条件1 AND 条件,H,L,0,0),COLORRED;
STICKLINE(条件1 AND 条件,O,C,8,0),COLORRED;
STICKLINE(DIFF<DEA,H,L,0,1),COLORFFCC00;
STICKLINE(DIFF<DEA,O,C,8,1),COLORFFCC00;
GUP1:=(CLOSE*2+HIGH+LOW)/4;
SK:=EMA(GUP1,13)-EMA(GUP1,73);
SD:=EMA(SK,2);
DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),L*0.99,'短买'),COLORGREEN;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0.5,0),COLORRED;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,10,1),LINETHICK3,COLORRED;
选股公式源码
{选股公式:短买}
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
MACD:=0.90*(DIFF-DEA);
条件:=(DIFF>=DEA);
条件1:=(DIFF>=0);
GUP1:=(CLOSE*2+HIGH+LOW)/4;
SK:=EMA(GUP1,13)-EMA(GUP1,73);
SD:=EMA(SK,2);
短买CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )
OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)); |