N1:=8;
VAR01:=4*SMA((CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100,5,1),3.2,1),COLORYELLOW,LINETHICK1;
VAR02:=8,COLORGREEN,LINETHICK1;
主力启动:=IF(crOSS(VAR01,VAR02),80,0);
VAR1:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
A10:=CROSS(控盘,0);
开始控盘:=IF(A10,6,0),COLORYELLOW;
AA:= MA(C,60)>REF(MA(C,60),1);
cci买:=CROSS(CCI,-100)*0.5;
XG:开始控盘 AND CCI买 AND 主力启动;