TYX3:=ma(REF(HHV((C+L+O+H)/4,30),1),3);
CMTP:=C>TYX3 AND(C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),COLORWHITE;
A111:=COST(85);
A222:=COST(15);
A333:=A111-A222;
A444:=(A111+A222)/2;
DFMJ:=A333/A444*100<30,LINETHICK0;
B1:=HHV(HIGH,250);
B2:=LLV(LOW,250);
B3:=B1-B2;
B4:=(A444-B2);
DW:=A444<(B3*04+B2),LINETHICK0;
DWDF:=DW AND DFMJ;
B5:=C/REF(C,1)>1.04;
主力持仓%:=ema(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3);
主力持仓:=主力持仓%>=75 AND 主力持仓%<=91 AND C>0 AND CLOSE>OPEN AND C=H;
CMJZ:主力持仓 AND DWDF AND B4 AND WINNER(C)>=0.90 AND B5,COLORFF00FF