Your code is mostly ok, but I don't think that you can trade EBAY on an FXCM account. It will produce an error message. And maybe even a crash inside the FXCM API when you attempt downloading prices of nonexisting assets.

Check with your broker which assets you can trade. If you run into a problem with a really existing asset, please post again.