Sunday, April 16, 2017

Weekend Review 04/17/2017

There is sufficient evidence to indicate that the general market has been correcting through time.  The issue I see moving into the next couple of weeks is will this translate into a correction through price?  Market breadth trends are weak enough that I considered it worth taking the short side through an exploratory position in the SQQQ and TZA.  The charts offer a clear line if I'm wrong and a clear line of confirmation if I'm proven correct.  With earnings season beginning on the 24th I expect one of these sides to resolve.

One of the breadth trends I pay attention to, the number of stocks over a ten day period that have had more break outs to break downs has been mostly flat to slightly negative.  It's much simpler to trade a stock market than a market of stocks, and the later type of market has been the dominant force over the past month.

Buying-Selling

On a higher time frame, one of the breadth metrics I tally has been predominately negative over the past month.  So, not only is buying to selling been hovering in more of a trough zone than peak zone, on a higher time frame this has been even more pronounced.

Secondary Ratio

One time frame up the story is becoming consistent across three time horizons.

Primary Ratio

Earlier this week I posted three charts using a GMMA and 2-Month momentum time frame on the IWM, SPY, and QQQ noting three distinct periods that I assess as prime for aggressive trading, cautious trading, or short oriented trading.  By the close of this week all three indexes have shifted to short oriented trading.

IWM

SPY

QQQ

This week also closed with with expanding lows on a one and three month time frame which is close to flipping across all higher time frames as well.

New Highs : New Lows

This week I also took some notes regarding the IWM, SPY and QQQ.  The critical price zone that I am paying attention to is the recent local low.  A break below this low and I fully expect the market to begin correcting through price.  My expectation would be 5-10% retracement from recent all time highs.  A break out above the recent lower high is where I consider my assessment to be incorrect and opposite the markets potential.

IWM

SPY

QQQ


The current market structure is beginning to shift from ambiguous to clearly negative.  Personally, I find weak markets untrustworthy.  Not only are they difficult to trade, but in addition weak markets have the potential of having the rug pulled out from under them.   Perhaps earnings season will be the catalyst and spark to renew the upside, but any misses will be severely punished and could be potentially infectious.  From my analysis the market is offering an opportunity to the short side with a break of the recent lows as confirmation and perhaps the path of last resistance trade.

Saturday, April 8, 2017

Weekend Review 04/08/2017

This weekend I decided to revisit an old chart template representing a trading idea I had long ago to see if my perspective has changed, there is something I understand now that I didn't gleam then, or if it is wroth considering given what I know now.  One concept I never underestimate in trading is that it takes time to find one's time frame as well as constant reevaluation of previous ideas to see if what was muddy waters is now morning coffee.

The system I devised was a trend trading concept based upon two signals, a Guppy Multiple Moving Average cross over coupled with a two month momentum indicator.  From these two signals I documented three zones: green for aggressive trading, yellow for cautious trading, and red for avoidance or short oriented trading.  The green zone consisted of positive momentum and positive GMMA.  The yellow zone consisted of three potential signals:  a transition from positive to neutral momentum, a GMMA flip while momentum is positive, or a positive GMMA crossover with waning momentum.  The red zone is waning momentum with a negative GMMA crossover.  When momentum itself inverts this suggest severe market weakness.

One of the things that has held me back from implementing this is that I have yet to be able to marry a holding period with a reasonable position size and stop to allow for the weeks to months required for a trend to unfold.  Regardless, it is still an idea that I return to every so often and take notes of for future reference.  Something that stood out for me this weekend, though, was that it actually translates well with breadth metrics, divergence, as well as strength and weakness.

QQQ




First up is strength.  Based upon the analysis criteria, the QQQ is in a zone of caution.  Taken from a positive, the only detriment is waning momentum.  Neither has the GMMA flipped nor momentum turned red.  I see no evidence from this chart that there is much to be overly cautious about.  However...

SPY

The S&P is suggesting a more confusing narrative.  For one, there has been a GMMA flip from positive to negative to positive.  These flips were concurrent while momentum is waning.  Also, the frequency of horizontal bars has is higher over the last two months.

IWM

