What sets the price? Over days and months, mostly interest rates and expectations. Money moves toward the currency that pays more, until expected returns are equal. Suppose one-year interest rates are 5% in the United States and 3% in the euro area, and a euro costs $1.10. Kept in dollars, $1,000 grows to $1,050. Converted to euros it is €909.09, which grows to €936.36. The two choices pay the same only if a euro costs $1,050 ÷ 936.36 = $1.121 a year from now. So the market must expect the dollar to lose about 2% against the euro. This is uncovered interest parity.
Over short periods that condition often fails in the data, which is one reason exchange rates are so hard to forecast. Over years, prices matter more: a country with persistently higher inflation tends to see its currency fall, the idea behind purchasing power parity.
Governments choose how much of this to allow. Under a float, the market sets the rate. Under a peg, the central bank fixes it and must buy or sell currency to hold the line. With money free to move, a peg also means following the interest-rate policy of the anchor currency. This is the trilemma. On 16 September 1992 heavy official purchases of sterling and two interest-rate increases announced in one day failed to lift the pound off its floor in the European Exchange Rate Mechanism, and Britain suspended its membership that evening. Two weeks later the pound stood 10% below that floor against the Deutsche mark. Membership had in effect forced Britain to follow Germany's tight monetary policy, the Bank of England wrote afterwards.
Pegs can break the other way too. On 6 September 2011 the Swiss National Bank set a floor of 1.20 francs per euro to stop the franc rising, and said it would buy foreign currency in unlimited quantities to defend it. On 15 January 2015 it abandoned the floor. The European Central Bank's reference rate went from 1.2010 francs per euro on 14 January to 1.0280 the next day, a gain of about 17% for the franc in a single day.
A currency's level is easy to misread. A strong currency is not proof of a strong economy, and a weak one is not a failure: appreciation helps importers and travelers and hurts exporters, and depreciation does the reverse. Nor is a fixed rate free stability, as both episodes show. The flows the exchange rate has to balance are set out in Balance of Payments, and the policy choices in the Mundell-Fleming model.