副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUP1:=(G1-REF(G1,1))/REF(G1,1)*100;
GUP2:=(G1-LLV(G2,18))/(HHV(G4,18)-LLV(G2,18))*100;
GUP3:=SMA(GUP2,9,1);
GUP4:=SMA(GUP3,3,1);
趋势线:3*GUP3-2*GUP4,COLOR1010FF;
IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORRED;
IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),COLORGREEN;
E1:EMA(GUP3,3),COLORFFDDCC;
E2:EMA(E1,3),COLORFFBBCC;
E3:EMA(E2,3),COLORFF99CC;
E4:EMA(E3,3),COLORFF55CC;
E5:EMA(E4,3),COLORFF33CC;
E6:EMA(E5,3),COLORFF11CC;
E7:EMA(E4,3),COLORFF00CC;
IF(E1>=REF(E1,1),E1,DRAWNULL),COLOR3333AA;
IF(E2>=REF(E2,1),E2,DRAWNULL),COLOR4444BB;
IF(E3>=REF(E3,1),E3,DRAWNULL),COLOR5555CC;
IF(E4>=REF(E4,1),E4,DRAWNULL),COLOR6666DD;
IF(E5>=REF(E5,1),E5,DRAWNULL),COLOR6666EE;
IF(E6>=REF(E6,1),E6,DRAWNULL),COLOR6666FF;
IF(E7>=REF(E7,1),E7,DRAWNULL),COLOR3333FF;
N:=27;M1:=9;M2:=5;M3:=3;A:=6;B:=49;
GUA2:=(G1-LLV(G2,N))/(HHV(G4,N)-LLV(G2,N))*100;
GUA3:=SMA(GUA2,M1,1);
GUAA:=(G1-LLV(G2,21.55))/(HHV(G4,21.55)-LLV(G2,34))*80;
GUAB:=SMA(GUAA,9,1);
GUAC:=SMA(GUAB,5,1);
GUB1:=REF(G1,1);
GUB2:=SMA(MAX(G1-GUB1,0),A,1)/SMA(ABS(G1-GUB1),A,1)*100;
GUB3:=CROSS(GUB2,14);
GUB4:=IF(CROSS(GUAB,GUAC) AND GUAB<13,20,0);
逃顶:IF(CROSS(68,GUB2),81,100),COLORLIGREEN;
抄底:IF((GUB4 OR GUB3),30,0),COLORMAGENTA;
选股公式源码
{选股公式:抄底}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
N:=27;M1:=9;M2:=5;M3:=3;A:=6;B:=49;
GUA2:=(G1-LLV(G2,N))/(HHV(G4,N)-LLV(G2,N))*100;
GUA3:=SMA(GUA2,M1,1);
GUAA:=(G1-LLV(G2,21.55))/(HHV(G4,21.55)-LLV(G2,34))*80;
GUAB:=SMA(GUAA,9,1);
GUAC:=SMA(GUAB,5,1);
GUB1:=REF(G1,1);
GUB2:=SMA(MAX(G1-GUB1,0),A,1)/SMA(ABS(G1-GUB1),A,1)*100;
GUB3:=CROSS(GUB2,14);
GUB4:=IF(CROSS(GUAB,GUAC) AND GUAB<13,20,0);
抄底GUB4 OR GUB3),COLORMAGENTA;
{卖出公式:逃顶}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
N:=27;M1:=9;M2:=5;M3:=3;A:=6;B:=49;
GUA2:=(G1-LLV(G2,N))/(HHV(G4,N)-LLV(G2,N))*100;
GUA3:=SMA(GUA2,M1,1);
GUAA:=(G1-LLV(G2,21.55))/(HHV(G4,21.55)-LLV(G2,34))*80;
GUAB:=SMA(GUAA,9,1);
GUAC:=SMA(GUAB,5,1);
GUB1:=REF(G1,1);
GUB2:=SMA(MAX(G1-GUB1,0),A,1)/SMA(ABS(G1-GUB1),A,1)*100;
逃顶:CROSS(68,GUB2),COLORLIGREEN;
|