HH:=HHV(HIGH,3);
LL:=LLV(LOW,3);
HH1:=BArslAst((HH>REF(HH,1)));
LL1:=BARSLAST((LL<REF(LL,1)));
AA1:=(3*C+H+L+O)/6;
VAR1:=(8*AA1+7*REF(AA1,1)+6*REF(AA1,2)+5*REF(AA1,3)+4*REF(AA1,4)+3*REF(AA1,5)+2*REF(AA1,6)+REF(AA1,8))/36;
VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
P2:=Ema(CLOSE,50),COLORGREEN,LINETHICK3;
多:= crOSS(VAR1>VAR6,0.5) AND CROSS(LL1,HH1);
多1:=BARSLAST(REF(多,1));
多2:=C>REF(C,多1+1) AND 多;
多3:=FILTER(多2,20) AND P2>REF(P2,1);
多XG:多3;