The IWM is showing the worst of the lot.  Over the past few months momentum has been in a zone I quantify as neutral, there have been multiple GMMA crossovers, and the frequency of horizontal bars is the highest of the three indexes as ETFs.  Given that this index is considered to be the geiger counter of riskiness of market participants, the current consensus a belief of risk off.

So... from a breadth perspective I'm beginning to see the value of this analysis.  There are clean points of quantified reference indicating distinct periods of aggressiveness as well as  long, short, or neutral bias.  There are also clean references when one index is outperforming the others as well as distinctions when it's preferable to rotate into one or the other for long/short or both.  Now to throw it back into the cookie jar and see what I think down the road.

Wednesday, April 5, 2017

Lower Highs with Lower Lows Affirmed

Over the past two weeks I've been paying attention to the IWM as this index was showing continued weakness, particularly in relation to the QQQ.  One of the pivot levels I was focused on was 138.  This area was the first lower high after making an ATH.  While nearly clipped earlier this week it has remained unbroken for 13 trading days.  Additionally of the three trading days this week, two have been range days with higher volume to the downside.

IWM 04/05

The SPY has also been unable to make fresh ATH and continues a pattern not dissimilar to the IWM.  While a recent lower high was clipped today, the fade by end of day brought it back below.

SPY

The QQQ continues to be the strongest of the three, making a fresh ATH today yet reversing to finish near the low of the range on high volume.

QQQ



Also of note is an increase of new lows to highs across three time frames.

New Highs New Lows

The next key pivot level I'll be paying attention to is the 03/27 lows.

Sunday, April 2, 2017

Weekend Review April 02, 2017

What looked like a significant break to the downside on Monday turned into a non-event by close.  The general market averages drifted upward through Friday's close negating much of my expectation of market direction coming into the week.  While I considered a flat market I was leaning more towards further downside,  particularly given the action on 3/21 and not really expecting much upside at all.  I've yet to quantify whether or not there is an edge to what is considered to be an end of quarter window dressing, but when the market proves analysis incorrect arguing against can be costly.

Coming into this week I decided to take the perspective of what would make me want to move heavily long as opposed to what would make me perceive a stagnant to downside market.  The first metric I would like to see increase is the number of stocks over my standard holding period expanding over this time frame.  Currently this is still mostly flat lining.

10 Day Buying/Selling Differential

Seeing expansion over a 6-Week time horizon would be the second.

13% +/- Over 6-Weeks
Lastly seeing this expand to a quarterly time frame.

25% +/- Over a Quarter

With a fresh earning season underway perhaps this will be a catalyst to break the current market gridlock and push breadth metrics northbound en masse.

Sunday, March 26, 2017

Weekend Review 03/26/2017

The general market continues to show signs of waning breadth as the number of caution flags continue to increase.  In the least I expect the market to continue to chop in the near term but would not rule out a 5-10% pullback.

One of the main reasons I suspect a pullback in the near term is that the IWM continues to show the most weakness.  Typically when this happens there are two theories of thought: the IWM will rebound and play catch up, or this weakness will begin to spread into the SPY and QQQ.  Assessing a daily GMMA chart the later is becoming evident as the SPY has begun showing waning momentum on a 2-Month time frame coupled with a GMMA crossover.  The QQQ is now showing waning momentum on the 2-Month time horizon but has yet to crossover.

IWM GMMA Daily

SPY GMMA Daily

QQQ GMMA Daily

On a weekly time frame the GMMA for these three indexes has yet to show the characteristics and pattern typically associated with a much deeper pullback.  Until weakness extends to this period I continue to give the overall market a good bill of health and the benefit of the doubt for continued upside down the road.

IWM GMMA Weekly

SPY GMMA Weekly

QQQ GMMA Weekly

Another reason why I suspect any pullback on the near term horizon would be somewhat shallow is that the percentage of stocks above their 200 period average is above 50.  Were this below and declining I would conclude there to be a high probability of a deeper and/or longer term correction looming, but this is not the currently the case.

T2108

