VAR0:=IF(DATE<=1261231,1,0);
bbi:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DIF1:=EMA(CLOSE,10)-EMA(CLOSE,33);
DEA1:=EMA(DIF1,10);
VAR001:=DIF1-DEA1;
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
pdi:=DMP*100/MTR;
mdi:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:=EXPMEMA(ADX,6);
VAR002:=PDI-MDI;
VAR003:=ADX-ADXR;
ENTER:=TFILTER(COUNT(crOSS(CLOSE,BBI),10)>0 AND VAR001>0 AND VAR002>0 AND VAR003>0 AND VAR0=1,COUNT(CROSS(BBI,CLOSE),10)>0 AND VAR001<0 AND VAR002<0 AND VAR0=1,1);
龙抬头:ENTER;