副图公式 源码支持手机/电脑
GUP1:= (C>REF(C,1)*1.07 AND C>L AND C>O AND( REF(C,2)>REF(C,3)*1.099 AND REF(C,1)<REF(C,2)*0.99 ) )OR(C>REF(C,1)*1.07 AND C>L AND C>O AND( REF(C,3)>REF(C,4)*1.099 AND REF(C,1)<REF(C,3)*0.99 ) )OR(C>REF(C,1)*1.07 AND C>L AND C>O AND( REF(C,4)>REF(C,5)*1.099 AND REF(C,1)<REF(C,4)*0.99 ) )OR(C>REF(C,1)*1.07 AND C>L AND C>O AND( REF(C,5)>REF(C,6)*1.099 AND REF(C,1)<REF(C,5)*0.99 ) );
买入:EXIST(GUP1,1),COLORYELLOW;
GUA1:=HHVBARS(HIGH,15);
GUA2:=LLVBARS(LOW,15);
GUA3:=(REF(CLOSE,GUA2)-REF(CLOSE,GUA1+1))/REF(CLOSE,GUA1+1)*100;
GUA4:=(CLOSE-REF(CLOSE,GUA2+1))/REF(CLOSE,GUA2+1)*100;
GUA5:=CLOSE>=REF(CLOSE,GUA1);
启动:GUA1>GUA2 AND GUA3<(-5) AND COUNT(GUA5,GUA1+1)=1 AND GUA5 AND ((CLOSE-REF(CLOSE,1))/CLOSE>0.04 OR (CLOSE-OPEN)/CLOSE>0.04),COLORRED;
GUB1:=REF(C,6)/REF(C,7)>1.095 AND REF(O,6)<REF(MA(C,20),6) AND BETWEEN(O/REF(O,6),1.02,0.98);
GUB2:=REF(C,5)/REF(C,6)>1.095 AND REF(O,5)<REF(MA(C,20),5) AND BETWEEN(O/REF(O,5),1.02,0.98);
GUB3:=REF(C,4)/REF(C,5)>1.095 AND REF(O,4)<REF(MA(C,20),4) AND BETWEEN(O/REF(O,4),1.02,0.98);
GUB4:=REF(C,3)/REF(C,4)>1.095 AND REF(O,3)<REF(MA(C,20),3) AND BETWEEN(O/REF(O,3),1.02,0.98);
GY1:=C/REF(C,1)>1.03 AND REF(C,2)/REF(C,3)<1.07;
建仓GUB1 OR GUB2 OR GUB3 OR GUB4) AND GY1;
选股公式源码
{选股公式一:买入}
GUP1:= (C>REF(C,1)*1.07 AND C>L AND C>O AND( REF(C,2)>REF(C,3)*1.099 AND REF(C,1)<REF(C,2)*0.99 ) )OR(C>REF(C,1)*1.07 AND C>L AND C>O AND( REF(C,3)>REF(C,4)*1.099 AND REF(C,1)<REF(C,3)*0.99 ) )OR(C>REF(C,1)*1.07 AND C>L AND C>O AND( REF(C,4)>REF(C,5)*1.099 AND REF(C,1)<REF(C,4)*0.99 ) )OR(C>REF(C,1)*1.07 AND C>L AND C>O AND( REF(C,5)>REF(C,6)*1.099 AND REF(C,1)<REF(C,5)*0.99 ) );
买入:EXIST(GUP1,1),COLORYELLOW;
{选股公式二:启动}
GUA1:=HHVBARS(HIGH,15);
GUA2:=LLVBARS(LOW,15);
GUA3:=(REF(CLOSE,GUA2)-REF(CLOSE,GUA1+1))/REF(CLOSE,GUA1+1)*100;
GUA4:=(CLOSE-REF(CLOSE,GUA2+1))/REF(CLOSE,GUA2+1)*100;
GUA5:=CLOSE>=REF(CLOSE,GUA1);
启动:GUA1>GUA2 AND GUA3<(-5) AND COUNT(GUA5,GUA1+1)=1 AND GUA5 AND ((CLOSE-REF(CLOSE,1))/CLOSE>0.04 OR (CLOSE-OPEN)/CLOSE>0.04),COLORRED;
{选股公式三:建仓}
GUB1:=REF(C,6)/REF(C,7)>1.095 AND REF(O,6)<REF(MA(C,20),6) AND BETWEEN(O/REF(O,6),1.02,0.98);
GUB2:=REF(C,5)/REF(C,6)>1.095 AND REF(O,5)<REF(MA(C,20),5) AND BETWEEN(O/REF(O,5),1.02,0.98);
GUB3:=REF(C,4)/REF(C,5)>1.095 AND REF(O,4)<REF(MA(C,20),4) AND BETWEEN(O/REF(O,4),1.02,0.98);
GUB4:=REF(C,3)/REF(C,4)>1.095 AND REF(O,3)<REF(MA(C,20),3) AND BETWEEN(O/REF(O,3),1.02,0.98);
GY1:=C/REF(C,1)>1.03 AND REF(C,2)/REF(C,3)<1.07;
建仓GUB1 OR GUB2 OR GUB3 OR GUB4) AND GY1; |