短空防守价:EMA(HIGH,3),LINETHICK0,PRECISION0,colorFF00;
长多防守价:EMA(LOW,30),LINETHICK0,PRECISION0,colorFF;
长空防守价:EMA(HIGH,30),LINETHICK0,PRECISION0,colorFF9900;
A1:=IF(CROSS(CLOSE,长空防守价),1,IF(CROSS(长多防守价,CLOSE),-1,0));
A2:=REF(A1,BARSLAST(A1));
A3:=IF(A2=1,长多防守价,IF(A2=-1,长空防守价,0));
PARTLINE(A3 0,A3),LINETHICK2,colorCCCC;
PARTLINE(A2=1 AND REF(A2,1)=1,长多防守价),LINETHICK4,colorFF;
PARTLINE(A2=-1 AND REF(A2,1)=-1,长空防守价),LINETHICK4,colorFF9900;
B1:=IF(CROSS(CLOSE,短空防守价),1,IF(CROSS(短多防守价,CLOSE),-1,0));
B2:=REF(B1,BARSLAST(B1));
B3:=IF(B2=1,短多防守价,IF(B2=-1,短空防守价,0));
PARTLINE(B3 0,B3),LINETHICK2,colorFFFF;
PARTLINE(B2=1 AND REF(B2,1)=1,短多防守价),LINETHICK2,colorFF00FF;
PARTLINE(B2=-1 AND REF(B2,1)=-1,短空防守价),LINETHICK2,colorFF00;