{LT_追击反转}{优化正版}
{大单动向}
ddx:=(LARGEINTRDvol-LARGEOUTTRDVOL)*10000/FInaNCE(7);
DDX1:=Ema(DDX,60)*60;
DDX2:=MA(DDX1,5);
DDX3:=MA(DDX1,10);
{追击反转}
AA1:=FILTER(LOW=LLV(LOW,13),8);
AA2:=IF(LLV(LOW,3)=LLV(LOW,13) AND CLOSE<REF((HIGH+LOW)/2,1),MAX(REF(LLV(LOW,12),BArslAST(AA1)+1)-LOW,0),0);
AA3:=ema(AA2,3)*3;
AA4:=SUMBARS(AA3>0,21);
AA5:=SUM(AA3,AA4)/21;
ISUP:=IF(C>0,1,0);
AA6:=REF(AA3,1)=HHV(AA3,3) AND REF(AA3,1)>AA5*3 AND COUNT(CLOSE/REF(CLOSE,1)
< 0.9025,8)=0 AND ISUP AND LLV(LOW,3)/HHV(HIGH,18)<0.88;
AA7:=(COUNT(DDX>0,5)>0 OR NOT(DDX1<DDX2 AND DDX2<DDX3))
AND COUNT(DDX>REF(DDX,1),10)>=4;
反转:=FILTER(AA6 AND AA7,5);
追击突破:IF( CLOSE,AA3,0),COLOR0099EE,NODRAW;
追击反转:IF( 反转,AA3,0),COLOR0000FF,NODRAW;
{深黄}
STICKLINE( CLOSE,0,AA3,2.8,0),COLOR0066BB;
STICKLINE( CLOSE,0,AA3,2.5,0),COLOR0077CC;
STICKLINE( CLOSE,0,AA3,1.5,0),COLOR0088DD;
STICKLINE( CLOSE,0,AA3,0.5,0),COLOR0099EE;
{深红}
STICKLINE(反转,0, AA3,3,0),COLOR0000CC;
STICKLINE(反转,0, AA3,2.5,0),COLOR0000DD;
STICKLINE(反转,0, AA3,1.5,0),COLOR0000EE;
STICKLINE(反转,0, AA3,0.5,0),COLOR0000FF;