Can TN visa holders invest in Forexx and US stock markets?

Hi ,
I am on TN visa . I want to know whether investing ( trading ) in the forexx market is legal or not with a TN visa? I am not a professional but just an individual who want to earn residual income from the forexxx markets. Thanks !
Yes. These transactions will be subject to IRS capital gains tax of course.
Thank you Nelsona for your insights.
But this will have any impact on my future TN renewals?
I do not know if Uscis will use it as factor to determine my “immigrant intent”.