The percentage of stocks above their 40 period moving average has yet to reach a zone where sustainable bounces tend to occur.  Market breadth on this time frame using this metric is not extended far enough to the downside for me to become bullish on any snap back rally at this time being sustainable without evidence of buyers stepping into the market with authority and broad based buying.

T2107


Overall I'm not seeing much evidence to become exceptionally pessimistic about the markets potential to the upside, however I'm seeing enough signs to be cautious and lean towards further downside in the near term.  I find it best during times of conflicted signals or changes of character in the market on my time frame to sequester.  These are the times I find it best to keep an open mind, ignore the noise, and focus on the signals.  Always be prepared for which ever way the wind blows, but make sure it's actually blowing.

Wednesday, March 22, 2017

Scanning For Resiliency

After a significant daily decline I begin my research for the next wave of market leadership using a simple TeleChart scan for anchored momentum.  Currently there are 634 stocks populating this scan.  Should there be a deeper pullback this number will surely prune further leaving a select few candidates to focus on during the next upturn.


Anchored Momentum March 21, 2017


Creating the scan is very straight forward with TeleChart.  Simply create a condition:

PCF Condition


Then create an easy scan to rank by the top 15% plus other desired parameters.

Easy Scan: Anchored Momentum Price > 3

Saturday, March 11, 2017

Weekend Review 03/11/2017

Trading is often discerning between possibility and probability then exploiting one's edge therein.  Over the past couple of weeks I've sat on the sidelines as I concluded there was a high probability of a pullback on my time frame and my edge would be slim to none.  Upon review this weekend I'm beginning to see a window of opportunity open where my edge may come into play based upon a few scenarios I envision unfolding.

The past ten days I've been keeping a keen eye on the percentage of stocks above their respective 20, 40, and 200 day periods.  Currently these numbers have had a persistent down drift and currently sit at 35, 42, and 59 respectively.  Given the cascading nature of these numbers and that on the shorter time frame this number nearly clipped 30, I'd consider a reflexive bounce over the next few trading sessions to be a high probability event.

% Stocks Above 20
% Stocks Above 40
% Stocks Above 200

There continues to be an expansion of new lows on the 1-Month time frame.  Currently 921 stocks have a new 1-Month low which is a lower reading than this time last week, but slightly up from a mid-week reading of 1200.  The shorter YTD and 3-Month time frames confirm that new lows continue to expand as well.  There has been some improvement on higher time frames of 6 and 12-Months.  I'll also be watching these numbers for continued improvement or deterioration.

Highs/Lows

Weakness continues to show up in the contraction of stocks up over the 6 and 12 week time frame coupled with an expansion in the number of stocks down over the same time frame.  The past two times there's been a cross over in these numbers, July and October 2016, the market commenced a recovery.  So, while on the one hand this is to be embraced as there is room to roam to the upside led by a broader basket of stocks, there is also the possibility of weakness begetting weakness with waning momentum breaking with downside acceleration.

13-Week Time Frame
Quarter Time Frame

Over the past ten trading sessions there has been a persistent sell side to the market on my time frame.  Thus far it has been quite orderly and when combined with underlying breadth numbers and current index action, suggest that a rotation through time may be occurring under the surface.  There are definitely a number of stocks correcting through price as well, but again the selling has not been en masse but selective so far.

10-Day Buying/Selling

Unless there is further expansion to the downside through accelerated selling, I'm leaning towards a scenario in which the market has a bounce over the Monday and Tuesday trading sessions during which opportunities to snipe some profits may present themselves.  A smaller position size and  quicker profit mentality is prudent moving forward.  Even if the Thursday/Friday lows hold it is highly likely the market continues it's range bound action until a catalyst removes indecision.  This catalyst can move the market in either direction, however.  On the other hand, if the lows of the past two trading sessions are challenged or a day of accelerated selling occurs I expect a liquidity break and potential cascade from a rush to the exits.

My main plan of action this upcoming week is to have a handful of set ups that I would consider worth taking as if I was ignorant of the general market.  If these don't trigger by Tuesday then I'll continue to wait the current chop out until a firm direction is evident.  Should there be downside selling and/or a break of recent index lows I'd be looking to short the general market through a leveraged ETF.

Friday, March 3, 2017

