Get your taxes done using TurboTax

I also have w2 (not my company) income and trading income that the trading expense can offset. Does the trading expense have to offset self-employment income first? Then hypothetically if my business lost a lot of money later in the year, I have to return my 401k contribution made through my w2 (not my company) job?