N:=CURRBARSCOUNT;
B:=C<REF(C,4);
T1:= BARSLASTCOUNT(B);
A_B1:=(T1>9) AND MOD(T1,9)=1;
A_B9:=(T1>9) AND MOD(T1,9)=0;
B1:=(N=6 AND REFXV(COUNT(B,6),5)=6) OR (N=7 AND REFXV(COUNT(B,7),6)=7) OR (N=8 AND REFXV(COUNT(B,8),7)=8) OR (N>=9 AND REFXV(COUNT(B,9),8)=9);
DRAWNUMBER_DIF(B1 AND (REF(B,1)=0 OR A_B1),1,1,8),COLORMAGENTA;
B9:=(N>=1 AND COUNT(B,9)=9);
DRAWNUMBER_DIF(B9 AND (REF(B,9)=0 OR A_B9),1,9,1),COLORRED;
S:=C>REF(C,4);
T2:= BARSLASTCOUNT(S);
A_S1:=(T2>9) AND MOD(T2,9)=1;
A_S9:=(T2>9) AND MOD(T2,9)=0;
S1:=(N=6 AND REFXV(COUNT(S,6),5)=6) OR (N=7 AND REFXV(COUNT(S,7),6)=7) OR (N=8 AND REFXV(COUNT(S,8),7)=8) OR (N>=9 AND REFXV(COUNT(S,9),8)=9);
DRAWNUMBER_DIF(S1 AND (REF(S,1)=0 OR A_S1),1,1,8),COLORMAGENTA,DRAWABOVE;
S9:=(N>=1 AND COUNT(S,9)=9);
DRAWNUMBER_DIF(S9 AND (REF(S,9)=0 OR A_S9),1,9,1),COLORGREEN,DRAWABOVE;