Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Forex triangular arbitrage

    General Code/Help
    arbitrage forex
    1
    1
    36
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      watsonjr last edited by

      Hi Everyone

      I want to develop a backtest for the well known forex triangle (path) arbitrage strategy, e.g.:

      https://www.investopedia.com/ask/answers/forex/forex-arbritrage.asp#:~:text=Forex arbitrage is a risk,the short window they exist.

      I am still relatively new to Backtrader (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 any of you let me know how to code:

      1. buy a foreign currency (and see how much of that currencies I hold)

      2. purchase other 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

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
      $(document).ready(function () { app.coldLoad(); }); }