What are some simple techniques used for Timing the Stock Market over the long term?
Buy low, sell high - the problem, of course, finding a crystal ball that will tell you when the highs and lows are going to happen :-) You could, for instance, save your money in cash and wait for the occasional sharp drop, but then you've lost profits & dividends from having that cash under the mattress all those years you were waiting. About the closest I've ever gotten to market timing, and I think the closest anyone can get in real life, is that I cut personal spending to the bone from 2008 to 2011, and invested every spare cent.  But such opportunities only come along a few times in a lifetime. The other thing is to avoid what a lot of people do, which you might call anti-timing.  When the market is high, they jump on the bandwagon, then when it drops they panic-sell, and lose money. I can think of a few simple and quick techniques for timing the market over the long term, and they can be used individually or in combination with each other. There are also some additional techniques to give early warning of possible turns in the market. The first is using a Moving Average (MA) as an indication of when to sell. Simply if the price closes below the MA it is time to sell. Obviously if the period you are looking at is long term you would probably use a weekly or even monthly chart and use a relatively large period MA such as a 50 week or 100 week moving average. The longer the period the more the MA will lag behind the price but the less false signals and whipsawing there will be. As we are looking long term (5 years +) I would use a weekly chart with a 100 week Exponential MA. The second technique is using a Rate Of Change (ROC) Indicator, which is a momentum indicator. The idea for timing the markets in the long term is to buy when the indicator crosses above the zero line and sell when it crosses below the zero line. For long term investing I would use a 13 week EMA of the 52 week ROC (the EMA smooths out the ROC indicator to reduce the chance of false signals). The beauty of these two indicators is they can be used effectively together. Below are examples of using these two indicators in combination on the S&P500 and the Australian S&P ASX200 over the past 20 years.  S&P500 1995 to 2015  ASX200 1995 to 2015 If I was investing in an ETF tracking one of these indexes I would use these two indicators together by using the MA as an early warning system and maybe tighten any stop losses I have so that if the market takes a sudden turn downward the majority of my profits would be protected. I would then use the ROC Indicator to sell out completely out of the ETF when it crosses below zero or to buy back in when the ROC moves back above zero. As you can see in both charts the two indicators would have kept you out of the market during the worst of the downfalls in 2000 and 2008 for the S&P500 and 2008 for the ASX200. If there is a false signal that gets you out of the market you can quite easily get back in if the indicator goes back above zero. Using these indicators you would have gotten into the market 3 times and out of it twice for the S&P500 over a 20 year period. For the ASX200 you would have gone in 6 times and out 5 times, also over a 20 year period. For individual shares I would use the ROC indicator over the main index the shares belong to, to give an indication of when to be buying individual stocks and when to tighten stop losses and stay on the sidelines. My philosophy is to buy rising stocks in a rising market and sell falling stocks in a falling market. So if the ROC indicator is above zero I would be looking to buy fundamentally healthy stocks that are up-trending and place a 20% trailing stop loss on them. If I get stopped out of one stock then I would look to replace it with another as long as the ROC is still above zero. If the ROC indicator crosses below zero I would tighten my trailing stop losses to 5% and not buy any new stocks once I get stopped out. Some additional indicators I would use for individual stock would be trend lines and using the MACD as a momentum indicator. These two indicators can give you further early warning that the stock may be about to reverse from its current trend, so you can tighten your stop loss even if the ROC is still above zero. Here is an example chart to explain:  GEM.AX 3 Year Weekly Chart Basically if the price closes below the trend line it may be time to close out the position or at the very least tighten up your trailing stop loss to 5%. If the price breaks below an established uptrend line it may well be the end of the uptrend. The definition of an uptrend is higher highs and higher lows. As GEM has broken below the uptrend line and has maid a lower low, all that is needed to confirm the uptrend is over is a lower high. But months before the price broke below the uptrend line, the MACD momentum indicator was showing bearish divergence between it and the price. In early September 2014 the price made a higher high but the MACD made a lower high. This is called a bearish divergence and is an early warning signal that the momentum in the uptrend is weakening and the trend could be reversing soon. Notice I said could and not would. In this situation I would reduce my trailing stop to 10% and keep a watchful eye on this stock over the coming months. There are many other indicators that could be used as signals or as early warnings, but I thought I would talk about some of my favourites and ones I use on a daily and weekly basis. If you were to employ any of these techniques into your investing or trading it may take a little while to learn about them properly and to implement them into your trading plan, but once you have done that you would only need to spend 1 to 2 hours per week managing your portfolio if trading long-term or about 1 hour per nigh (after market close) if trading more medium term.
As an easy way to answer... look at an index, let's say the S&P 500.  Look at the price this last October, and predict where it will move in November... easy right?  It already happened, and you have the benefit of hindsight.  The move looks like such a consistent, obvious continuation of the previous up and down pattern.  It looks predictable, like you could have guessed that.  Now, look at today's price, and predict where it will go next month.  Not so easy now?  The problem is, every point you're at, all the time, looks like a possible inflection point or turning point.  If you're following an uptrend, you may think it'll continue, but you may also think that it zigged so far up already, that now it's ready for a zag down where you'll buy.  So you wait... and it keeps rising, and you kick yourself for missing out.  Next time, you see another uptrend and resolve to buy it regardless, thinking now it'll keep going, but it turns down the second you buy it, and keeps dropping.  You kick yourself again.  The market is amazing at doing this to you every time.  In real time, every wiggle in the price looks simultaneously like a trend that could continue, and like a trend that has moved far enough and is ready to reverse.  And more likely you'll guess the wrong one.   The ONLY way with some little hope of succeeding is to study study study, and find and learn trading rules with just over 50/50 chances (like buying when a moving average is touched within an uptrend as an example, and setting a stop loss at -1%, and a sell limit at +2% or something), and then never ever deviate from that strategy, because your only hope is in the consistency of statistics and odds over time.  You'll get many -1% losses, and hopefully enough 2% gains to compensate the losses, plus some profit.   OR, to make it easier, just buy in on a dip, and hold and hold and collect dividends, and be content to match the market without effort. "If you want to make a profit from long term trading (whatever ""long term"" means for you), the best strategy is to let the good performers in your portfolio run, and cull the bad ones.  Of course that strategy is hard to follow, unless you have the perfect foresight to know exactly how long your best performing investments will continue to outperform the market, but markets don't always follow the assumption that perfect information is available to all participants, and hence ""momentum"" has a real-world effect on prices, whether or not some theorists have chosen to ignore it. But a fixed strategy of ""daily rebalancing"" does exactly the opposite of the above - it continuously reduces the holdings of good performers and increases the holdings of bad.  If this type of rebalancing is done more frequently than the constituents of benchmark index are adjusted, it is very likely to underperform the index in the long term. Other issues in a ""real world"" market are the impact of increased dealing costs on smaller parcels of securities, and the buy/sell spreads incurred in the daily rebalancing trades. If the market is up and down 1% on alternate days with no long tern trend, quite likely the fund will be repeatedly buying and selling small parcels of the same stocks to do its daily balancing." Buy low and sell high.  Right now stocks are cheap (or at least cheapish).  If you wait for better forecasts, the price will be higher.  They might go down still farther, but no one knows for sure when that will happen, or where the bottom is -- despite what the talking heads on TV say.  Remember that what you really care about is sell price minus purchase price (plus dividends, but I'll ignore that).  What happens between the time you buy and the time you sell is irrelevant financially, but can be important psychologically. If it was me, and you are sure you won't need the money for at least 10 years, or better still 15-20, I would buy some index funds.  Pick something that you are comfortable with (some are more aggressive/risky than others), and then only look at it a few times a year, if that much.  Only do this as long as you are sure that you won't sell if the market drops further. That is a guaranteed way to lose money. This is what I've been doing for my retirement funds for 15 years, and its worked well so far. Assuming you were immersed in math with your CS degree, the book **'A Non-Random Walk Down Wall Street' by Andrew Lo** is a very interesting book about the random walk hypothesis and it's application to financial markets and how efficient markets might not necessarily imply complete randomness.    Lots of higher level concepts in the book but it's an interesting topic if you are trying to branch out into the quant world.  The book isn't very specific towards algorithmic trading but it's good for concept and ideas.  Especially for general finance, that will give you a good run down about markets and the way we tackle modern finance.    **A Random Walk Down Wall Street** (which the book above is named after) by **Burton Malkiel** is also supposed to be a good read and many have suggested reading it before the one I listed above, but there really isn't a need to do so.    For investing specifically, many mention **'The Intelligent Investor' by Benjamin Graham** who is the role model for the infamous Warren Buffet.  It's an older book and really dry and I think kind of out dated but mostly still relevant.  It's more specifically about individual trading rather than markets as a whole or general markets.  It sounds like you want to learn more about markets and finance rather than simply trading or buying stocks.  So I'd stick to the Andrew Lo book first.    ---  Also, since you might not know, it would be a good idea to understand the capital asset pricing model, free cash flow models, and maybe some dividend discount models, the last of which isn't so much relevant but good foundations for your finance knowledge.  They are models using various financial concepts (TVM is almost used in every case) and utilizing them in various ways to model certain concepts.  You'd most likely be immersed in many of these topics by reading a math-oriented Finance book.  Try to stay away from those penny stock trading books, I don't think I need to tell a math major (who is probably much smarter than I am) that you don't need to be engaging in penny stocks, but do your DD and come to a conclusion yourself if you'd like.  I'm not sure what career path you're trying to go down (personal trading, quant firm analyst, regular analyst, etc etc) but it sounds like you have the credentials to be doing quant trading.    ---  Check out www.quantopian.com.  It's a website with a python engine that has all the necessary libraries installed into the website which means you don't have to go through the trouble yourself (and yes, it is fucking trouble--you need a very outdated OS to run one of the libraries).  It has a lot of resources to get into algorithmic trading and you can begin coding immediately.  You'd need to learn a little bit of python to get into this but most of it will be using matplotlib, pandas, or some other library and its own personal syntax. Learning about alpha factors and the Pipeline API is also moderately difficult to get down but entirely possible within a short amount of dedicated time.     Also, if you want to get into algorithmic trading, check out Sentdex on youtube.  He's a python programmer who does a lot of videos on this very topic and has his own tool on quantopian called 'Sentiment Analyzer' (or something like that) which basically quantifies sentiment around any given security using web scrapers to scrape various news and media outlets.  Crazy cool stuff being developed over there and if you're good, you can even be partnered with investors at quantopian and share in profits.    You can also deploy your algorithms through the website onto various trading platforms such as Robinhood and another broker and run your algorithms yourself.    Lots of cool stuff being developed in the finance sector right now.  Modern corporate finance and investment knowledge is built on quite old theorems and insights so expect a lot of things to change in today's world.  ---  With a math degree, finance should be like algebra I back in the day.  You just gotta get familiar with all of the different rules and ideas and concepts.  There isn't that much difficult math until you begin getting into higher level finance and theory, which mostly deals with statistics anyways like covariance and regression and other statistic-related concepts.  Any other math is simple arithmetic. Why wouldn't you expect a long-term profit?  Say you buy 100 shares of company X, selling for$1/share today.  You hold it for 20 years, after which it's worth $10/share (in inflation-adjusted dollars).  So you've made a profit, only making two trades (buy & sell).  What the algorithmic traders have done with short-term trades during those 20 years is irrelevant to you. Now expand the idea.  You want some diversification, so instead of one stock, you buy a bit of all the stocks on whatever index interests you, and you just hold them for the same 20 years.  How has what the short-term traders done in the intervening time affected you? If you want to invest in the stock market, whether over a shorter period of 1 to 2 years or over a longer period of 10 or 20 years or longer you need to take some precautions and have a written investment plan with a risk management strategy incorporated in your plan. Others have said that 1 to 2 years is too short to invest in the stock market as the stock market can have a correction and fall by 50%. But it doesn't matter if you invest for 1 year or if you invest for 50 years, the stock market can still fall by 50% just before you plan to withdraw your funds. What you need to figure out is a way to get out before the market falls by 40% to 50%. A simple way to do this is to use technical indicators to warn you when a market trend is starting to change and that it is time to get out of the market. Two simple indicators you can use on a market index are the Rate of Change (ROC) indicator and the 100 week Moving Average (MA). Below is a 10 year weekly chart of the S&P500 with these two indicators charted. They show good times to get into the market and good times to get out.  If you are using the 100 week MA you would buy in when the price crosses above the MA line and sell when the price crosses below the MA line. If you are using the ROC indicator you would buy in when the ROC indicator crosses above the zero line and sell when the ROC indicator crosses below the zero line. So your investment plan could be to buy an Index ETF representing the S&P500 when the ROC moves above zero and sell when it crosses below zero. You can also place a trailing stop loss of 10% to protect you in case of a sudden fall over a couple of days. You can manage your investments in as little as 10 minutes per week by checking the chart once per week and adjusting your stop loss order.  If you want to progressively add to your investment each month you could check the charts and only add any new funds if both the ROC is above zero and sloping upwards. Another option for adding new funds could be if the price is above the MA and moving further away from the MA. All these rules should be incorporated into your investment plan so that you are not basing your decisions based on emotions. There are many other Technical Analysis Indicators you could also learn about to make better educated decisions about your stock market investments. However, what I have provided here is enough for anyone to test over different indexes and time frames and do their own paper trading on to gain some confidence before placing any real money on the table. Your question is a bit odd in that you are mixing long-term fundamental analysis signals which are generally meant to work on longer time frames with medium term trading where these fundamental signals are mostly irrelevant.  Generally you would buy-and-hold on a fundamental signal and ride the short-term fluctuations if you believe you have done good analysis. If you would like to trade on the 2-6 month time scale you would need a signal that works on that sort of time scale.  Some people believe that technical analysis can give you those kind of signals, but there are many, many, many different technical signals and how you would trade using them is highly dependent on which one you believe works. Some people do mix fundamental and technical signals, but that can be very complicated.  Learning a good amount about technical analysis could get you started.  I will note, though, that studies of non-professionals continuously show that the more frequently people trade the more on they underperform on average in the long term when compared with people that buy-and-hold. An aside on technical analysis: michael's comment is generally correct though not well explained.  Say Bob found a technical signal that works and he believes that a stock that costs $10 dollars should be $11.  He buys it and makes money two months later when the rest of the market figures out the right price is $11 and he sells at that price.  This works a bunch of times and he now publishes how the signal works on Stack Exchange to show everyone how awesome he is.  Next time, Bob's signal finds a different stock at $10 that should be $11, but Anna just wrote a computer program that checks that signal Bob published faster than he ever could.  The computer program buys as much as it can in milliseconds until the price is $11.  Bob goes to buy, but now it is too late the price is already $11 and he can't make any money. Eventually, people learn to anticipate/adjust for this signal and even Anna's algorithms don't even work anymore and the hunt for new signals starts again. "You cannot just read one book and some articles on Technical Analysis and some indicators and expect to be an expert and everything to just start falling into place and give you signals that will tell you when to buy and sell with precision and massive profits all the time.  It is like someone reading a book on how to drive a car and then expecting to drive flawlessly the first time they sit in the driver's seat, or someone reading a book on brain surgery and expecting to be able to operate on a live patient the next day. It looks like you are using 3 or 4 indicators to get daily buy and sell signals on a daily chart for an EFT you're looking to hold for decades. So firstly you are using short term indicators for a long term outlook. You need to decide what timeframe you plan to hold your investments for and use chart periods and indicators that suit that timeframe.  Secondly, each indicator can be used in a number of ways and the settings you use for each indicator can determine whether you get earlier or later signals. Also, you need to work out which indicators work well together and are complementary, compared to those that don't work well together and give conflicting signals. All this information will come together for you the more you read about and practice the art of Technical Analysis. If your timeframe is very long-term (decades) I would be using mainly a weekly chart, with a longer period MA, the ROC indicator and possibly some trend lines. Keep it simple. The price itself is very important too. You can determine when a trend is starting or has ended purely using the price. The definition of an uptrend is higher highs and higher lows, so on the weekly chart if there is a lower high followed by a lower low - this could be the end of the uptrend. If we get a lower low followed by a lower high - this again could be the end of the uptrend. These could be a good time to start getting cautious and maybe looking to sell. If you are using stop losses (which I recommend) this may be a good time to tighten your stops. Similarly, a downtrend is defined as lower lows and lower highs. If we get a higher low followed by a higher high it could be the end of the downtrend and maybe the start of an uptrend. This could be a good time to start getting ready to buy. You need to learn about how and where to set your buy and sell orders (including stops) and whether you wait for confirmation when you get a signal. All this takes some time, but the more you read, the more you attend live events and the more you practice the more they will become second nature. In order to get the best out of Technical Analysis you will need to learn, plan, practice and execute. A good book to help you prepare your trading plan is ""Smart Trading Plans"" by Justine Pollard. One of my favourite books is ""The Complete Trading Course - Price Patterns, Strategies, Setups, and Execution Tactics"" by Corey Rosenbloom. And another good book is ""Trade your Way to Financial Freedom"" by Van Tharp." "This simulation game uses actual historical S&P 500 data to test whether you can ""time the market."" You start with $10,000 invested, and it plays back 10 years of index values, in which time you can choose to sell (once), and if you do sell you can subsequently buy (once). Then you find out how you did relative to just holding what you started with.  If you play it enough times, you might eventually beat it once. I never did." "If by saying you wish to invest ""for the long term 5-10 years"" I take it you mean to hold a stock for between 5-10 years. If this is the case, this is the fundamental flaw in your screening algorithm. No company stock price continues to go up without end for 5-10 years. The price of every company's stock goes down at some point. You have to decide on a company by company basis whether you want to ride out the downturn or sell and get out. This is a personal decision based on your own research. The list of screening criteria you list indicates you are looking for solid earnings companies. Try not to apply these rules rigidly because every company runs through a rough patch. At times past, GE (for example) met all of your criteria. However, in 2017, it would not and therefore would not meet your screening criteria. Would you sell GE if you owned it? Maybe, or maybe you would hold through the downturn. The same be said for MSFT in 2010 or AAPL pre-Jobs return. A rule you may want to add to your list: know the company business well; that is, don't invest in companies you have no understanding of their business model." "I always liked the answer that in the short term, the market is a voting machine and in the long term the market is a weighing machine. People can ""vote"" a stock up or down in the short term.   In the long term, typically, the intrinsic value of a company will be reflected in the price. It's a rule of thumb, not perfect, but it is generally true. I think it's from an old investing book that talks about ""Mr. Market"".   Maybe it's from one of Warren Buffet's annual letters.    Anyone know? :)" Machine learning is definitely applied to trading, but I have not tried it myself. For now I've been focused on figuring out the platforms and how they work; I have not been trying out other strategies besides a SMAC strategy. The most machine learning-like application I've attempted was cross-validation by walk-forward analysis (I'm publishing that post on Monday).  I know nothing about TensorFlow other than it's used for deep learning and that it doesn't work on Windows and thus would not work on my more powerful gaming computer, and like I said above, I have not been exploring machine learning right now. Neural networks are on my radar, on the list of things I need to read, but there was a topic on r/algotrading recently where most users said that deep learning has not demonstrated better performance than more traditional ML techniques and looks like a fad. I want to convince myself of that first, though.  I'm glad you enjoyed the post and my site! Thank you! You would appear to be a swing trader, like myself. I have been trading futures and futures options for 29 years, and have both made and lost a lot of money in that time. My trades last hours, to days, to at most a few weeks. From my experience, the most important skills are: 1) Money management - keeping trade size small in relation to total capital. I typically risk 2-3% of my capital on a trade, so a loss is fairly immaterial. 2) Risk management - limit your loss on every trade, either by using stop orders, options, or a combination of these 2. 3) Emotional discipline - be prepared to exit a position, or reverse from long to short, or short to long,  on a moment's notice. The market doesn't care where you entered, or whether you make or lose money. Don't let your hunches or the news influence your decisions, but follow the market. 4) Methodology discipline - test your analysis / trade entry method to ensure that it is objective, and has a reasonably good probability of success, then stick with it. Variation will inevitably lead to indecision or emotional reactions. 5) Flexibility - consider trading anything which can make you a profit, but ensure that there is a lot of liquidity. I trade 30 different futures markets, as well as various option writing strategies in these markets.  Feel free to reach out if you want to discuss further. I have about 500 (yes, 500) trading e-books as well, on every trading subject you can think of. "Strategy would be my top factor.  While this may be implied, I do think it helps to have an idea of what is causing the buy and sell signals in speculating as I'd rather follow a strategy than try to figure things out completely from scratch that doesn't quite make sense to me. There are generally a couple of different schools of analysis that may be worth passing along: Fundamental Analysis:Fundamental analysis of a business involves analyzing its financial statements and health, its management and competitive advantages, and its competitors and markets. When applied to futures and forex, it focuses on the overall state of the economy, interest rates, production, earnings, and management. When analyzing a stock, futures contract, or currency using fundamental analysis there are two basic approaches one can use; bottom up analysis and top down analysis. The term is used to distinguish such analysis from other types of investment analysis, such as quantitative analysis and technical analysis. Technical Analysis:In finance, technical analysis is a security analysis methodology for forecasting the direction of prices through the study of past market data, primarily price and volume. Behavioral economics and quantitative analysis use many of the same tools of technical analysis, which, being an aspect of active management, stands in contradiction to much of modern portfolio theory. The efficacy of both technical and fundamental analysis is disputed by the efficient-market hypothesis which states that stock market prices are essentially unpredictable. There are tools like ""Stock Screeners"" that will let you filter based on various criteria to use each analysis in a mix.  There are various strategies one could use.  Wikipedia under Stock Speculator lists: ""Several different types of stock trading strategies or approaches exist including day trading, trend following, market making, scalping (trading), momentum trading, trading the news, and arbitrage.""  Thus, I'd advise research what approach are you wanting to use as the ""Make it up as we go along losing real money all the way"" wouldn't be my suggested approach. There is something to be said for there being numerous columnists and newsletter peddlers if you want other ideas but I would suggest having a strategy before putting one's toe in the water." "First: what's your risk tolerance? How long is your investment going to last? If it's a short-term investment (a few years) and you expect to break even (or better) then your risk tolerance is low. You should not invest much money in stocks, even index funds and ""defensive"" stocks. If, however, you're looking for a long-term investment which you will put money into continually over the next 30 years, the amount of stock you purchase at any given time is pretty small, so the money you might lose by timing the market wrong will also be rather small. Also, you probably do a remarkably poor job of knowing when to buy stocks. If you actually knew how to time the market to materially improve your risk-adjusted returns, you've missed your calling; you should be making six figures or more on Wall Street. :)"