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16,HJ_17),HJ_18),HJ_19),HJ_20);
HJ_40:=MAX(MAX(MAX(MAX(HJ_21,HJ_22),HJ_23),HJ_24),HJ_25);
HJ_41:=MAX(MAX(MAX(MAX(MAX(HJ_26,HJ_27),HJ_28),HJ_29),HJ_30),HJ_31);
HJ_42:=MAX(MAX(MAX(MAX(MAX(HJ_32,HJ_33),HJ_34),HJ_35),HJ_36),HJ_37);
HJ_43:=MAX(MAX(MAX(MAX(HJ_38,HJ_39),HJ_40),HJ_41),HJ_42);
HJ_44:=IF(HJ_43=HJ_11,5,IF(HJ_43=HJ_12,6,IF(HJ_43=HJ_13,7,IF(HJ_43=HJ_14,8,IF(HJ_43=HJ_15,9,IF(HJ_43=HJ_16,10,IF(HJ_43=HJ_17,11,IF(HJ_43=HJ_18,12,IF(HJ_43=HJ_19,13,IF(HJ_43=HJ_20,14,IF(HJ_43=HJ_21,15,IF(HJ_43=HJ_22,16,IF(HJ_43=HJ_23,17,IF(HJ_43=HJ_24,18,IF(HJ_43=HJ_25,19,IF(HJ_43=HJ_26,20,IF(HJ_43=HJ_27,21,IF(HJ_43=HJ_28,22,IF(HJ_43=HJ_29,23,IF(HJ_43=HJ_30,24,IF(HJ_43=HJ_31,25,DRAWNULL)))))))))))))))))))));
HJ_45:=IF(HJ_43=MA(CLOSE,HJ_44),HJ_44,IF(HJ_43=HJ_32,26,IF(HJ_43=HJ_33,27,IF(HJ_43=HJ_34,28,IF(HJ_43=HJ_35,29,IF(HJ_43=HJ_36,30,IF(HJ_43=HJ_37,31,32)))))));
HJ_46:=IF(BARSCOUNT(CLOSE) =31,))));
HJ_47:=HJ_46;
XG:CROSS(HJ_47,HJ_10);
{-----------------------------------}