A0:=AMOUNT; A01:=AMOUNT/V/100;0;
B01:=(A0>REF(A0,1))+(EMA(A0,2)>REF(EMA(A0,2),1))+(EMA(A0,3)>REF(EMA(A0,3),1))+(EMA(A0,4)>REF(EMA(A0,4),1))
+(EMA(A0,5)>REF(EMA(A0,5),1))+(EMA(A0,6)>REF(EMA(A0,6),1))+(EMA(A0,7)>REF(EMA(A0,7),1))+(EMA(A0,8)>REF(EMA(A0,8),1))
+(EMA(A0,9)>REF(EMA(A0,9),1))+(EMA(A0,10)>REF(EMA(A0,10),1))+(EMA(A0,11)>REF(EMA(A0,11),1))+(EMA(A0,12)>REF(EMA(A0,12),1))
+(EMA(A0,13)>REF(EMA(A0,13),1))+(EMA(A0,14)>REF(EMA(A0,14),1))+(EMA(A0,15)>REF(EMA(A0,15),1))+(EMA(A0,16)>REF(EMA(A0,16),1))
+(EMA(A0,17)>REF(EMA(A0,17),1))+(EMA(A0,18)>REF(EMA(A0,18),1))+(EMA(A0,19)>REF(EMA(A0,19),1))+(EMA(A0,20)>REF(EMA(A0,20),1))
+(A01>REF(A01,1))+(EMA(A01,2)>REF(EMA(A01,2),1))+(EMA(A01,3)>REF(EMA(A01,3),1))+(EMA(A01,4)>REF(EMA(A01,4),1))
+(EMA(A01,5)>REF(EMA(A01,5),1))+(EMA(A01,6)>REF(EMA(A01,6),1))+(EMA(A01,7)>REF(EMA(A01,7),1))+(EMA(A01,8)>REF(EMA(A01,8),1))
+(EMA(A01,9)>REF(EMA(A01,9),1))+(EMA(A01,10)>REF(EMA(A01,10),1))+(EMA(A01,11)>REF(EMA(A01,11),1))+(EMA(A01,12)>REF(EMA(A01,12),1))
+(EMA(A01,13)>REF(EMA(A01,13),1))+(EMA(A01,14)>REF(EMA(A01,14),1))+(EMA(A01,15)>REF(EMA(A01,15),1))+(EMA(A01,16)>REF(EMA(A01,16),1))
+(EMA(A01,17)>REF(EMA(A01,17),1))+(EMA(A01,18)>REF(EMA(A01,18),1))+(EMA(A01,19)>REF(EMA(A01,19),1))+(EMA(A01,20)>REF(EMA(A01,20),1));
B02:=(A0<REF(A0,1))+(EMA(A0,2)<REF(EMA(A0,2),1))+(EMA(A0,3)<REF(EMA(A0,3),1))+(EMA(A0,4)<REF(EMA(A0,4),1))
+(EMA(A0,5)<REF(EMA(A0,5),1))+(EMA(A0,6)<REF(EMA(A0,6),1))+(EMA(A0,7)<REF(EMA(A0,7),1))+(EMA(A0,8)<REF(EMA(A0,8),1))
+(EMA(A0,9)<REF(EMA(A0,9),1))+(EMA(A0,10)<REF(EMA(A0,10),1))+(EMA(A0,11)<REF(EMA(A0,11),1))+(EMA(A0,12)<REF(EMA(A0,12),1))
+(EMA(A0,13)<REF(EMA(A0,13),1))+(EMA(A0,14)<REF(EMA(A0,14),1))+(EMA(A0,15)<REF(EMA(A0,15),1))+(EMA(A0,16)<REF(EMA(A0,16),1))
+(EMA(A0,17)<REF(EMA(A0,17),1))+(EMA(A0,18)<REF(EMA(A0,18),1))+(EMA(A0,19)<REF(EMA(A0,19),1))+(EMA(A0,20)<REF(EMA(A0,20),1))
+(A01<REF(A01,1))+(EMA(A0,2)<REF(EMA(A0,2),1))+(EMA(A01,3)<REF(EMA(A01,3),1))+(EMA(A01,4)<REF(EMA(A01,4),1))
+(EMA(A01,5)<REF(EMA(A01,5),1))+(EMA(A01,6)<REF(EMA(A01,6),1))+(EMA(A01,7)<REF(EMA(A01,7),1))+(EMA(A01,8)<REF(EMA(A01,8),1))
+(EMA(A01,9)<REF(EMA(A01,9),1))+(EMA(A01,10)<REF(EMA(A01,10),1))+(EMA(A01,11)<REF(EMA(A01,11),1))+(EMA(A01,12)<REF(EMA(A01,12),1))
+(EMA(A01,13)<REF(EMA(A01,13),1))+(EMA(A01,14)<REF(EMA(A01,14),1))+(EMA(A01,15)<REF(EMA(A01,15),1))+(EMA(A01,16)<REF(EMA(A01,16),1))
+(EMA(A01,17)<REF(EMA(A01,17),1))+(EMA(A01,18)<REF(EMA(A01,18),1))+(EMA(A01,19)<REF(EMA(A01,19),1))+(EMA(A01,20)<REF(EMA(A01,20),1));
DRAWTEXT(SUM(B01,5)>SUM(B02,5),2,'*'),colorred;
DRAWTEXT(SUM(B01,10)>SUM(B02,10),4,'*'),colorred;
DRAWTEXT(SUM(B01,15)>SUM(B02,15),6,'*'),colorred;
DRAWTEXT(SUM(B01,20)>SUM(B02,20),8,'*'),colorred;
DRAWTEXT(SUM(B01,25)>SUM(B02,25),10,'*'),colorred;
DRAWTEXT(SUM(B01,30)>SUM(B02,30),12,'*'),colorred;
DRAWTEXT(SUM(B01,5)<SUM(B02,5),2,'*'),colorgreen;
DRAWTEXT(SUM(B01,10)<SUM(B02,10),4,'*'),colorgreen;
DRAWTEXT(SUM(B01,15)<SUM(B02,15),6,'*'),colorgreen;
DRAWTEXT(SUM(B01,20)<SUM(B02,20),8,'*'),colorgreen;
DRAWTEXT(SUM(B01,25)<SUM(B02,25),10,'*'),colorgreen;
DRAWTEXT(SUM(B01,30)<SUM(B02,30),12,'*'),colorgreen;
H01:((SUM(B01,5)>SUM(B02,5))+(SUM(B01,10)>SUM(B02,10))+(SUM(B01,15)>SUM(B02,15))
+(SUM(B01,20)>SUM(B02,20))+(SUM(B01,25)>SUM(B02,25))+(SUM(B01,30)>SUM(B02,30)))*2;
H02:MA(H01,20);