以下是通达信次日涨停副图选股公式源码
{次日涨停1副图}
A : MA(CLOSE,26);
UP: A + 2*STD(CLOSE,26);
LOWER: A – 2*STD(CLOSE,26);
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2 > 0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
DRAWICON(W4 AND COUNT(W4,5)=1,LOW,3);
===============================================
{次日涨停2副图}
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2> 0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
T1:=CROSS(MA(V,5),MA(V,13));
T2:=V> REF(V,1) AND REF(V,1)> REF(V,2);
T3:=C> REF(C,1) AND REF(C,1)> REF(C,2);
T4:=MA(C,5)> REF(MA(C,5),1)> REF(MA(C,5),2);
W4 AND COUNT(W4,5)=1 AND C> MA(C,60) AND T1 AND T2 AND T3;
=================================================
{次日涨停2选股指标}
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2> 0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
W5:=W4 AND COUNT(W4,5)= 1;
T1:=CROSS(MA(V,5),MA(V,13));
T2:=V> REF(V,1) AND REF(V,1)> REF(V,2);
T3:=C> REF(C,1) AND REF(C,1)> REF(C,2);
T4:=MA(C,5)> REF(MA(C,5),1)> REF(MA(C,5),2);
W5 AND T1 AND T2 AND T3 AND C> MA(C,60);
评论(0)