Pages

Wednesday, March 9, 2011

The Master Swing Trader:Moving Averages

Farley says that MAs are classic momentum tools that define both trend and natural pullback levels. He indicates that moving averages as an important Support/Resistance factor. And, as we know from a previous post, it takes more than a few S/R factors to add up to actually give a stock support (or resistance) After looking into MAs, I for sure concur that even mentioning a MA in a separate support context can be meaningless. Farley goes on to mention the 20 day MA is short-term, 50-day MA is intermediate term, and of course 200 day is long-term.

Farley mentions that you may want to adjust the MA periods for different time-charts. For example, he suggests a 5, 8, and 13 period MA for 1 through 60 minute charts. I'm going to demo a few MA concepts in the charts below, so I hope you get the idea of how MAs really work.

Farley also talks about MACD, or Moving Average Convergence/Divergence. This is simply how far apart two Moving Average indicators are, and whether the shorter timeframe MA is higher in price than the longer MA (which is a bullish-upward-moving chart). Here is a chart of GDX which shows a 20-day MA in blue, and a 50 day MA in black. It shows how the 50-day MA acts as a support indicator or “natural pullback” point, as Farley would say. Also indicated are the crossovers which are also 0 points on the MACD chart beneath. The blue line is the convergence/divergence factor on the MACD pane.. You should also notice that the MACD factors (20, 50) coincide with the moving averages I’ve selected for the price pane. This is important so the MACD will indicate the convergence/divergence of the Moving Averages you’ve chosen for the price chart.



For those who worry about the small errors in the crossover points, the MACD is calculated based on the close of the day, and the MAs are calculated based on the previous closes. So you would expect to see the MA crossover to happen before the MACD crossover in a downtrend, and expect the opposite in an uptrend. Anyway…

So I studied MACD, and moving averages. And they have a basic flaw. You cannot use one set of MA time periods. Here’s why. This next chart is a daily chart of CLR, and as you can see, the same 20,50 day moving averages show complete trash. Looking at it, I don’t see one support or resistance point where the MA was actually effective in pointing out one of those support/resistance points.



However, here is the same time-period chart, with the MA’s adjusted for 8 day (blue) and 13 day (black). I’ll leave it up to the reader to identify the numerous support and resistance points identified by the moving averages. Even the crossovers make sense now.



Why is this so? Our moving average theory obviously falls apart, unless we adjust the periods. The basic problem is volatility. The volatility of a stock, that is how much it rises or falls in a given timeframe, adjusts the meaningfulness of our moving averages. For a high volatility stock, a shorter MA period is required. For a lower volatility stock, a longer MA period is required.

After studying MA’s, I believe they are very difficult to manage. I have not yet come across a formula for setting the MA’s time periods because I haven’t come across a per-stock volatility index. And besides, to adjust the MA’s everytime I change to a different ticker is a time-consuming task. I kind of think MA’s are semi-worthless until you take the time to play around with the periods to see what fits that stock’s given volatility for the elapsed time you’re looking at.

