tensorflow machine learning standard option for algo trading but there is simpler options

(Last Updated On: March 7, 2018)

tensorflow machine learning standard option for algo trading but there is simpler options


Various links below show simple ways to use linear regression with R Squared. It then evolves into using SciKitLean Python Package which is relatively simple but could be effective if you are just after R Square to measure strength of the trend.




This next link offers a look the complicated TensorFlow Model Library from Google. This is the definite standard defacto in the financial industry. I know this when I saw samples used by high end HFT shops with their workshops for the Newsweek AI conference in NYC last Nov.

Set stock data target with https://medium.com/mlreview/a-simple-deep-learning-model-for-stock-price-prediction-using-tensorflow-30505541d877 <– TensorFlow complex but offers many options

I will also say that TensorFlow offer the most choice. See below a tip below from someone in my private Telegram group. This could save you loads of time instead of wasting time by going down rabbit holes.

For crypto use, https://dashee87.github.io/deep%20learning/python/predicting-cryptocurrency-prices-with-deep-learning/

Note that this uses Keras which obviously simpler than TensorFlow. I would probably move towards TF as I get deeper into this.

Here is that useful tip:

My quick-fire tips: in general I’ve had more success constantly-retraining the ML models (every day in your case) as opposed to the usual train/test/validate method. Either that, or use ML models that are specifically designed to capture the time-varying properties of time series (these models can usually be updated in an online fashion). Never used raw prices as inputs—there is so much autocorrelation in the features that the predicted price will just end up being the last close. Instead use returns (I prefer logarithmic returns over simple returns, but it doesn’t make much difference).

Try to use a target that is directly related to the outcome of a potential trade. If that is too complicated, try having separate targets for direction and volatility. I prefer regression algos to classifiers. If possible, require that your model predicts opposite scenarios for both a long and short trade; e.g. it predicts a long trade will make money *AND* a short trade will lose money, and vice-versa. Avoid neural networks when you’re just starting out – there are too many hyperparameters to tune. Ensemble methods are fantastic, and can be very profitable

Here is my conclusion:

If you are like me just trying to figure out general trend through LSR and R-square, I tend to use these for now. As a result, I may use the SciKitLearn example for simplicity but stop there. I really don’t want to go down the various rabbit holes to experiment with more complex ML libraries. I see no reason compared to the recent sub minute study/reseach/playing around experiment at the sub minute level I started back in Dec which became a time waster with no results.


For those keeping track, if you don’t want to use Python with TensorFlow there is a simpler C++ option



This is the simplest so far but which started this whole level of research


You can see how simple stuff turns complex


Williams % and Stochastics most reliable Matlab technical indicator

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!
This entry was posted in Bitcoin Crypto Currency, Forex, HFT High Frequency Trading, Quant Analytics, Quant Development and tagged , , , , , , on by .

About caustic

Hi i there My name is Bryan Downing. I am part of a company called QuantLabs.Net This is specifically a company with a high profile blog about technology, trading, financial, investment, quant, etc. It posts things on how to do job interviews with large companies like Morgan Stanley, Bloomberg, Citibank, and IBM. It also posts different unique tips and tricks on Java, C++, or C programming. It posts about different techniques in learning about Matlab and building models or strategies. There is a lot here if you are into venturing into the financial world like quant or technical analysis. It also discusses the future generation of trading and programming Specialties: C++, Java, C#, Matlab, quant, models, strategies, technical analysis, linux, windows P.S. I have been known to be the worst typist. Do not be offended by it as I like to bang stuff out and put priorty of what I do over typing. Maybe one day I can get a full time copy editor to help out. Do note I prefer videos as they are much easier to produce so check out my many video at youtube.com/quantlabs