MT:=LLV(L,2)+(HHV(H,2)-LLV(L,2))/2;
明盈损线:MT,NODRAW;
MA1:=MA(C,5);
AA:=MA1*0.98;
BB:=REF(MA1,1)*0.98;
MM:=BARSLAST(REF(C,1)>=REF(MA1,1) AND C
AND C
REF(MA1,MM)*0.98), REF(MA1,1)));
明短支撑:QQ,NODRAW;
MA5:=MA(C,5);
A51:=REF(MA5,1)*0.98;
A52:=REF(MA5,2)*0.98;
B52:=BARSLAST(REF(C,2)>=REF(MA5,2) AND REF(C,1)
B51:=BARSLAST(REF(C,2)>=REF(MA5,2) AND REF(C,1)
DZ:=IF((REF(C,2)>=REF(MA5,2)) AND (REF(C,1)
IF(REF(MA5,2)=REF(MA5,2)
AND REF(C,1)0,IF(REF(MA5, B52)< REF(MA5, B51),
REF(MA5,B51)*0.98, REF(MA5,B52)*0.98), REF(MA5,1)));
MA20:=MA(C,20);
A201:=REF(MA20,1)*0.98;
A202:=REF(MA20,2)*0.98;
B202:=BARSLAST(REF(C,2)>=REF(MA20,2) AND REF(C,1)
B201:=BARSLAST(REF(C,2)>=REF(MA20,2) AND REF(C,1)
ZZ:=IF((REF(C,2)>=REF(MA20,2)) AND (REF(C,1)
IF(REF(MA20,2)=REF(MA20,2)
AND REF(C,1)0,IF(REF(MA20, B202)< REF(MA20, B201),
REF(MA20,B201)*0.98, REF(MA20,B202)*0.98), REF(MA20,1)));
中止:=ZZ;
A1:=MA20*0.98;
A2:=REF(MA20,1)*0.98;
A3:=BARSLAST(REF(C,1)>=REF(MA20,1) AND C
C>MA20)>0,IF(REF(MA20, A3)< REF(MA20, A4),
REF(MA20,A4)*0.98, REF(MA20,A3)*0.98), REF(MA20,1)));
明中支撑:AA5,COLORMAGENTA,NODRAW;
明短支撑上拐:QQ>DZ,COLORRED; 明中支撑上拐:AA5>中止,COLORBLUE;
明短支撑下拐:QQ
明中支撑下拐:AA5<中止,COLORGREEN;