The determination of an optimal hedge ratio and a generalized measure of risk