A model is developed for pricing volatility derivatives, such as variance swaps and volatility swaps under a continuous‐time Markov‐modulated version of the stochastic volatility (SV) model developed by Heston. In particular, it is supposed that the parameters of this version of Heston's SV model depend on the states of a continuous‐time observable Markov chain process, which can be interpreted as the states of an observable macroeconomic factor. The market considered is incomplete in general, and hence, there is more than one equivalent martingale pricing measure. The regime switching Esscher transform used by Elliott et al. is adopted to determine a martingale pricing measure for the valuation of variance and volatility swaps in this incomplete market. Both probabilistic and partial differential equation (PDE) approaches are considered for the valuation of volatility derivatives.