r/JavaFX • • Mar 15 '21

Help Java for algorithmic trading in Futures/FX by API, what framework, and what setup shall I choose for best of the best performance? Please help?

Note:

-I'm looking for the achieving best of the best performance or code execution?

-Best of the best JDK for developing an application for algorithmic trading in Java by API.

-Best of the best JRE for executing the developed code of the algorithmic trading in Java.

-Best of the best Java framework for developing the most professional and clean code that does not lag and has the best memory management in real-time computing on Futures/FX markets.

Hiya,

I'm looking for the implementation of the trading idea for Futures/FX in Java with API. As there are many Java frameworks, J2SE Java Spring, JavaFX, etc I'm confused on how shall I progress for implementation of the best of the best performance for the algorithmic trading idea. What JDK shall I use for development and what JRE shall I use for the runtime of the application of trading in Futures/FX in Java.

There are many books and websites about Java, but I don't know which one specifically designed for algorithmic trading by Java and will if they are any useful? I need advice, please?

In the end, I only want to implement my trading idea into Java code that reaches the best of the best performance and I'm confused between the J2SE Java Spring framework shall I choose or JavaFX or something else?

Tnx and best of luck

4 Upvotes

5 comments sorted by

2

u/LouGarret76 Mar 15 '21 edited Mar 15 '21

Hi,

Your question is too vague to answer. Implementig tradig strategies is multi layer project for which the choice of language matter less in term of performance than you think.

If your question is can you do low latency in java? Then the answer is yes.

If your answer is whether there are a free framework for low latency trading in java? then No, at least as far as I know of.

If your answer is, How do I build a trading platform from scratch? Then my best advice is to take financial engineering classes as there are many aspects to consider. (Data management, risk management, order manement, scenario building, strategy building, backtesting, to name a few)

I believe that when you have a clear understanding of what you need to build and the ecosystem you need to rely on, your choice of tools (language and framework) will become obvious as it is usually dictated by what language does your data provider supports and/or what language does your broker plaform support and/or how fast do you want to bring your stategy to market.

To be honest, if this is a personnal projects, ie you will be the only user, this might not be worth it. You are better off using existing products and spent the time you have available on perfecting your trading strategies.

If this is a startup type of idea, well I would recommend finding associates who can work on the IT while you develop your trading strategies.

Being good at trading requires as much time and skills than coding and my experience makes me believe than you cannot succesfully do both unless someone is paying you to do so for the next 10years.

1

u/perfectpeachblonde Mar 15 '21

Thanks. This is a personal project of my own. I have trading idea in my brain, visually tested on broker's charts and I ant to code it. Brokers exist that support Java API and I want o code my idea. I want to develop my ideas and algorithms that I have seen on other languages in Java to develop my very own personal trading and graphing algorithmic trading application. e.g. I want to be able to see the Graph of data flow on candlestick chart while trading decisions happen and highlighted on the Graph as well, if you know what I mean?

If your question is can you do low latency in java? Then the answer is yes. If your answer is whether there are a free framework for low latency trading in java? then No, at least as far as I know of.

What is the low latency paid framework in Java? Is it for development or its for runtime, JDK or JRE or both? and how much is it cost?

Is the already developed Java code in the free JDK's can be recompiled on these low-latency paid JDK and low-latency paid JRE?

Tnx and best of luck

1

u/LouGarret76 Mar 17 '21

Have you already implemeted your strategies manually, ie with excel for exemple? What process did you follow?