Click here to Login




Trend following systems

Updated on 2009-07-08





Trend followers are investors or traders that take profit from the long-term moves of the traded security.
A security is trending when it is headed in one direction, either up or down.
The trend following strategy goal is not to forecast the future price of a stock, it aims instead at following an asset movement until an exit signal occurs. In other words, a trend trading strategy assumes that the present direction of the stock will continue into the future.

Trend following systems can be summarized as follow: Buy or Cover when the prices are moving up, and Short or Sell when prices are going down.
Since trends are of different amplitudes, traders must pick major trends and holds positions in the direction of the trend in order to make the most profits.
This kind of strategy can be applied to any market and asset (Stocks, Forex, Futures, Options, ETFs and Bonds); it can be long, short or long/short.
It may also be used with a weekly, daily (end-of-day) or intraday period (1-hour, 1-minute...).

There are different techniques to implement a trend following system.

Here is a list of some of the popular trend following systems:

- Close price crosses above the moving average. The moving average could be simple, double, exponential, weighted....
The trend trader must also choose the moving average lookback period.
The QuantShare formula is: close > sma(close, 20) for the 20 period simple moving average.
You can use the 'cross' formula, so the signal will be valid only for the crossing bar:
cross(close, sma(close, 20))

- Moving average crosses over another moving average.
The two moving average should have different period.
The first moving average must have a lower period than the second one:
The QuantShare formula is: sma(close, 50) > sma(close, 100)

- The first moving average (short-term) crosses over the second moving average (medium-term) and the second one is above the third moving average (long-term) .
Example: sma(close, 20) > sma(close, 50) && sma(close, 50) > sma(close, 100)



- The close price approach a support or a trend line then goes up.
This pattern involves the use of advanced formulas to programmatically detect the trend lines and implement the trend following system.
We will explain how to do that in another post.

- Channel breakout: Close price is trading above the highest close price over a number of preceding bars.
QuantShare example: close >= hhv(close, 30)

- Chart Patterns: Use a chart pattern to detect trends and breakouts. For example, you can create a trend following system by detecting assets that are within a rising wedge pattern. A signal could be generated if prices bounces off the support line. Here is an article that shows you how to detect chart patterns programmatically using QuantShare trading software: Detect chart patterns using the auto support/resistance indicator

- Intraday High/Low: An intraday trend following system can be created by calculating the high/low of the first 30 minutes of a trading session then generating a buy signal if the price crosses above the high level (resistance) and a short signal if it crosses below the low level (support).

- The MACD line crosses over the signal line (that is, the MACD histogram crosses over the zero line, because the MACD histogram is the difference between the MACD line and the Signal line).
QuantShare example: Macd(14) - MacdSignal(14)



- The Trix indicator crosses over its moving average.
QuantShare example: trix(14) > sma(trix(14), 10)


These trend following systems can be implemented in your trading systems and backtested using daily, weekly, intraday or any other timeframe.
A short strategy could be implemented for every entry signal discussed above.
Example: for the two moving average crossing.
Instead of sma(close, 50) > sma(close, 100), a short trader could use the following trading formula: sma(close, 50) < sma(close, 100)












no comments (Log in)

QuantShare Blog
QuantShare
Search Posts




QuantShare
Recent Posts

Lock, Link and Undock your Charts
Posted 230 days ago

QuantShare
Previous Posts

Trend following systems
Posted 3481 days ago

Working with the formula editor
Posted 3483 days ago

Optimization of trading rules
Posted 3494 days ago

Volatility and trading systems
Posted 3496 days ago

Trading Optimization
Posted 3497 days ago

Same chart, different symbols
Posted 3504 days ago

Composite Indicators
Posted 3507 days ago

Example of advanced rule
Posted 3509 days ago


More Posts

Back







QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright 2019 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.