Not knowing the tree positions I think you've come up with the best solution. Get lines/ropes long enough to wrap once around each tree. Connect a hook or carabiner to the end of the line, and secure the other end to your dock. Wrap the line around the tree and secure it with the hook, etc...