Weekend Review 03/03/2017

For the past week the percentage of stocks above their 20, 40, and 200 period moving average continued to drift downward as the indexes hover in proximity to their highs.  Beneath the surface a divergence is occurring.  It would not be unreasonable to infer that the higher probability at this time is a pullback through time or price.  While there is a possibility of continued upside, the underlying issue would remain that the move is composed of  limited participation from a dwindling basket of stocks.

% Stocks Above 20 Period Avg

% Stocks Above 40 Period Avg

% Stocks Above 200 Period Avg
Also of note this week is that across multiple time periods the number of stocks making new lows is greater than stocks making new highs.  This suggest that selling has picked up and from a swing trading perspective continued patience is prudent.

New Highs New Lows

This can also be seen visually when looking at $USHL5.

$USHL5

On my time frame the prudent speculation continues to be on the sidelines tracking setups, working on my process, and correcting inefficiencies until I see an improving trading environment.

Tuesday, February 28, 2017

Hunting for 100%

For some reason unbeknownst to me, back testing is considered a viable means of study, but forward testing is dismayed as paper trading and therefor inconsequential if not outright detrimental.  I've come to the conclusion that these are not mutually exclusive strategies for trading improvement if you identify their strengths and weaknesses and how the information gleamed is personally applicable.

Highly successful traders tout the idea of studying past winners.  This is a common them past down from one generation to the next like a family yarn, but one thing I've observed is that there is a lot of effort placed in the fantasy of focusing on the unicorns.  In addition, there is a lack of attention paid to how these traders of yore modified their techniques over time accounting for varying market conditions.  While the winners of the Dot Com era may have net 100% gains over night, the study of them from a swing trading perspective to eke out a 10% gain over a week or two under current market conditions is somewhat misplaced.

While there is nothing wrong with studying past winners, and these studies can lead to future benefits, the issues I've noted that often arise is attributing incorrectly one's time frame, risk tolerance, capital allocation --among other biases-- to the chart in question.  In realizing the star gazer within me I've made focused effort in moving my market studies to real time so that moving forward I can more accurately access the past I've experienced.

For 2017 I've given myself a challenge of isolating stocks making 100% moves in real time.  The goal is not to capture these 100% moves, but one or two slices of 20% gains from them.  I want to isolate what makes these moves tick as they're unfolding to reinforce what the current market conditions favor as well as have data to back up whether or not I was able to capture these moves.  It's one thing to believe you would have been in a rocket stock of the past, but another to find your future self looking successfully backwards knowing you were.  

Through forward testing both in theory and in practice one of my aims is to dispel the charms of past patterns and the delusion of being in 1000% moves in stocks and focus these dreamer periods into actual effort of churning out 20% gains on a more frequent basis.  If I'm consistently aware of stocks that are on their way to making such moves in real time and not capturing a slice then there is a completely different issue to address.  Holding myself accountable for missing these is a priority in 2017.

Hunting 100% Movers in Real Time

Sunday, February 26, 2017

Weekend Review 02/26/2017

One of my personal objectives this year is keeping money.  This seems like a patently obvious notion --and it is-- yet this has been a notable blind spot in my track record which I'm looking to rectify.  In practice this means being more disciplined and selective of the periods I will trade and how heavily I will expose capital.  In order to better quantify these periods I've begun to increase emphasis upon my % Win/Loss and Avg. Winner v. Avg. Loser to determine when my risk of ruin is drifting upwards as well as a risk/reward quadrant that aligns my trading philosophy more closely with my trading objectives.

One thing I've noted as the month of February comes to a close is that my Avg. Winner/Avg. Loser ratio has begun to decrease.  This is coinciding with the overall market reaching a zone that I consider to be extended.  A metric I pay close attention to is the percentage of stocks greater than 70 over multiple time frames, the 20, 40, and 200 day period.  As the number on all three time periods has clipped 70 over the past month of trading my near term expectation is an upcoming pullback across the shorter period with the possibility of carrying over into the higher time periods.  There is already evidence of this occurring over the 40 day period.

% Stocks > 20 Period Moving Average

% Stocks > 40 Period Moving Average
% Stocks > 200 Period Moving Average


