Hey there QC
I want to develop (python) code for the well known forex triangle arbitrage strategy, e.g.:
The goal is to use forex triangular arbitrage to teach some of my students about shortest path algorithms.
I am still relatively new to QC (and algorithmic trading): I can see how one can purchase and hold certain currency pairs, but I cannot see how these trades converts into ownership of foreign currency, with which to continue the arbitrage path.
So, more specifically, can you let me know how I can:
1) buy foreign currencies (and see how much of these currencies I hold)
2) purchase foreign currencies using a chosen currency that I hold (i.e. not always USD).
For example, I know how to purchase USD/EUR and then sell it, but I don’t know how to buy EUR using USD, and then use that EUR to buy GBP say.
Thanks so much
James
Shile Wen
Hi James,
Best,
Shile Wen
James Watson
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!