Tuesday, 3 January 2017

Machine Learning for Trading (Part 1)

Over the past few weeks / months, I've been looking at possibilities of using Machine Learning techniques for trading. This has mainly been research, reading, watching some stuff, messing around with Python, etc. Also, a few experiments on MarketScope. Let's call that Phase 1 - it wasn't very directed and nothing really concrete has come out of it, it was just meant to be a learning activity to discover some of the possibilities.

I'm now at a stage where I want to focus a little more, and put some more effort into this activity. With more direction, and some actual goals too. I'll try to cover as much as possible on the blog over the next few weeks and months.

What is Machine Learning?

"Machine learning is a method of data analysis that automates analytical model building. Using algorithms that iteratively learn from data, machine learning allows computers to find hidden insights without being explicitly programmed where to look"

Well, that's one definition at least. I guess the essence is that there is some kind of "engine" which will analyse the data (inputs) and produce / deduce some kind of result (output) without having to be explicitly programmed how to do it - the learning algorithm itself works out the "how" from the data.

Machine Learning is typically used for either "classification" or "regression". Probably most people are familiar with regression, such as linear regression, where a straight line is fitted to the observed data, and this line can be used to predict values that have not yet been observed. Classification is where the data is classified into 2 or more categories and the learning algorithm learns how to classify new points based on its learnt model. These categories (or classes) can be given (e.g. as labels in the training data) or even determined by the learning algorithm itself.

Machine Learning is used increasingly more in many tasks these days, everything from search engines to computer vision and speech recognition. I will of course be focusing on the application of trading.

Wiki page on Machine Learning.
Read more ...

Tuesday, 29 November 2016

VWAP Article

I just read this really interesting article on VWAP: 7 Reasons Day Traders Love The VWAP.

It's got a good description of VWAP, some simple trading stategies for VWAP, and some top tips.

The article is mainly aimed at VWAP on stocks. However, it's still a good read.
Read more ...

Monday, 28 November 2016

Candle Pattern Indicator

I'm currently developing a candle pattern indicator. Actually this is something that I had started a year or so ago, but never completed. Finally getting around to finishing it off!

There will actually be 2 indicators (released as a set).

Candle Pattern indicator will detect common Japanese candlestick patterns, e.g. Doji, Spinning Top, Bullish/Bearish Engulfing, Morning Star, Hammer, etc.


Candle Pattern Scanner, will implement the same pattern matching rules, but will do so for a number of instruments (e.g. all forex majors, all forex, all instruments, custom list, etc.). The indicator is similar to my Multi-Indicator indicator and will draw a "min-chart" of the last few candles and the most recently detected candlestick pattern.


This is still a work in-progress, and I only implemented a preliminary subset of candlestick patterns. I also intend to add alerts (e.g. sound/pop-up/email) which can be used to notify the user when a new pattern has formed.
Read more ...

Tuesday, 8 November 2016

Currency Strength and Major Markets (9/11/2016) ; morning after US elects Trump

The currency strength charts shows large moves across the board:


Same for stocks and gold:


And the day has just started. Tie those chin straps...
Read more ...

Line Sync (Release 11)

I just uploaded a new version of the Line Sync indicator.

Release 11:
  • Added �auto-label� feature for horizontal and vertical lines 
  • Modified import / export code to support colours better 

The import/export now supports easier colour handling, which now allows colours to be expressed as an integer value, an RGB value or a colour name.
An example of an import/export file is shown below...

The "auto-label" feature can automatically label horizontal lines with price, and vertical lines with the date and time. These automatic labels are only shown when there is no user-defined label.


More information on Line Sync can be found here.
Read more ...