{红粉佳人小蛮腰}
VAR1:=HHV(HHV(LOW,14),240);
VAR2:=CLOSE*VOL;
VAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,13);
VAR4:=EMA(CLOSE,9);
VAR5:=1.06*VAR3;
VAR6:=DMA((H + L + C * 2) / 4,0.9);
VAR7:=EMA(VAR6,5),NODRAW;
CY1:=L<=VAR7 AND C>=VAR7;
CY2:=L<=VAR5 AND C>=VAR5;
穿腰:=CY1+CY2>=2;
腰比:=ABS(VAR5/VAR7-1)*100,NODRAW;
细:=腰比<=2;
{强弱分界}
弱分界:=EMA(COST(85),10);
分界:=EMA(COST(99),10);
分界比:=分界/弱分界;
分界比1:=分界比<1.11;
主线1:=EMA(EMA(C,1),5);
本1:=EMA(HHV(主线1,5),1);
急:=EMA(HHV(本1,21),1);
稳:=EMA(HHV(急,21),2),;
投:=EMA(HHV(稳,21),3);
散:=EMA(HHV(投,21),4);
集:=EMA(HHV(散,21),5);
马:=EMA(HHV(集,21),6);
角度马:=ATAN((马/REF(马,1)-1)*100)*180/3.1416;
T马:=BARSLAST(NOT(角度马=0));
界:=EMA(EMA(EMA(EMA(MA(MA(MA(SUM(MA(CLOSE,60)/1,1),1),1),1),5),5),12),13)*1.01;
马界比:=马/界;
马界比1:=马界比<1.18;
主T:=BARSLAST(CROSS(MA(C,5),MA(C,60)));
偏离度:=MA(C,5)/REF(MA(C,60),主T);
BBC:=LLV(C,0);
涨幅:=C/BBC;
倍量:=V/REF(MA(V,5),1)>=2&&C>O&&C>EMA(C,13)&&V=HHV(V,4)&&C>REF(C,1);
百日大量:=VOL>REF(HHV(VOL,100),1);
量:=V/REF(V,1)>=2 OR 百日大量;
涨板:=C/REF(C,1)>1.095 AND C=H;
一字板:=涨板 AND C=O AND C=L;
{筹码}
YM1:=90;
YM2:=80;
YM3:=70;
YM4:=10;
YM5:=YM1+(100-YM1)/2;
YM6:=(100-YM1)/2;
YM7:=COST(YM5);
YM8:=WINNER(C)*100;
GS:=COST(YM6);
YMGS:=(YM7-GS)/(YM7+GS);
筹码集中度:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
SBT1:=BARSLAST(涨板 AND REF(涨板,1) AND REF(涨板,2) AND REF(NOT(涨板),3) AND REF(COUNT(涨板,3)<1,3) );
SBT2:=BARSLAST(涨板 AND REF(涨板,1) AND REF(NOT(涨板),2) AND REF(COUNT(涨板,3)<1,2));
SB1:=REF(COUNT(C>REF(C,SBT1),SBT1)<=2,1) AND 涨幅<1.8 AND LLV(C,SBT1)>REF(L,SBT1+2) AND REF(EVERY(CSB2:=涨幅<1.8 AND LLV(C,SBT2)>=REF(L,SBT2+1)*0.99 AND HHV(C,SBT2)突破线1:=IF(SB1,REF(REF(C,SBT1),1),0);
突破线2:=IF(SB2,REF(REF(C,SBT2),1),0);
突破1:=C/REF(C,1)>1.03 AND REF(SBT1>=3,2) AND REF(SBT1<=30,2) AND CROSS(C, 突破线1);
突破2:=C/REF(C,1)>1.03 AND REF(SBT2>=3,2) AND REF(SBT2<=30,2) AND CROSS(C, 突破线2);
XG:突破1 OR 突破2;