My original machine learning example was a popular post, and I figure it's about time for an update.
Although machine learning usually seems complicated at first, it's actually easy to work with.
Here, a model is created based off of past events and their outcomes. There are 3 input variables, or previous events, considered in this algorithm. They are the previous 3 days' changes in price. The outcome is whether a price increased or decreased in the following bar. Many of these events and their outcomes are used to generate a model using regression in scikit-learn . The model is then used to try to predict future changes in price.
Note that this is just an example, and should be improved before real use. Clone the algorithm, and let me know if you have any questions!