副图公式 源码支持手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
N:=6;M1:=2;M2:=2;M3:=10;
RSV1:=(G1-LLV(G2,N))/(HHV(G4,N)-LLV(G2,N))*100;
K1:SMA(RSV1,M1,1),LINETHICK1,COLORBLUE;
D1:SMA(K1,M2,1),LINETHICK1,COLORRED;
顶:90,LINETHICK2,COLORRED;
买入1:IF(G2<=HHV(G4,M3 )*0.905 AND D1<=22,80,3),LINETHICK2,COLOR00CC33;
买入2:IF(G2<=LLV(G2,M3) AND D1<=40,30,0),LINETHICK2,COLOR009933;
买入3:G2<=LLV(G2,M3)*0.905*0.905+0.20,LINETHICK2,COLORRED;
买入4:IF(G2<=LLV(G2,M3)*0.86+0.20 AND D1<=40,60,2),LINETHICK2,COLOR009933;
卖出1:IF(G4>=LLV(G2,M3)*1.1382 AND D1>=70,90,0),LINETHICK2,COLORRED;
卖出2:IF(G4>=LLV(G2,M3)*1.1382*1.1382 AND D1>=76,95,0),LINETHICK2,COLOR0099CC;
卖出3:IF(G4>=LLV(G2,M3)*1.1382*1.1382*1.1382 AND D1>=85,95,0),LINETHICK2,COLOR0099CC;
选股公式源码
{选股公式一:买入1}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
N:=6;M1:=2;M2:=2;M3:=10;
RSV1:=(G1-LLV(G2,N))/(HHV(G4,N)-LLV(G2,N))*100;
K1:=SMA(RSV1,M1,1),LINETHICK1,COLORBLUE;
D1:=SMA(K1,M2,1),LINETHICK1,COLORRED;
买入1:G2<=HHV(G4,M3 )*0.905 AND D1<=22,LINETHICK2,COLOR00CC33;
{选股公式二:买入2}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
N:=6;M1:=2;M2:=2;M3:=10;
RSV1:=(G1-LLV(G2,N))/(HHV(G4,N)-LLV(G2,N))*100;
K1:=SMA(RSV1,M1,1),LINETHICK1,COLORBLUE;
D1:=SMA(K1,M2,1),LINETHICK1,COLORRED;
买入2:G2<=LLV(G2,M3) AND D1<=40,LINETHICK2,COLOR009933;
{选股公式三:买入3}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
N:=6;M1:=2;M2:=2;M3:=10;
买入3:G2<=LLV(G2,M3)*0.905*0.905+0.20,LINETHICK2,COLORRED;
{选股公式四:买入4}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
N:=6;M1:=2;M2:=2;M3:=10;
RSV1:=(G1-LLV(G2,N))/(HHV(G4,N)-LLV(G2,N))*100;
K1:=SMA(RSV1,M1,1),LINETHICK1,COLORBLUE;
D1:=SMA(K1,M2,1),LINETHICK1,COLORRED;
买入4:G2<=LLV(G2,M3)*0.86+0.20 AND D1<=40,LINETHICK2,COLOR009933;
|