副图公式源码支持: 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
MA5:MA(G1,5);
MA10:MA(G1,10);
MA20:MA(G1,20);
MA60:MA(G1,60);
GUP1:=REF(G1,1);
GUP2:=SMA(MAX(G1-GUP1,0),2,1)/SMA(ABS(G1-GUP1),2,1)*100;
GUP3:=(G1-LLV(G2,9))/(HHV(G4,9)-LLV(G2,9))*100;
GUP4:=SMA(GUP3,3,1)*GUP2/100;
GUP5:=SMA(MAX(G1-GUP1,0),275,1)/SMA(ABS(G1-GUP1),275,1)*100;
GUP6:=(G1-LLV(G2,26))/(HHV(G4,26)-LLV(G2,26))*100;
GUP7:=SMA(GUP6,2,1)*GUP5/100;
GUP8:=SMA(MAX(G1-GUP1,0),139,1)/SMA(ABS(G1-GUP1),139,1)*100;
GUP9:=(G1-LLV(G2,33))/(HHV(G4,33)-LLV(G2,33))*100;
GUP10:=SMA(GUP9,2,1)*GUP8/100;
DRAWTEXT(IF(G1>MA(HHV(G4,670),20),CROSS(GUP10,64),CROSS(GUP4,80)),G4*1.005,'逃顶A'),COLORGREEN;
DRAWTEXT(REF(EVERY(MA(G1,5)<MA(G1,10),13),1) AND REF(G1,1)/REF(G1,2)>1.03 AND REF(VOL,1)/REF(VOL,2)>1.2 AND G1<REF(G1,1) AND VOL>REF(VOL,1),G4*1.005,'逃顶B'),COLORGREEN;
DRAWTEXT(FILTER(IF(G1<MA(LLV(G2,8),20),REF(GUP7,1)<4 AND GUP7>REF(GUP7,1),CROSS(4.5,GUP4)),3),G2*0.995,'抄底'),COLORYELLOW;
选股公式源码
{选股公式:抄底}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=REF(G1,1);
GUP2:=SMA(MAX(G1-GUP1,0),2,1)/SMA(ABS(G1-GUP1),2,1)*100;
GUP3:=(G1-LLV(G2,9))/(HHV(G4,9)-LLV(G2,9))*100;
GUP4:=SMA(GUP3,3,1)*GUP2/100;
GUP5:=SMA(MAX(G1-GUP1,0),275,1)/SMA(ABS(G1-GUP1),275,1)*100;
GUP6:=(G1-LLV(G2,26))/(HHV(G4,26)-LLV(G2,26))*100;
GUP7:=SMA(GUP6,2,1)*GUP5/100;
抄底:FILTER(IF(G1<MA(LLV(G2,8),20),REF(GUP7,1)<4 AND GUP7>REF(GUP7,1),CROSS(4.5,GUP4)),3);
{卖出公式一:逃顶A}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=REF(G1,1);
GUP2:=SMA(MAX(G1-GUP1,0),2,1)/SMA(ABS(G1-GUP1),2,1)*100;
GUP3:=(G1-LLV(G2,9))/(HHV(G4,9)-LLV(G2,9))*100;
GUP4:=SMA(GUP3,3,1)*GUP2/100;
GUP5:=SMA(MAX(G1-GUP1,0),275,1)/SMA(ABS(G1-GUP1),275,1)*100;
GUP6:=(G1-LLV(G2,26))/(HHV(G4,26)-LLV(G2,26))*100;
GUP7:=SMA(GUP6,2,1)*GUP5/100;
GUP8:=SMA(MAX(G1-GUP1,0),139,1)/SMA(ABS(G1-GUP1),139,1)*100;
GUP9:=(G1-LLV(G2,33))/(HHV(G4,33)-LLV(G2,33))*100;
GUP10:=SMA(GUP9,2,1)*GUP8/100;
逃顶A:IF(G1>MA(HHV(G4,670),20),CROSS(GUP10,64),CROSS(GUP4,80));
{卖出公式二:逃顶B}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
逃顶B:REF(EVERY(MA(G1,5)<MA(G1,10),13),1) AND REF(G1,1)/REF(G1,2)>1.03 AND REF(VOL,1)/REF(VOL,2)>1.2 AND G1<REF(G1,1) AND VOL>REF(VOL,1); |