Check out the many posts by user metooxx on this subject. Apparently it is possible. The gist of it is to create an international corporate entity in which you convert trading profits into earned income. Next, you stay out of the US for a long enough period of time to qualify for the foreign-earned income exclusions. In other words, what you basically do is move offshore and trade from there. Your physical presense on US soil prevents you from qualifying for the foreign-earned income exclusion, i.e. you must leave US soil.