副图公式源码支持 手机/电脑
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUA1:=MA(C,1);
GUA2:=EMA(100*(C-LLV(G2,34))/(HHV(H,34)-LLV(G2,34)),3);
GUP0:=(G1-LLV(G2,60))/(HHV(G4,60)-LLV(G2,60))*100;
GUP3:=SMA(GUP0,3,1);
GUP1:=SMA(GUP3,4,1)-50;
GUP2:=REF(GUP1,1)<GUP1;
底部:=GUP2 AND CROSS(GUA2,9);
DRAWICON(底部,G2,1);
DRAWTEXT(底部,GUA1*0.95,'买');
卖出:=C>REF(C,BARSLAST(底部)) AND CROSS(MA(C,10),MA(C,5)) AND COUNT(C>REF(C,BARSLAST(底部)) AND CROSS(MA(C,10),MA(C,5)) ,BARSLAST(底部))=1 AND COUNT(C<REF(C*0.95,BARSLAST(底部)),BARSLAST(底部))=0;
DRAWICON(卖出,GUA1,2);
DRAWTEXT(卖出,GUA1*1.05,'卖');
选股公式源码
{卖出公式:卖}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUA1:=MA(C,1);
GUA2:=EMA(100*(C-LLV(G2,34))/(HHV(H,34)-LLV(G2,34)),3);
GUP0:=(G1-LLV(G2,60))/(HHV(G4,60)-LLV(G2,60))*100;
GUP3:=SMA(GUP0,3,1);
GUP1:=SMA(GUP3,4,1)-50;
GUP2:=REF(GUP1,1)<GUP1;
底部:=GUP2 AND CROSS(GUA2,9);
卖出:=C>REF(C,BARSLAST(底部)) AND CROSS(MA(C,10),MA(C,5)) AND COUNT(C>REF(C,BARSLAST(底部)) AND CROSS(MA(C,10),MA(C,5)) ,BARSLAST(底部))=1 AND COUNT(C<REF(C*0.95,BARSLAST(底部)),BARSLAST(底部))=0;
卖:卖出;
{选股公式:买}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
GUA1:=MA(C,1);
GUA2:=EMA(100*(C-LLV(G2,34))/(HHV(H,34)-LLV(G2,34)),3);
GUP0:=(G1-LLV(G2,60))/(HHV(G4,60)-LLV(G2,60))*100;
GUP3:=SMA(GUP0,3,1);
GUP1:=SMA(GUP3,4,1)-50;
GUP2:=REF(GUP1,1)<GUP1;
底部:=GUP2 AND CROSS(GUA2,9);
买:底部; |