O'Reilly logo

A Guide to Creating A Successful Algorithmic Trading Strategy by Perry J. Kaufman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 16 Constructing a Trend Strategy

We’ve discussed a lot of issues needed to create a sound algorithmic trading strategy, but it’s necessary to put it all together to solidify those ideas. If you’ve decided to base the strategy on a long-term trend, there are still a number of specific decisions to make with regard to the strategy, including:

  1. The trending technique.
  2. The rules for buying and selling.
  3. Stop-loss or other individual trade risk controls.
  4. Profit-taking and reentry.
  5. Single or multiple entries and exits.

There are also other decisions that apply to any strategy:

  1. Position sizing.
  2. Volatility filters.
  3. The test plan, including the markets to test, the date range over which the strategy should work, and the criteria you’ll apply to decide if it’s successful.
  4. Creating and testing a portfolio of stocks, ETFs, or futures markets.

You could get much more complicated, but if you can work through these points successfully, you will have created a strategy that’s likely to succeed.

THE TREND

The concept is that a long-term trend captures the underlying direction of the market, that is, the way prices react to economic policy, and tries to ignore the noise caused by day-to-day news releases. We know that the long-term (“macro”) trend has a history of success, and we want to participate. The three most likely candidates for identifying the trend are the moving average, the breakout, and the linear regression.

As we’ve stated earlier, any one of these can be doing better ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required