VAR2:=ma(CLOSE,5);
VAR3:=MA(CLOSE,15);
VAR4:=MA(CLOSE,20);
VAR5:=MA(CLOSE,45);
VAR6:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR7:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR8:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR9:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR10:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR11:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR12:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR13:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;
VAR14:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR15:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR16:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR17:=CLOSE>VAR2 AND CLOSE=VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR18:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;
VAR19:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR20:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
红加号:(VAR9 AND REF((VAR8 OR VAR20),1));