how to manage risks associated with trading on stock markets