{上穿薛氏通道顶缩量回调选股}
{去ST,科创,北证}
去ST:=NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0;
去科创板:=NOT(CODELIKE('688'));
{去创业板:=NOT(CODELIKE('3'));}
去北证:=NOT(CODELIKE('8'));
去北证A:=NOT(CODELIKE('4'));
去新股:=IF(NAMELIKE('N'),0,1);
PC:=去ST AND 去科创板 AND{ 去创业板 AND }去北证 AND 去新股 AND 去北证A;
N:=103;
M:=10;
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
内上:=AA*N/100;
内下:=AA*(200-N)/100; CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
外上:=(1+M/100)*DD;
外下:=(1-M/100)*DD,COLORGREEN,LINETHICK2;
MV135:=MA(V,135);
上穿:=CROSS(C,外上) AND V>=REF(V,1)*1.9;
TJ1:=COUNT(上穿,15)>=1;
TJ2:=VOL=LLV(VOL,10);
A:=EMA(CLOSE,26)+ABS(EMA(CLOSE,26) REF(EMA(CLOSE,26),1));
B:=EMA(CLOSE,26)+EMA(CLOSE,26)-REF(EMA(CLOSE,26),1);
操盘线:=IF(EMA(CLOSE,26)<B,B,EMA(CLOSE,26)),COLORRED,LINETHICK3;
TJ3:=C>操盘线 AND 操盘线>REF(操盘线,1);
{TJ3:=C>内下 AND 内下>REF(内下,1);}
XG:TJ1=1 AND TJ2=1 AND TJ3=1 and pc;