Additionally the breadth trends I follow have been waning for some weeks now so the overall market is entering a phase that I consider to be higher risk with lower reward on my time horizon.  At these levels I'm becoming increasingly skeptical and focusing more on capital retention then appreciation.  I'll lean more towards reducing position size and expectation along with avoiding margin.   Continued erosion of these numbers would result in a breadth flip that would increase my cautiousness and begin to look at exposing capital on the short side.

Ratio of Stocks > 25%+ in a Quarter

Stocks > 13% over 6 Weeks

Thursday, February 2, 2017

Test Driven Trading

In software development there is a technique called Test Driven Development which is a process of taking requirements of a project and breaking these requirements down into cases which will be accepted if proven.  These test are often derived from user stories and are typically broken down into unit test which test expectation of a function or method, as well as integration test which test a feature from end to end.

There are two common ways of testing.  One is to write the test the code is expected to pass first, and the other is to write the code then test against it.  What I'm interested in exploring from these concepts is how traders can incorporate this thinking to test their plan, debug inefficiencies, as well as introduce new concepts without breaking the current flow of execution.  How can traders approach their trading from the perspective of a software developer?

The process of an integration test can be used to develop a process from how to approach studying to setting alerts, entry, stop placement, and exit.  Once we have applied the theory of integration test we can apply the concepts of unit test for handling the minutia of a trading plan whether it be entry, placing a stop, or exiting a position.  For this I'm going to look at one specific syntactic approach: Given, When, Then.

Given, When, Then is a syntax that when coupled with Feature and Scenario complete an approach called Behavior Driven Development.  In this approach a small chunk of the trading plan such as an exit can be broken down such as:

Feature: I have an open position
Scenario: Exiting the position
Given: A trade hits my target
When: I take half off
Then: I will move my stop to break even on remainder.

Feature: Half Sized Open Position
Scenario: Exiting the position
Given: A trade hit my target and I moved my stop to break even
When: Price hits 20% from entry
Then: I will exit the remainder position

Now, when reviewing previous trades or searching through previous winners we have a focused set of criteria to pay attention to.  We can better understand how our previous trades would have worked under these guidelines.  Additionally since these test are being applied to the minimal amount of execution on our part, complexity setting in can be more easily identified by noticing when the test are getting too verbose and have too many steps or moving parts.  And, while these test may pass on past data, a complete integration test of this on one's actual trading plan may not work out as expected.

Simply because something worked in hindsight doesn't mean I will be able to execute.  As such, whenever I make a modification to a critical part of my trading plan such as an exit, I drop down in size and take twenty trades.  I don't assume I am going to act in accordance and can not presume potential frustration should this new exit technique not work under current market conditions or be psychologically comfortable to me.  By dropping down in size I reduce the risk to capital and some of the stressors associated with a position size I may not be comfortable.  Being undersized when using these parameters increases my chance of success in abiding by the rules and achieving a large enough sample size to be meaningfully analyzed.

Additionally, thinking in terms of test prevents straying from one's trading plan when making adjustments.  Often when something isn't working traders will jump ship and adopt a different trading style instead of maintaining a consistent philosophy and making necessary adjustments. Through testing each function of the trading plan it become easier to isolate and identify where potential problems are creeping in and handle them accordingly.


Friday, January 20, 2017

Debug Your Charts

Lately I've returned to coding and web development.  One of the things I started to dwell upon is how debugging a program relates to trading.

Bug Free

The above image is a Ruby file.  It runs and is bug free.   In order to get this to perform an actual task the trade offs begin as each character added increases the functionality but also the possibility of introducing a bug.

Perfect Chart
The above image is a stock chart.  It runs and is bug free.  In order to get this to give us actual information the trade offs begin as each added data point and indicator increases the functionality but also the possibility of introducing a bug.

This chart is actually...

Chart of AAPL

How does our perception of this chart change by introducing just one piece of information, the name of the company?  Is the chart suddenly more bullish?  Do you think of the laptop you might be viewing this on or the phone ringing in your pocket?  A simple name on a chart can result in attachment, belief, or bias.  In other words a potential bug.