There are many posts on this topic, you might use the 'search' facility.

The B31.3 Code and others require the cold modulus to be used in stress calculations. It is common to use the hot modulus with high temperature pipework, when equipment loads or restraint reactions are required and NOT stresses.