P1:=5;P2:=10;P3:=20;P4:=30;P5:=60;P6:=120;P7:=240;P8:=340;N:=4;WX:=MA(CLOSE,0);M1:=MA(CLOSE,P1);M2:=(MA(CLOSE,P2) * IF((N < 2 WX,1));M3:=(MA(CLOSE,P3) WX,1));M4:=(MA(CLOSE,P4) WX,1));M5:=(MA(CLOSE,P5) WX,1));M6:=(MA(CLOSE,P6) WX,1));M7:=(MA(CLOSE,P7) WX,1));M8:=(MA(CLOSE,P8) WX,1));C1:=REF(CLOSE,1);C2: HHV(C1,2);C3:=LLV(C1,1);ET: HHV(C1,2);ET1:=REF(ET,1);XB: LLV(C1,1);XB1:=REF(XB,1);M:>= XB1)));M11:=REF(M,1);N9:=BARSLAST(((CLOSE > ET) AND (C1 <= ET1)));N1:=REF(N9,1);M21:=(BARSLAST((((M - N9)