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J_31 HJ_32;
HJ_34:=HJ_30 HJ_32 AND HJ_32 HJ_31;
HJ_35:=HJ_33 OR HJ_34;
HJ_36:=OPEN-LOW;
HJ_37:=HIGH-CLOSE;
HJ_38:=CLOSE-OPEN;
HJ_39:=HJ_36 HJ_38 AND HJ_38 HJ_37;
HJ_40:=HJ_36 HJ_37 AND HJ_37 HJ_38;
HJ_41:=HJ_39 OR HJ_40;
HJ_42:=HJ_35 AND HJ_41;
阴阳双下:IF(HJ_29=1,HJ_42,0),COLORGREEN;
{-----------------------------------}