We study the general problem of an agent wishing to minimize the risk of a position at a fixed date. The agent trades in a market with a risky asset, with incomplete information, proportional transaction costs, and possibly constraints on strategies. In particular, this framework includes the problems of hedging contingent claims and maximizing utility from wealth. We obtain a minimization problem on a space of predictable processes with finite variation. Borrowing a technique from Calculus of Variation, on this space we look for a convergence which makes minimizing sequences relatively compact, and risk lower semicontinuous. For a class of convex decreasing risk functionals, we show the existence of optimal strategies. Examples include the problems of shortfall minimization, utility maximization, and minimization ofcoherent risk measures.