Yes, trading forex is allowed under Sharia law. However, you can only trade through an Islamic account. A lot of brokers offer Islamic Accounts for Islamic traders, and four of them are mentioned in this article. The difference between a regular account and an Islamic Account is that the broker does not charge any interest (for holding an open position overnight) under Islamic Accounts.