0%

Machine learning has been a black box for most people. We have been told how powerful it is to address our questions with the terms such as CNN, LSTM, training data, modeling, …. Also, machine learning has been practicing in so many fields such as medical, finance, macroeconomic, marketing, …etc to address the most difficult and complex questions.

Using machine learning as a tool to beat the market would be our goal here. Therefore, I’ve put together a list of questions that I used to have and will address them one by one in this post, hoping this would help people who have the same questions as I did. The fundamental ideas and theories behind machine learning are all about math, which I’m not going to over in this article as it would take ages to explain them in a better way than all the other existing articles that you can find on the internet.

The questions are:

  • What does Machine learning do in the finance world?
  • How does machine learning work?
  • What are the FAMQ (Frequently Asked Myself Questions)?
  • Postlogue: What is our ultimate goal of developing a quantitative investment strategy?
    Read more »

It’s almost been a year I started working as a self-employed quant trader. I’ve been learning, researching, and coding most of the work time, then I invest to the rest of my time to taking care of families and tried to have quality time with them during this COVID year. Even though I broke my knee ligament while playing basketball and rest on the bed for almost two months, I’m still coding and refactoring my automatic trading framework in order to ready to dry run my next ready-to-go strategy.

However, I think I owe myself a transcript of the year to make sure I haven’t slacked off in this past year. Also, I need to set up a few goals in the new year.

Read more »

This is the finale of the【Factor analysis】 series. After all the things we have done: downloading the data, generating factor data, and conduct factor scoring, now we’re in the last part to evaluate whether our deeds are effective enough to profit.

Before analyzing anything, you need to have something to be analyzed. It’s unlikely that we’re going to buy all the good quality stocks, nor we’re able to define a fine line that above which score will make us money. So we have to build a strategy that we deem it’s profitable and then analyze the strategy against the benchmark portfolio, which is S&P 500 index.

Read more »

Previous reading

After we have collected all the fundamental data and have produced the factor data we need, how we can utilize them to compete with the market and to beat the benchmark return?

One of the common methods would be factor score. In this post, we’re going to describe and implement this factor score method to see how we can rate the stocks that have more potential to rise than the others in the future.

Read more »

We’ve talked about the definition of survivor bias and the impact if we didn’t notice and resolve it in 【How 2】 Vol. 3. How to produce a quality tradable securities for backtesting. One of the most critical topics that we need to address is to get the accurate list of components of your target portfolio over time when developing your investing strategy. Therefore, I’m gonna use S&P 500 Index as the example to go through this post, and we’re gonna use the result to the later series in 【Factor analysis】 Vol. 1. Introduction the idea of factor analysis.

Read more »

In the last post Vol. 1. Introduction the idea of factor analysis, we have introduced the concept of factor analysis. There are various ways to implement the factor analysis against the problem you’re trying to resolve or explain. However, any of them would require proper data to be provisioned.

Just like the cover image that I used in this post implies. All the top-tiered chefs know how to make good dishes as their skills are polished and proficient. In the end, the quality of the ingredients matter. That’s why it’s essential to acquire the right data in the right way, and then you’ll have the solid foundation to proceed with the analysis.

Read more »

In previous posts, we’ve been talking about the momentum strategies like MACD strategy and turtle strategy. These are the standard strategies based on the hypothesis that when the environmental variables, such as price moving average, technical indicators, and other subjective numbers, meet certain requirements, the stock price would follow the trends and continue to go up/down. The scholars believe that the momentum would continue pushing the stock price further if such investor confidence has been established.

Other than that, there is also another methodology out there, called factor analysis. To explain this in detail, I’m going to separate this huge topic into several parts:

Read more »

Last post in 2020. See you, 2020. See you, in 2021.

The Turtle Traders experiment was conducted in the early 1980s by Richard Dennis and William Eckhardt to see whether anyone could be taught how to make money in trading. Therefore, the trading strategy that has been taught to these apprentices is named after this experiment as “Turtle Strategy“.

In this post, we’re going to quickly go through the turtle strategy itself, and I’m going to experiment with a few things against the backtesting platform that I’m checking out recently: JoinQuant.

Read more »

The above line chart shows how we have been doing on the enhanced MACD strategy as of today (2020/12/11 EST).

It’s been 19 trading days since we’ve launched our automatic trading script to trade on TD Ameritrade on 2020/11/17. So far, we have accumulated ~6% of the total investment even with a huge dip on Dec 9th.

Read more »