HJ_1:=(1+M1/100)*MA(CLOSE,N2);
HJ_2:=MA(CLOSE,5);
HJ_3:=HJ_2;
HJ_4:=HJ_3*1.1;
HJ_5:=REF(CLOSE,1)*1.098-CLOSE<0.01;
HJ_6:=HIGH<HJ_4 AND HJ_5 AND NOT(HIGH=OPEN);
HJ_7:=REF(OPEN,1)/REF(CLOSE,1)>1.07 AND REF(OPEN,1)>REF(CLOSE,1);
HMFG:HJ_6 AND HJ_7 AND OPEN/HJ_1<1.05 AND NOT(HIGH=OPEN);
{-----------------------------------}