SHORT:=20;
LONG:=40;
MID:=60;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA55:=MA(C,55);
FT1:=CLOSE>OPEN AND CLOSE>MA(CLOSE,SHORT) AND CLOSE>MA(CLOSE,LONG) AND CLOSE>MA(CLOSE,MID);
FT2:=FT1 AND OPEN<MA(CLOSE,LONG) AND OPEN<MA(CLOSE,MID);
FT3:=(MA(CLOSE,5)+MA(CLOSE,9)+MA(CLOSE,13)+MA(CLOSE,17))/4;
FT4:=(MA(CLOSE,1)+MA(CLOSE,4)+MA(CLOSE,7)+MA(CLOSE,11))/4;
反弹:FT2 AND C/REF(C,1)>1 AND (CLOSE-OPEN)>0.0618*CLOSE AND FT4>FT3,NODRAW;
AHC1:=CLOSE*vol;
AHC2:=EMA((expma(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
AHC3:=1.0668*AHC2;
黑马1号:crOSS(C,AHC3) AND REF(C,1)*1.07-C<0.007 AND C>O*0.5,NODRAW;
DIX:=O<MA5 AND O<MA10 AND O<MA20 AND L<MA30 AND L<MA55;
GAOX:=C>MA5 AND C>MA10 AND H>MA20 AND H>MA30 AND H>MA55;
穿线王:DIX AND GAOX,NODRAW;
VA6:=(CLOSE+HIGH+LOW)/3;
VA8:=LLV(LOW,34);
VARB:=HHV(HIGH,34);
VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);
VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);
VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR8:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);
YB1:=(WINNER((CLOSE)*(0.9)))*(100);
YB2:=(WINNER((HIGH)*(0.9)))*(100);
YB3:=(WINNER((LOW)*(0.9)))*(100);
旱地拔葱:IF(CROSS(VARC,EMA(VARD,1)) AND VARC>VARD AND VARC<55 AND C>O,1,0),NODRAW;
HT:=HHVBARS(H,15);
LT:=LLVBARS(L,15);
DF1:=(REF(C,LT)-REF(C,HT+1))/REF(C,HT+1)*100;
TJ:=C>=REF(C,HT);
VAR1:=HT>LT AND DF1<-5 AND COUNT(TJ,HT+1)=1 AND TJ;
TDC:=BARSSINCEN(VAR1,29);
得安天下:=(黑马1号+穿线王+旱地拔葱)>0;
浅V形态:反弹 AND 得安天下 AND TDC>1 AND TDC<12,COLORRED;
STICKLINE(浅V形态>0,15,浅V形态*0.6,3,0),COLORBLUE;
STICKLINE(浅V形态>0,15,浅V形态*1.05,1,0),COLOR0099CC;
DRAWTEXT(浅V形态,浅V形态*2,' 浅'),COLORLIMAGENTA;
DRAWTEXT(浅V形态,浅V形态*2,' V'),COLORLIMAGENTA;