Writting an algorithm in C++

Discussion in 'App Development' started by zenmaster, Sep 2, 2020.

  1. sef88

    sef88

    For low frequency strategy, it makes more sense to use python.
     
    #11     Nov 8, 2020
    zenmaster likes this.
  2. zenlot

    zenlot

    Do you happen to have links to those benchmarks?
     
    #12     Nov 8, 2020
  3. gonna throw my two cents in here for python if all you're doing in local modeling/forecasting. Super easy and it's plenty fast (I use it on a 5000 stock universe every weekend...)

    Google "python rsi". You'll find a Stack Overflow solution that does exactly what you're looking for.
     
    #13     Nov 14, 2020
    zenmaster likes this.
  4. d08

    d08

    nodeJS is written in C/C++ so that's impossible. Most of the benchmarks are faulty to begin with. When done properly, C/C++ is magnitudes faster. Python is slower but no-one really uses native python for any larger datasets, modules are used which implement C/C++ underneath.
     
    #14     Nov 14, 2020
    zenmaster likes this.
  5. 931

    931

    Amen.
     
    #15     Nov 22, 2020
  6. windwave

    windwave

    Definitely possible and if you are familiar with c++ then why not stick with it.
     
    #16     Nov 22, 2020
  7. There is just no reason to not use NumPy. There is no point in comparing "python vs C++". Your implementation in C++ is not going to be faster than NumPy.

    That doesn't even touch on the ecosystem you are then getting for free.
     
    #17     Jan 2, 2021
    Russell Shuffle, d08 and sef88 like this.
  8. igr

    igr

    Would it be a faster way to learn whether your idea works to sign up on TradingView and write/backtest a strategy using their Python-like language?
     
    #18     Mar 7, 2021
  9. Is it possible to develop in Python and execute in C++? The platform I use is developed in C++ and I'm not sure I can build in Python and execute in C++.
     
    #19     Mar 11, 2021
  10. igr

    igr

    Yes. For example, Tensorlow works like that.
     
    #20     Mar 11, 2021
    zenmaster likes this.