Running Backtest In A Loop

Discussion in 'App Development' started by hein123, Apr 2, 2017.

  1. hein123

    hein123

    I want to do backtests on forex.

    Just want somebody to point me in the right direction (book, website) as all I want to do is test multiple strategies using c.

    Used to do this in mql4 but that language is very limited.

    On the web there is a lot of examples using mql4 and python but nothing for c.

    I JUST NEED AGOOD STARTING POINT
     
    #11     Apr 3, 2017
  2. H2O

    H2O


    Here you go:

    http://developer.oanda.com/rest-live/sample-code/

    (edit: I'm not affiliated with Oanda)
     
    #12     Apr 3, 2017
    Bob111 likes this.
  3. There are systems out there that have robust backtesting capabilities- Amibroker, SierraCharts, Tradestation,etc . Most of them have built-in technical analysis functions like RSI, ADX, Bands,etc so you don't have to reinvent the wheel. Some require monthly subscription, some require you to open an account with their broker. I have been using Amibroker and paid a 1-time $350 license. As you evaluate these systems, keep in mind the data source as well- these systems have plug-ins from various quote providers.I've programmed in all of the above and as far as the Fx space, Amibroker has a custom interface where you can construct your own customized index which can be used as a trade filter.
     
    #13     Apr 3, 2017
    Bob111 likes this.
  4. hein123

    hein123

    Thanks for the advice, I appreciate it.
    I actually do want to write this stuff from scratch (with libraries) as a learning curve.

    Python has quite a huge forex library, does it make sense to learn using that library and then convert it to C++?
     
    #14     Apr 3, 2017
  5. Look up "optimization of trading strategies", and take it from there. There are many books, articles, and software packages. This is a big topic.
     
    #15     Apr 3, 2017