X:=5;D:=10;M5:MA(C,X);M10:MA(C,D);T:=BARSLAST(OSS(M5,M10));ST:=BARSLAST(CROSS(M10,M5));T1:=SUMBARS(T=0,2);T2:=SUMBARS(T=0,3);ST1:=SUMBARS(ST=0,2);ST2:=SUMBARS(ST=0,3);H1:=IF(CONST(M5)>CONST(M10),HHV(H,T+1),REF(HHV(H,T+1),ST));L1:=IF(CONST(M5)
CONST(M10),REF(HHV(H,T+1),ST),REF(HHV(H,T+1),ST1-1));L2:=IF(CONST(M5)CONST(M10),REF(HHV(H,T+1),ST1-1),REF(HHV(H,T+1),ST2-1));L