It all depends on if you hit the fgn earned income limits. Only so much fgn earned income is excluded from US Wages. If you are under the cap then you paid no US taxes on the earnings so you are not eligible to contribute to a Roth. If you exceed the earned income limits then the IRA Phase out limits may apply. The fgn earned income exclusion for 2017 is $102,100, Phase-out starts at $118,000; ineligible at $133,000.
If you had excess contributions, make sure to notify the broker and have excess plus any income withdrawn by 4/15/18 or you may be subject to excise taxes.
**I don't work for TT. Just trying to help. All the best.
***Say "Thanks" by marking as BEST ANSWER and clicking the thumb icon in a post and that I solved your question
**Mark the post that answers your question by clicking on "Mark as Best Answer" I am NOT an expert and you should confirm with a tax expert.