Technical analysis in Java

Discussion in 'Technical Analysis' started by lime, Dec 21, 2024.

  1. lime

    lime

    I would like to build my own technical analysis indicators and patterns library for trading, in Java or R or Py.

    I see there are some existing libraries. ta4j, ta-lib, pandas-ta, TTR.

    Has anyone done making one or had experience with ta4j?
     
  2. Better write yourself. It is easy to code
     
  3. Sekiyo

    Sekiyo

    Making indicators is the easy part.
    The hardest is the implementation framework.
    Either for backtesting, or live trading, purposes.

    Python is well versed into data analysis,
    You’ll find everything you want.

    Not the fastest but good enough for most applications.

    Use numpy and vectorization for the heavy stuff.
     
  4. lime

    lime

    Any projects I can look at to get a practical sense of what your saying?
     
  5. Sekiyo

    Sekiyo

    Why do you want to build indicators ?
    To trade live or backtests or both ?

    Check backtester on github for your particular language. You won’t find live trading framework.

    Some backtester allow for dev and prod, though.

    Backtrader (Python), Lean Engine aka Quantconnect (Python, C#). I think there isn’t much Java nor R framework but I might be wrong.

    You can build your own.
    Whatever language …

    But community algo wise it’s python and C#, C++ IMHO Otherwise you have TradingView (Easy Language) but it doesn’t support live trading.

    Well found out univocity-trader which is a java backtesting and live trading framework.

    To answer your question I’ve never used TA libraries.
     
    Last edited: Dec 21, 2024
    lime likes this.
  6. lime

    lime

    Sekiyo likes this.
  7. 2rosy

    2rosy

    Python vectorbt lets you do quick backtests with all the TA indicators. $ flows in
     
    lime likes this.
  8. There are better languages than Java these days, try c# or typescript.
    Don't make the mistake of using Python for trading. Way too many have already made that mistake and are stuck with that horrible language.

    Always consider your options for displaying your results, primarily on web environments.
    Java, Python, and C++ lack of easy to handle UIs.
     
  9. Businessman

    Businessman

    Why does a solo trader need a web environment to display results?

    I use Java and JavaFx on desktop for all my algo trading, really quick and easy to build everything I need including the UI.
     
    lime likes this.
  10. Just look at the possibilities with Javascript, i.e. TradingView free libraries.
    Java is a language from the past. It is mental to use it these days with the options that we have available, especially if you want to build indicators.
     
    #10     Dec 21, 2024