选股周期:=60;
前阳临界点:=100;
接力周期:=13;
M3:=MA(C,3);
M5:=MA(CLOSE,5)COLORWHITE;
M10:=MA(CLOSE,10)COLORYELLOW;
M20:=MA(CLOSE,20),COLORYELLOW,LINETHICK2;
M30:=MA(CLOSE,30),COLORMAGENTA;
M60:=MA(CLOSE,60),COLORGREEN,LINETHICK2;
M120:=MA(CLOSE,120),COLORRED,LINETHICK2;
M250:=MA(CLOSE,250),COLORCYAN,LINETHICK1;
QH:=PEAK(C,10,1)COLORRED,LINETHICK2;
{表示收盘价之字转向10/100的前一个波峰拐点}
QL:=TROUGH(C,10,1)COLORGREEN,LINETHICK2;
{表示收盘价之字转向10/100的前一个波谷拐点}
HS:=100*VOL/(FINANCE(7)/100);
HS3:=MA(HS,3);
{A4——反转大阳}
{中大阴线向20日内最低点冲击探底,探底阴线+-3%内小阴小阳多星平衡,中大阳线有效突破探底阴线的开盘价。};
接力:=BARSLAST(CLOSE/OPEN>1.02 AND C/REF(C,1)>1.02 AND C>HHV(M3,10))COLORRED;
{BARSLAST()周期函数,表示上一次条件成立到当前的周期数。}
A32:=C<(REF(O,接力)+REF(C,接力)*1.1) AND C>REF(L,接力)*0.97;
A33:=C>(REF(O,接力)+REF(C,接力)*1.1);
A30:=C<REF(L,接力)*0.97;
A36:=COUNT(A32,接力)>3 AND COUNT(A32,接力)<接力周期 AND COUNT(A33,接力)=0 AND COUNT(A30,接力)=0 AND C>REF(O,接力)+(REF(C,接力)-REF(O,接力))*前阳临界点/100
AND O<REF(C,接力)*1.03 AND C/REF(C,1)>1.02 AND C/O>1.02;
A38:=LLV(M3,20)>REF(LLV(M3,60),20)*0.94 AND HHV(HS3,接力)<MAX(HS,REF(HS,接力));
A39:=A36 AND A38;
COUNT(A39,选股周期)>0;