副图公式源码支持: 手机/电脑
N1:=7;LC:=REF(CLOSE,1);
X:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*1000,COLORYELLOW;
GUP1R:=(HIGH+LOW+CLOSE*2)/4;
GUP2R:=EMA(GUP1R,21);
GUP3R:=STD(GUP1R,21);
GUP4R:=((GUP1R-GUP2R)/GUP3R*100+200)/4;
GUP5R:=(EMA(GUP4R,5)-25)*1.56;
AK:=EMA(GUP5R,2)*1.22;
AD1:=EMA(AK,2);
拐点:=CROSS(AD1,AK);
DRAWTEXT(拐点,X,'变');
GUP6R:=((C+2*L)/3-LLV(L,8))/(HHV(H,8)-LLV(L,8))*100;
GUP7R:=SMA(GUP6R,2,1);
DRAWTEXT(X>50 AND X<=80 AND CROSS(X,GUP7R),X,'追'),COLORYELLOW;
DRAWTEXT(CROSS(X,70) AND GUP7R<15,X,'底'),COLORRED;
DRAWTEXT(CROSS(X,85) AND GUP7R<10,X,'涨'),COLORMAGENTA;
DRAWTEXT(GUP7R<11 AND GUP7R>REF(GUP7R,1),GUP7R,'升'),COLORRED;
DRAWTEXT(CROSS(X,70) AND GUP7R<20,X,'买'),COLORRED;
选股公式源码:
{选股公式一:买}
N1:=7;LC:=REF(CLOSE,1);
X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*1000,COLORYELLOW;
GUP6R:=((C+2*L)/3-LLV(L,8))/(HHV(H,8)-LLV(L,8))*100;
GUP7R:=SMA(GUP6R,2,1);
买:CROSS(X,70) AND GUP7R<20;
{选股公式二:底}
N1:=7;LC:=REF(CLOSE,1);
X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*1000,COLORYELLOW;
GUP6R:=((C+2*L)/3-LLV(L,8))/(HHV(H,8)-LLV(L,8))*100;
GUP7R:=SMA(GUP6R,2,1);
底:CROSS(X,70) AND GUP7R<15;
{选股公式三:涨}
N1:=7;LC:=REF(CLOSE,1);
X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*1000,COLORYELLOW;
GUP6R:=((C+2*L)/3-LLV(L,8))/(HHV(H,8)-LLV(L,8))*100;
GUP7R:=SMA(GUP6R,2,1);
涨:CROSS(X,85) AND GUP7R<10;
{选股公式四:追}
N1:=7;LC:=REF(CLOSE,1);
X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*1000,COLORYELLOW;
GUP6R:=((C+2*L)/3-LLV(L,8))/(HHV(H,8)-LLV(L,8))*100;
GUP7R:=SMA(GUP6R,2,1);
追:X>50 AND X<=80 AND CROSS(X,GUP7R);
{选股公式五:升}
N1:=7;LC:=REF(CLOSE,1);
X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*1000,COLORYELLOW;
GUP6R:=((C+2*L)/3-LLV(L,8))/(HHV(H,8)-LLV(L,8))*100;
GUP7R:=SMA(GUP6R,2,1);
升:GUP7R<11 AND GUP7R>REF(GUP7R,1);
|