A method for operating a wind
turbine is disclosed. The wind
turbine comprises a rotor having a set of wind
turbine blades, said rotor being mounted on a
tower. The method comprises the steps of: Providing a curve defining optimal
pitch angle as a function of
tip speed ratio for the wind turbine blades or as a function of
wind speed. Modifying at least a part of said optimal
pitch angle curve by applying a safety buffer, e.g. at tip speed ratios and / or
pitch angles where there is a risk that the blades may stall and / or that overload is caused to the wind turbine, thereby obtaining a safety modified
pitch angle curve. Operating the wind turbine in accordance with the safety modified
pitch angle curve. Measuring one or more parameters providing information regarding wind conditions and / or loads on one or more components of the wind turbine, during operation of the wind turbine. Adjusting the safety buffer, based on said measurements, thereby obtaining an adjusted
pitch angle curve, and operating the wind turbine in accordance with the adjusted pitch angle curve. The safety buffer is applied in order to ensure that the blades of the wind turbine do not stall and / or that the wind turbine is not overloaded, but it has the effect that the wind turbine is operated in a suboptimal manner from an energy production view. Since the safety buffer is adjusted based on measured parameters, it can be reduced if it is detected that the actual operating conditions are less severe than expected. This allows the wind turbine to be operated in a more optimal manner, thereby increasing the energy production of the wind turbine.