82 comments:

  1. Hhhmm, down a bit today out of the gates. Looking at the charts (especially the daily one) tells me that the trend of up, up, up is at least temporarily over. The volatility and battle between the bulls and bears is back. Seems toppy to me.

    ReplyDelete
  2. LOL Rock. Where is everybody today?

    ReplyDelete
  3. What could propel this market higher? Inflation in Ems high. $100 oil. No one sure if QE3 is coming.

    Day of rage in Saudi Arabia on Friday.

    @Rock,

    Thanks for your efforts to keep the shop open while Denise is away.

    ICan

    ReplyDelete
  4. @Rock,

    You are interested in RMB - Yuan.

    "Currency MANipulation: sex ratio drives lower Yuan trade". http://www.theglobeandmail.com/report-on-business/economy/economy-lab/theeconomists/

    Interesting theory. The author thinks the Yuan will not appreciate soon as people save too much to marry off their sons.

    ICan

    ReplyDelete
  5. From Macro-man blog:

    TMM thinks Suncor looks good if there is a revolution in Saudi.

    Ican

    ReplyDelete
  6. "the current cosolidation in the SP 500". http://blog.afraidtotrade.com

    1325 -1305 range bound.


    ICan

    ReplyDelete
  7. @Manny, careful about using words like toppy, or the next thing you know, you're going to be invited on CNBC to interview with Maria B.

    ReplyDelete
  8. No thanks, greg! LOL. Sideways action for a while, I think.

    ReplyDelete
  9. Although wanting to go green now. Still not convinced this thing has the legs RIGHT NOW to go much higher.

    ReplyDelete
  10. @greg,

    CAD/USD highest since Nov. 2007. $1.0330 this morning?

    Good idea to buy some U$D?

    ICan

    ReplyDelete
  11. UUP dipped below 22 for a short time. Poised to go there again and beyond?

    ReplyDelete
  12. @Greg

    I would *SO* fly to NY to be interviewed by Betty......

    ReplyDelete
  13. @ICan, I can now afford that trip down to Minny. I'll pick up Manny, we'll hit the Apple store and pick us up a couple of iPad 2's.

    ReplyDelete
  14. @Rock..do you mean Becky Quick?

    ReplyDelete
  15. Betty Liu. Rock has a crush on her. I'd fly there for Betty as well.

    C'mon by and get me, greg, as long as you're buying? Those iPad 2's, that is.......

    ReplyDelete
  16. @Rock, just googled Betty. I can see why!

    @Manny, if our dollar keeps going, I'd be able to get like two for the price of one. Go you crazy Loonie.

    ReplyDelete
  17. @greg,

    Rosenberg, a few days ago said loonie is over priced by about 10 cents. So I'll pick up manny this afternoon.

    ICan

    ReplyDelete
  18. Looking like they want to fill Apple's gap at $342. Bastards!

    ReplyDelete
  19. @ICan..isn't he an economist?

    ReplyDelete
  20. Too bad Betty is younger than my middle daughter.....sigh.....sigh.....sigh....

    ReplyDelete
  21. @Greg:

    Who? Bastards? no, I think that's a gourmet mustard. Isn't that the one they have the dueling Rolls Royces?

    ReplyDelete
  22. This one's for Thor:

    http://www.nakedcapitalism.com/2011/03/richard-koo-how-the-west-is-repeating-japans-mistakes.html

    I believe that I'm in this camp as well.

    ReplyDelete
  23. Morning folks!

    Great post Rock! Reading that now Manny, good stuff!

    ReplyDelete
  24. lowest price of gas along my 13 mile route to work was $4:01 for regular at an Arco. High was $4:15 for regular at Shell. Heard an oil analyst on NPR this morning saying that gas prices aren't even close to reflecting all the recent rise in oil prices! Guess I'll have to budget for $4.50 or %5.00 (god forbid!).

    These aren't small increases in a place where people spend a LOT of time in their cars every day.

    ReplyDelete
  25. Contrarian indicator? If economists are saying it, I have to pause here and maybe run for the hills.

    http://www.nytimes.com/2011/03/09/business/economy/09gasoline.html?hp

    ReplyDelete
  26. I guess having more unemployed, fewer good jobs means we're "more prepared" for rising oil prices? Color me confused. I guess it depends on what they mean by the word "we're".....

    ReplyDelete
  27. @Greg

    Yeah, yeah, yeah.

    But depending on what we see happening now, maybe those hedge fund guys are quitting a few weeks too soon.

    I see a whole lot of channel breaks to the downside. I see a lot of M's with the right side lower. AAPL too.

    Birinyi says the bull market will go on for years. Other big guys say buy now.

    Maybe that means it's time to be cautious. I bought some VXX this morning at around 32.20 as a hedge because some of my longs are taking the pipe.

    St. Jude's may have to wait until July.

    ReplyDelete
  28. Rock - Thanks for the great post, lots of useful information, some of it I have heard, read and studied before, but it always a good idea to get several view points and takes on it.

    Mutt

    ReplyDelete
  29. Manny - was thinking the same thing! We're not in the same economic boat we were in in the summer of 2008 when we went through this the first time. What I think is tragic, is that many are going to try to spin this as the governments fault with QE and QE2, when we don't even know whether or not this recent rise is being fueled by speculators. It's like they'll try to control "the message" before people even figure out something isn't quite right.

    ReplyDelete
  30. our weekly trading lesson. thks Rock ;) in a hurry now, will stop by later to comment.

    may have less time available in the coming weeks, as I try my hand at freelance jobs. im gonna take a look at online marketplace for a starter, the likes of rentacoder.

    if someone has experience with such online jobs, or more generally with freelancing in programming, thks for sharing. ;)

    have fun

    ReplyDelete
  31. Rock - if this Betty woman is younger then your middle daughter, then that means if you guys got married your new mother in law would be your age.

    By the way is the Betty Liu related to Lucy Liu? Cuz I always had a crush on Lucy, heck if I married Lucy and you married Betty, we would be like Bros. That means you would having a M-I-L your age and a Mangy ass mutt for a Bro-I-Law, heck there is NO way your life could get any better then that :)

    Mutt

    ReplyDelete
  32. gonna be interesting to be in worldwide competition., with many programmers doing the job for peanuts. quality vs price? well see.

    ReplyDelete
  33. @Thor, your 11:29. Maybe you should ask to be paid in Canadian dollars:)

    ReplyDelete
  34. MN is close enough to Canada, maybe we could just use the loony as our currency, kind of like how some countries (e.g. Mexico) accept the U.S. dollar?

    ReplyDelete
  35. Living in their carsMarch 9, 2011 at 11:52 AM

    Thor (11:29)- "people spend a LOT of time in their cars every day." No kidding and it is not just because more and more people are living in their cars.

    I am looking for a new(Used) car for daily commuting and it seems like most the cars have well over 100,000 on them. I seriously can not phathom how a 2004 car can have 150,000 miles on it, that is like 70 miles a day, so even at 35mpg and $4 gal gas, that is $8 a day so $3000 a year and that does not include wear and tear and other stuff.

    Something has to give.

    Mutt

    ReplyDelete
  36. Greg (11:50) Great idea, but maybe Ben Bernanke can save us all a lot of trouble and start calling the dollar - Looney :)

    Mutt

    ReplyDelete
  37. Hah, I'll wait till the loonie gets above parity again. I did accidentally come home from the UK with a hundred pounds though!

    ReplyDelete
  38. @Thor, maybe you ate too much whilst in the UK. I can hook you up with a great weight loss program.

    ReplyDelete
  39. Hahahah, Greg, I'll bet you could :P I did gorge myself on bangers n mash though, I don't know what people are talking about when they say English food is horrible, I could live on bangers and mash alone!

    ReplyDelete
  40. From that article: Guy was spending $100 a week on gas alone? Wow, I spend probably $40 every OTHER MONTH on my car's gas and maybe $150 a MONTH overall for my wife and I. $100 a week would be unfathomable to me.

    ReplyDelete
  41. What's with this lift off? Did I miss some news or something? Maybe they found the Holy Grail along with a bunch of other ancient treasures buried under the Capital?

    ReplyDelete
  42. Many - Wow, lucky guy. I fill up my car ever 6 days. Last fill up was 60 bucks. I'm sure the next one will be closer to 70. I work with people who drive two hours each way to get to work. We have people who work here who live all the way up in Santa Barbara our out in Apple Valley (both about a hundred miles away)

    ReplyDelete
  43. S&P still barely green though and NAZ still down.

    ReplyDelete
  44. And even the $70 a week he'll be paying still seems like a lot to me.

    ReplyDelete
  45. That is insane, Thor. I would love more sun and good weather but not sure I'd put up with the trade off having to spend all of my time in the car. Maybe if had a sun roof or a convertible? ;-)

    ReplyDelete
  46. Manny - yeah, it's a huge trade off for a lot of people. I moved here specifically to get away from the shitty SF weather, people say San Diego has the best weather in the country but I'd argue we do here. You'd be surprised how many people living here wouldn't live anywhere else. Same as NYC I guess. One small consolation for me though, although it's expensive to live here, it's still less expensive than SF was.

    I am constantly reminded of that trade off though every weekend I'm out on the desert. Seeing how much MORE you get for you money, and how much better the quality of life is, just 100 miles East!

    ReplyDelete
  47. Also, believe it or not, it is possible to live here without a car. I have a couple of friends who don't drive, they either live very close to work, or are near mass transit. They're building subways and light rail here like mad though, I'd imagine in 10 years it'll be a lot easier to get around LA without a car than it is now. One of the lines they're running will have a stop literally right across the street from where I work now. Don't think I'll still be here in 10 years, but if I am, I'll be able to take the subway to work.

    ReplyDelete
  48. Quite a roller coaster today. Schitzo market

    ReplyDelete
  49. Uh oh -

    MarketWatch

    Tablets may be at risk of ‘bubble burst’
    Companies rushing to launch competitors to Apple's iPad may be overestimating demand, says J.P. Morgan analyst, who fears a year-end glut.

    ReplyDelete
  50. Wow, I walk away for a bit and TLT pops a bit. That 87-90 level seems to be holding once again. For now anyway.

    ReplyDelete
  51. LOL Thor. That is classic. The bubble economy rolls onward.

    ReplyDelete
  52. Bursting the iPad BubbleMarch 9, 2011 at 2:28 PM

    Thor - I don't know if you will agree with this assessment or not. But for the last 20+ years computer hardware has been in an exponential growth cycle and this has caused any meaningful software or programming to be in a considerable lag.

    Consider the phone you have today, is more then likely has way more computing power then the home computer you had just 5 years ago, but the software that runs the programs is not that more robust.

    It seems that with this down turn in the economy and regular users reaching their limits on new gadgets now would be a good time for a new break through in software and programming.

    Mutt

    ReplyDelete
  53. Mutt - Annoying isn't it? From a support/budget perspective especially. We constantly have to upgrade out video editing machines because of all the new software (CS5, Final Cut Pro, etc) that comes out. More often than not there are new features that we really need to use so there's little choice. I'm just glad we have the money right now to make all this happen. My last company scrimped on technology hard core. We had employees on machines that were 4 and 5 years old - and this was 10 years ago!

    ReplyDelete
  54. Red Headed Step ChildMarch 9, 2011 at 2:43 PM

    Thor - It seems like most of the IT jobs I have had, have all been spin offs of the accounting dept, where they tend to put a dollar value on everyting and if you can not show an actual dollar savings by upgrading, you ain't getting it.

    Yes it is frustrating, it is not nessisary to have the latest and greatest, but at least try and stay current.

    Oh well such is the life of a red headed step child.

    Mutt

    ReplyDelete
  55. @Mutt
    One of the take-away's of the post is that the price charts don't lie.

    People try to develop fancy-ass oscillators and tools that attempt to predict your investment future, but unless you're able to understand the math behind them, like MACD, those tools will influence you to make bad decisions.

    I think that's one reason many traders lose money in the market.

    ReplyDelete
  56. Mutt - that makes sense, it was like that at my last job too. I think that's usually because IT is where most of the money is spent in most companies so they want to be able to keep track of that. Here, we're our own department and believe it or not we're the largest department in the company. Our business is very technology dependent though, so I'd imagine that's why we're not reporting into finance.

    ReplyDelete
  57. Rock - those tools will influence you to make bad decisions. I think this is key - too many people thinking the one or two systems they are wedded to are infallible. Best to get as much confirmation and as many different inputs into a trading decision as you can. Relying on one chart, or one system, I think, too often leads people to miss the forest for the trees.

    ReplyDelete
  58. NEVER make bad decisionsMarch 9, 2011 at 3:50 PM

    Rock - Thank goodness I NEVER make bad decision...Ok, you can stop laughing at me now...

    Thor, I think you and Rock are correct, getting and understanding the market isn't as easy as understanding charts and systems, so far in the little experience I have, it seems a good trader also needs to be dynamic and able to change and even make choices they other wise would find distasteful.

    Mutt

    ReplyDelete
  59. @Thor
    RE: tablet market penetration:

    except for AAPL, I too am in the tablet is approaching saturation camp. In the case of AAPL, it is not, because the AAPL is a fashion statement.

    ReplyDelete
  60. Happy birthday.

    ReplyDelete
  61. I was wrong about my comment that Lybia wouldn't be cutting production.

    I guess some people like to poo their own bed. I wonder why. Anyway, it seems Lybia production will be down for awhile, and some other unstable government will have to supply the shortfall, because the US isn't, and Canada isn't.

    So what stock goes up with oil prices? Not SU, not XOM.

    ReplyDelete
  62. Bear - HAH! Very clever ;-)

    Rock - agree with your call on Tablet saturation. The Apple die-hards will always re-buy them, but I think that group is getting smaller and smaller as their market share goes up.

    ReplyDelete
  63. Senate didn't even give the House GOP bill a simple majority - 56/44. Love this quote from Ben Nelson

    Sen. Ben Nelson (D-Neb.), who had been targeted by the GOP, told his colleagues that the House bill “has too much hate” for him to accept.

    ReplyDelete
  64. Anyone plan on reading Mauldin's new book?

    ReplyDelete
  65. Rock(3:57)

    Gazprom
    Rosneft
    Lukoil

    Disc. No position. Don't know anything about them.

    ICan

    ReplyDelete
  66. weak post for tomorrow, I'm just getting home from work :-(

    ReplyDelete
  67. Rock,

    Great post today. Not much time (or inclination) to look at anything but it seems like the market is still in a consolidation phase, markets can correct by going sideways as well as down.

    Having a great time, relaxing, seeing the sites, and eating too well!

    ReplyDelete
  68. Has the match been lit in Madison?

    http://community.nytimes.com/comments/www.nytimes.com/2011/03/10/us/10wisconsin.html?sort=oldest&offset=2

    ReplyDelete
  69. Denise - Glad you're having a good time!

    ReplyDelete
  70. @Thor: We'll find out, won't we? Seems to me the games are just getting started there. It's amazing that things are playing out on that front like many of us had predicted.

    ReplyDelete
  71. Leagal - You are kidding right?March 10, 2011 at 12:34 AM

    Thor - At this stage of history in our country does it matter what is "Legal" wont TPTB change everything to fit their wishes?

    Mutt

    ReplyDelete
  72. Guys, this is INSANE, right? That we've come to this? Worse, this is only the beginning!

    ReplyDelete
  73. SO crazy. The oligarchs have won, they got rich off the last bubble, got bailed out when it blew up, have more power, money, control, than they did before, and have managed to turn half the nation against the other half. They're fighting the last vestiges of power that was left to the people. They don't even have to fight anymore, they have their minions doing their dirty work for them, and then turning around and begging to get raped some more.

    ReplyDelete
  74. Thor - Through and by the Grace of God or whatever deity presides over this universe. Our America grew into a truly wonderful nation, but by the greed of man, we have destroyed it.

    It probably will not happen in our life time, but because the regular people do not want to stand up and hold our leader accountable, I do believe we are in the beginning of the end.

    Oh well, let's all just party while we can :)

    Mutt

    ReplyDelete
  75. One of these days we'll wake the hell up, hopefully that day is sooner rather than later.

    ReplyDelete
  76. Grabs beer and turns on xboxMarch 10, 2011 at 1:05 AM

    Thor - I sure hope someone wakes the hell up soon, cuz I am almost out of beer and I am too busy playing xbox to get some.

    Actually I think it is going to take A LOT more for people to wake the hell up...But hopefully they will

    Mutt

    ReplyDelete
  77. Mutt - I take a different kind of nightly constitution, but cheers ;-)

    Listening to the new Seal album, pretty good, his best since IV I think.

    ReplyDelete
  78. Thor - I am not drinking beer, I am not a big drinker and the times I do drink, I end up wondering why I did.

    I barely who Seal is, I think he married Heidi Clume or someone like that.

    I seriously own no music, if it ain't on the radio it don't get listened too.

    Mutt

    ReplyDelete