
Thus, it seems reasonable to try and improve on our original signal with additional rules. Usually, when a trader looks at a chart they take into account all sorts of different information. Obviously, a real trader is unlikely to take any signal based on one indicator on its own. The difficulty with testing any technical or price action trading signal is developing an objective and realistic set of rules with which to back-test the data. ReversePullback = BarsUnder AND TradeThrough
50 and 200 ema strategy code#
The Amibroker code for this price signal is shown below: We need price to trade through the line to get the signal. Note that the high of the day must be higher than the 200 day MA and the low of the day must be lower than the 200 day MA to get our signal. The previous chart that was shown above is a good example of the trade we are looking for. Once the stock has traded through the 200 day MA we go long on the next open and sell after a period of time. The signal looks for stocks that have been above their 200 day moving average for over 100 consecutive days which then drop back towards the 200 day moving average and trade through the indicator line. To test the effectiveness of the 200 day moving average pullback (or bounce) signal I created some code in Amibroker and back-tested the signal on historical data on S&P 500 stocks between 1/2000 and 1/2017 with various holding periods. Testing The 200 Day Moving Average Pullback (Or Bounce) In the rest of this article we will see how effective the signal has actually been using historical data to support our findings. In fact, I have seen many well known traders promote such simple strategies. This type of trading signal has become quite popular with some trend traders. In this event, the stock will fall below the entry price and the trade will be a loser. However, not every stock that pulls back to the 200 day moving average is going to carry on in an upward trend and some will shoot through the indicator and carry on heading south. It also means that the trader is able to rejoin the trend without having to buy at new highs, a technique that can often lead to sharp whipsaws.


The benefits of using the 200 day moving average as an entry is that it gives traders the chance to re-enter a trend that they may have missed. The 200 day MA acts as an area of support and the stock bounces off this level and resumes its upward march. It pulls back towards the 200 day MA in Feb 2016. As you can see, VRSN is in an upward trend.

The following chart provides a clear example. In this way, the 200 day acts as an important area of support for traders looking to rejoin the upward move. The 200 Day Moving Average PullbackĪnother popular strategy among traders is to use the 200 day moving average as an entry point into an already existing upward trend. This saved Jones from huge losses in one of the biggest stock market crashes in history.Įver since that time, the 200 day moving average has been considered a quick and easy way to tell whether a market is going up or going down. It’s said that Jones exited most of his long trades in the run up to the crash as they dipped below the 200 day MA.

The 200 day moving average was popularized by Paul Tudor Jones who used it to successfully avoid the stock market crash of 1987. I test the signal on S&P 500 stocks back to 2000 but I find no real edge to this signal on it’s own. In this article I look at a strategy that buys upward trending stocks as they pull back towards the 200 day moving average line. When a stock is above the 200 day MA, it’s said to be in an uptrend and when it’s below, it’s said to be in a downtrend. The 200 day moving average is an extremely popular indicator among traders and trend followers. By Joe Marwood Amibroker Stocks Strategies/ Systems Top Posts July 13, 2017
