A general HELP inequality connected with symmetric operators