VAR2:=ma(CLOSE,5);
VAR3:=MA(CLOSE,15);
VAR4:=MA(CLOSE,20);
VAR5:=MA(CLOSE,45);
VAR6:=CLOSEVAR7:=CLOSE>VAR2 AND CLOSEVAR8:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSEVAR9:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSEVAR10:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR11:=CLOSEVAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR12:=CLOSEVAR4 AND CLOSE>VAR5;
VAR13:=CLOSEVAR5;
VAR14:=CLOSEVAR3 AND CLOSE>VAR4 AND CLOSEVAR15:=CLOSEVAR3 AND CLOSEVAR16:=CLOSE>VAR2 AND CLOSEVAR4 AND CLOSE>VAR5;
VAR17:=CLOSE>VAR2 AND CLOSE=VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR18:=CLOSE>VAR2 AND CLOSEVAR5;
VAR19:=CLOSEVAR4 AND CLOSEVAR20:=CLOSE>VAR2 AND CLOSEVAR4 AND CLOSEVAR21:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSEVAR5;
B:((VAR8 OR VAR20) AND REF((VAR7 OR VAR18 OR VAR19 OR VAR21),1));