What is the version of the following sentence with correct punctuation?

When analyzing the market traders may misinterpret the asset price movement and incur losses
When analyzing the market, traders may misinterpret the asset price movement and incur losses.