Nasdaq Approaching Trend Line

The Nasdaq 100 futures (/NQ) is approaching a downward trendline.  Given recent lower highs, and the bearish environment today, there is a decent probability that this could reverse to send the Nasdaq down.

On this hourly chart, the beginning of the blue trendline begins 12/7.  In its middle is the peak on 12/17, where it quickly tumbled down.

Nasdaq 100 futures approaching trend-line.

Nasdaq 100 futures approaching trend-line.

Note that the yellow line it approached on 12/17 was its July high, a price line it seemed to ignore in November and the beginning of December, but has recently appeared to matter.  I have treated the points when it went above this line as “look-and-fail” rather than an outright breaking of it, which looks especially true when you consider its repeatedly large drop afterwards.

The bottom line is that today looks like a potential short market entry point.  I personally plan to accomplish this by going long volatility via UVXY options.

To provide some perspective, here is the 1 year chart of the /NQ.  You can see the same blue trend-line, and the yellow price line.

Nasdaq 100 Futures (/NQ) 1 year daily cahrt

Nasdaq 100 Futures (/NQ) 1 year daily cahrt

Posted in Investing | Leave a comment

Sector Analysis – December 2015

Not a lot has changed fundamentally since the last sector analysis.  The cyclical flight to safety continues.  It has been hard to discern on the daily charts with the noise created by the interest rate hike via December sector changes.

A few key points outside the sectors to remember.  The Russell has continued to underperform this year.  That alone is a huge sign of a flight to safety, as the Russell is largely small cap growth, whereas the other major indices have more dividend paying recession proof large caps.  Gold has been turning its bottom into a cup, with a lift the past week in the gold miners following last week’s lift in gold.

The first big cyclical shift to safety is typical from risky stocks to less risky recession proof stocks.  Despite the rally this week, we did see a relative weakening of the tech giants.  Apple was down significantly two weeks in a row, and barely up this past week.  Google didn’t do much better.  Netflix was down all three weeks.  Ditto for Priceline.

S&P 500 Sectors - 3 Years - Weekly

S&P 500 Sectors – 3 Years – Weekly

All sectors were up this week, with Consumer Discretionary and Telecom, two “safety” sectors, performing exceptionally well, maintaining their uptrends.  Healthcare, still battered from its highs of the year, has been on a continued uptrend too.  The others that did well appear, more or less, to of recovered some of their recent losses, rather than showing continued uptrends.

Sectors that looked good this week, but are still showing a trend of lower highs on the weekly charts, include Energy, Materials, Industrials, Consumer Discretionary (still hasn’t broken long-term uptrend, yet, though), Financials, and, just beginning to break its uptrend, Information Technology.  Having 6 of the 10 S&P 500 sectors looking bearish on the weekly is consistent with the continued beginning of a bearish market, particularly since they are not the safety sectors.

A quick zoom into the chart, where each bar is still a week, shows the recent trends better.  View the previous chart to see which sector each chart is.

S&P 500 Sectors - Zoomed Weekly bars

S&P 500 Sectors – Zoomed Weekly bars

Posted in Investing | Leave a comment

SEC Proposal Impairs Retails Investor Opportunity

ETFs, for the first time in history, created opportunity for retail investors that has, in many ways, leveled the playing field between them and large institutions.  Individual investors, with a simple purchase, like a stock, can hedge their portfolios to reduce market risk, benefit from opportunities in investment classes such as commodities or sectors, and otherwise choose a lower-cost alternative to traditional funds.

Leveraged funds permit an investor to allocate and risk a smaller portion of their portfolio.  By investing 5% of a portfolio to 3x ETFs, for example, an investor can allocate the other 95%, instead of 85%, towards other investments, creating a diverse approach to help weather the cycles in the market.

Now, the SEC, claiming to be protecting the consumer, threatens to remove this new tool from the retail investor.  As they exist today, many leveraged 2x and 3x ETFs will not be able to operate under the new rules if they are passed when the SEC votes in March.

To be sure, on the surface, the SEC goal looks noble.  By the wording of the proposal, it appears that it is trying to ensure that redemptions are protected in the unusual event their is a rapid withdrawal.   The only problem isn’t what the SEC is claiming to be trying to achieve, but how.

It has chosen to use a big net in a near admission that it does not understand the complexity of the derivatives markets.  The center of its proposal relies on cash accounting and current market value, instead of understanding the ability to build time-based safety into funds using the very tools the SEC is proposing to limit.

For instance, funds using near-term options could have a portion of the cash tied up until expiration of the contracts.  Liquidating at market value in certain volatile circumstances could prematurely decrease the net asset value of the fund.  However, a simple remedy that this SEC proposal prevents is including emergency redemption limits that simply permit these options to expire.  For short-term contract funds, this might impose a 30-60 day dilution limit to ensure that highest market value of the net assets; and, this redemption limitation would only be invoked in an emergency.  The prospectus should, of course, be required to make such scenarios clear, including how NAV is determined when a withdrawal request is made.

Yet, while this market driven solution could create the best-case scenario for investors, permitting them to take the risk of the leveraged fund, with the hope of maximum redemption value in the worst case crisis scenario with the trade-off that they might have to wait for redemptions for a short period of time, the SEC has chosen to limit the options of the fund to prevent this possibility.  In short, it will limit profit and hedging opportunities of retail customers in order to reduce the redemption time period in the case of dilution or rapid withdrawals.

The leaning of the SEC proposal towards cash and market value also precludes certain hedging opportunities the funds could take to protect the fund, hedging which technically increases total nominal exposure relative to cash, despite it being a hedge that protects the fund better than cash.  For instance, a fund might decide to use far out-of-the-money (OTM) option contracts with an underlying that has a negative correlation to the primary underlying to protect the fund from extremes.  Yet, this type of healthy hedging could be prevented due to the method of accounting that the SEC is proposing.  The SEC’s over-simplistic view of cash and current market value does not consider true stress testing scenarios and protection capabilities uniquely available in the derivatives markets.

In an era where an individual investor can use tools to beta-weight their portfolio to see how it will perform when the S&P 500 changes, you’d think the SEC could propose better stress testing than simply limiting notional value relative to cash and equivalents.  Does a gold fund really need to worry about gold becoming worthless overnight?  How does comparing the notional value of its gold exposure to its cash holdings really help?

What does matter with any notional exposure is the degree it can change, and whether a hedge is needed to handle extremes in its range.  If we are worried about the risks of being heavily weighted against the S&P 500, for instance, we can reduce that risk better by investing in something that will likely have a negative correlation to the S&P, and can do that best through leverage.  A high notional exposure to gold and volatility contracts can have a far greater risk reducing benefit for S&P 500 exposure than simply having a lot of underutilized cash available.  Where in the SEC proposal does it provide the opportunity for this type of protective hedging?

The real issue here is that if the derivative based funds use derivatives to diversify and protect their net asset value, they could have less liquidity in the short-term due to the need to permit contracts to either reach a desired market value or expire.  Yet, this is only limited by the length of their stated contracts, typically 30-60 days.  This is further reduced by the degree to which their hedge increases in market value relative to the decrease in market value of their primary investments.  In the case of volatility futures and options, their market value rises in sync with a rapid drop in S&P market value, thus providing much better NAV protection than cash.

Of course, hedging has a cost, notably in good times, when the fund’s primary investment strategy is working.  This cost would have to be considered, and like any, publicized in the prospectus.

The SEC should not pass this new proposed set of rules limiting leveraged funds as it is currently worded.  Rather, in the short-term, it should focus on investor education, improving prospectus reporting, and working with the markets to develop better stress protection using the free markets themselves to provide the solutions.  Then, when the SEC has demonstrated a competence for understanding the derivatives markets it is proposing to regulate, maybe then it can create rules that permit market based solutions instead of basic accounting concepts.  This would protect consumers in good times and bad, permitting them to make profits and hedge their portfolios with robust tools, while also permitting them to obtain the best possible redemption value should a crisis emerge.

Let the SEC know there is a better way that does not require crippling individual investors by commenting here on IC-31933 (S7-24-15), posted December 11th, titled Use of Derivatives by Registered Investment Companies and Business Development Companies.


Note that on 12/27, when I tried to submit a comment, I received this response from their server:

Access Denied

You don’t have permission to access “http://www.sec.gov/cgi-bin/ruling-comments” on this server.

Reference #18.b5a13d42.1451195263.421291e1

Also, this rule is missing when searching regulations.gov for open proposed rules.

Was able to get comment submitted by saving to a TXT file, entering “Comments attached” in the box, then attaching on the next screen.

You can view comments that miraculously made it through here.

Posted in Investing | Leave a comment

Did Junk Bonds Tank The Market?

The news came out yesterday that a Third Avenue fund was liquidating, and putting a halt on redemption, locking up the deposits investors put in the fund, possibly for months.  Being important news, and possibly the only really bad news event to come out yesterday, it is only natural that people attribute the 300 point decline in the Dow to this.

The news didn’t come out until 12:30pm, though.  If you read yesterday’s early morning post, Volatility Spiking Ahead of FOMC, you knew that the market was already in a downward pattern before the market opened, and well before the Third Avenue news hit the streets.

So, how did the volatility do before 12:30?  Just look at this chart, where you see it rapidly climbing all morning.

2015-12-12-VIX-1m

VIX futures. Each tick is a minute. Hours are on the X axis.

While the news certainly gave it a lift, it was on an uptrend prior to that, and continued the same uptrend after that news gave it a spike.

Similarly, the S&P futures show a continued downtrend all morning, with virtually no change in the trajectory between 12 and 1.

2015-12-12-ES-1m

S&P 500 futures (/ES). Each tick is 1 minute. Hours are on X-axis.

The news can present a distorted view of why the market does what it does.  While the failure of junk bonds is a very important indicator of things ahead, understanding that there are larger forces here that trump a single news event is important for understanding the bigger trend the market is on.

What does correlate well with the rise in volatility is a corresponding drop in the price of oil.  While it would be nice for the price of oil if production decreased, the bigger issue here isn’t production, which has been relatively flat this year.  In supply and demand, when supply doesn’t change, but price goes down, what did change?  The only possibility is a drop in demand.  The drop in the price of oil is an indicator of a rapid drop in demand.

2015-12-12-CL-1m

Light Sweet Crude Oil Futures. Each tick is 1 minute. Hours on X-axis.

On top of oil and other industrial commodities being the canary in the mine, their drop is also part of the reason there are other dominos falling, such as junk bonds, as oil and other commodity producers who cannot pay their debts are on the rise.

Posted in Investing | Leave a comment

Volatility Spiking Ahead of FOMC

As the market approaches the historic day next week when the FOMC decides whether to raise interest rates for the first time in nearly a decade, the market is heating up with volatility.  To put the VIX (or /VX for futures) in perspective, I included summer’s low and August’s high.

Screenshot from 2015-12-11 06-16-46

This morning’s rise in volatility is being helped along by a retest of recent lows by the market indices.  You can see the current drop in the Nasdaq 100 futures:

Screenshot from 2015-12-11 06-18-48

If those recent lows hold, look for a nice bounce in morning trading. Otherwise, it could continue to 11/16 lows. In this latter case, it could take days to get there, and perhaps bounce back up before reaching it.

 

 

 

Posted in Investing | Leave a comment

The Weekly Dose – Pre-recession Cyclical Rally?

One of the early signs of a recession is a flight to relative safety by big money. When large fund managers want to continue to be in equities, yet want to be on solid ground in case the market tanks or a recession hits, they move from higher risk small cap growth towards large cap companies that have lots of revenue, cash, dividends and ideally growth.  These days, in addition to consumer staples, this large cap basket includes technology driven companies that are clear leaders in growing markets, such as Amazon AMZN 187,70 -1,29 -0,68%, Facebook Facebook, Inc. 195,13 +3,50 +1,83%, Google Google Inc. 160,89 -1,17 -0,72% and Netflix NFLX 1.133,47 +1,75 +0,15%.

With the Dow Jones Unfortunately, we could not get stock quote INDEXDJX:.DJI this time. just surging 370 points yesterday and Amazon, Google, Netflix, Facebook and other companies hitting new all-time highs this week, how can this be anything but an unstoppable bull market?  Despite the lofty rally, let’s not lose sight that the DJIA just inched yesterday into positive territory for 2015.  This was after 6 years of stellar growth.

DJIA Flat in 2015Historically, consumer staples has been a leading sector when this cyclical flight to safety begins, as it is presumed that even in a recession, consumers need their bread and Pepsi PEP 133,75 +0,20 +0,15%.  Thus, it is no surprise that has been one of the strongest this month, along with a big run up for Telecom, another safe sector.

Sector Charts

S&P 500 Sectors – 1 Month Daily – Dec 5, 2015

The obvious victim is Energy, due to falling oil prices.  The drop in commodities has been a very strong sign of slowing global growth; but, at least with oil, this could be partially explained with an increase in production in recent years.

Of notable optimism has been the Information Technology sector.  But, is this another tech run like 2000?  Or is this the result of large technology companies becoming the new consumer staples?  Can you live without Google and Netflix?  Indeed, they do seem to have found a sweet spot of being technology, growth and consumer staples.  This is one explanation of a decades old company like Amazon having a P/E ratio near 1000, albeit not the only possible reason.

The real evidence this rally is a cyclical shift away from small cap risk rather than an all out bull market, however, is in what didn’t do nearly as well yesterday, or this past month.  Comparing the heavy weight indices — the DJI and Nasdaq, with the mid and small cap filed Russel 2000 and Microcaps IWC 114,34 +3,03 +2,72% reveals the love has not been broadly received.

2015-12-05-TOS_CHARTS-Indices-1mDTo put it in perspective, here is how the tech leaders and indices performed yesterday and for the week:

Symbol Nov 27 Thu Fri All Time High Week 1 Day From High
Nasdaq NDX 4680 4607 4716 4716 -1.56% 2.37% 0.00%
Dow Jones DJI 17798 17478 17848 18133 -1.80% 2.12% -1.57%
S&P 500 SPX 2090 2050 2092 2107 -1.91% 2.05% -0.71%
Russel 2000 RUT 1202 1171 1184 1254 -2.58% 1.11% -5.58%
Micro Caps IWC 76.55 74.86 75.31 81.53 -2.21% 0.60% -7.63%
Netflix NFLX 125.44 126.81 130.93 130.93 1.09% 3.25% 0.00%
Google GOOG 750.26 752.54 766.81 766.81 0.30% 1.90% 0.00%
Amazon AMZN 673.26 666.25 672.64 672.64 -1.04% 0.96% 0.00%

With a combined market cap of nearly 1 trillion dollars, Amazon, Google, Facebook and Netflix took the Nasdaq to a new high this week, as they themselves hit new highs.  As we can see with the Russel 2000, down 5.58% from its high, this is not a broad rally.  Microcaps are down 7.63%, near correction territory.  Traditional growth companies are being left behind.  Combined with the performance of consumer staples, this is looking like a pre-recession cyclical rally.

Posted in Investing | Leave a comment

All S&P 500 Sectors Down For Week

You can see from the last 5 daily ticks on the these charts that all 10 Sectors were down last week.

2015-11-16-Sectors-1mD

All sectors down for week (1 month daily charts)

Up until now, consumers were expected to hold the US economy up.  The lack of upwind in retail threw heavy doubts on that hope.  Some are hopeful that the poor performance in brick-and-mortar retails is largely due to the shift towards the online economy.  Internet retailers such as Ebay and Amazon have certainly performed well this year.

Posted in Investing | Leave a comment

S&P 500 Breaks Two Supports

A couple of days ago, concerned about the reversal pattern on the S&P 500, I drew 2 support lines and a resistance line at the top.  The first support is at 2060.  The 2nd one, because it was a more critical longer-term support going back to March, I displayed its value of 2015.

2015-11-13-TOS_CHARTS_beforeDaily

S&P Supports and Resistance – November 10, 2015

Yesterday morning, we watched the first support become breached in pre-market trading around 9 AM.  You can see how clearly the S&P recognizes this line, as it bounces back against it as its new resistance.  It then pops it, giving hope to the bulls, only to come back down one last time before beginning its trail towards the next more significant support.

2015-11-13-TOS_CHARTS_2b

S&P 500 Supports Broken

You can see that today, the 2015 support was repeatedly tested during the last 2 hours of regular trading hours (RTH), each time with a lower high.  This is a clear sign the support is about to be breached.  Then, the bell rang with the bulls able to take a sigh of relief that they protected the flag.

The bulls were too quick to celebrate the end of the week, though.  Just as the first support was violated in yesterday’s pre-market trading, the bears took advantage of the extra hour of futures trading. The breach of the critical support occurred in the /ESZ5 at 4:50 PM.

2015-11-13-TOS_CHARTS_1min-2nd-breach

Bears Capture The Flag

While the bulls ran to the pub at 4pm to celebrate protecting the 2nd support and begin the weekend, the bears hung around to win this week’s round and position the S&P for a very bearish looking time.

 

 

 

Posted in Investing | Leave a comment

Contrasting Selling Naked Puts to Limit Orders

To contrast selling a put option with placing a limit order, let’s say you want to buy 100 shares of IBM 245,55 +5,89 +2,46% for $140 ($14,000), which is now trading at 140.08.  You could place a limit order for 140 and hope it is executed, or sell 1 put contract.  Let’s go through the selling a put.

Currently, the Nov 6th (weekly) 140 puts are bid/ask 1.93/2.02, or 1.98 mid.  You could sell 1 naked put instead of placing a limit order.  By selling the contract at $1.98, you’ll receive $198 no matter what happens.  If your commission cost is $1.50/contract, that’s $196.50 you immediately receive!

Now, the contract may or may not be exercised.  It is the buyer of the contract who chooses whether or not to exercise, and in this case, they have until Nov 6th to decide.  In American style contracts, the buyer can exercise at any time, whereas in Europe, they can only exercise on the day of expiration.

In this case time value at time you sold the contract, is $1.98 – ($140.08 – $140), or $1.90.  For this reason, the buyer doesn’t have a lot of incentive to exercise, because they could be better off selling the option for $1.98 and then buying the stock.  So, the bigger “risk” is that you won’t get the IBM stock you might of had if you placed the limit order.

If you REALLY want the IBM stock bad, you can choose an earlier expiration.  Stock options expire on a Friday, every Friday if they have weeklies, which IBM has, or just the 3rd Friday of the month if the stock only has monthlies.  Because today (10/30/2015) is Friday, and the market ended today, the next option expiration is 7 days away.  But, if you did this on a Thursday, you’d have a much higher chance of being exercised if IBM is at or under $140, making it more like a limit order.  But, because of time decay, you would receive less premium on an option that expires in a day.

Conversely, if you wanted and was willing to buy IBM at $140, but valued the premium more and would be happy to get a nice premium even if you didn’t get the stock anytime soon, you could just pick a later expiration date.  You could, for instance, collect $293.50 selling a Nov 20th 140 put.

You could even collect $2050 selling a Jan 2018 IBM 140 put.

What happens if IBM never comes down to $140?  Well, if it expires, you keep the premium.  Your buying power is now freed up to buy another put, or invest it elsewhere.  But, what if you sold the Jan 2018 put, and 6 months later IBM is at $145, and you want to buy it?  First, presuming volatility hasn’t changed, your time decay will have lowered the value of the put.  The increase in IBM’s price will have also lowered the value.  So, with 6 months of decay and a higher IBM stock price, you might be able to buy it back for $1000 (guestimate), keeping a $1050 profit.

What if IBM drops below $140?  Well, then the put increases in value (offset by time decay).  So, it is possible that the option could cost more to buy than what you sold it as.  However, again presuming volatility hasn’t changed, it cannot be worse than if your limit order executed at $140, you held the stock, and it’s price dropped.  In other words, if IBM is now $135, your stock value would have dropped by $500.  But, your put would of increased by less than $500 due to time value remaining.

I’m leaving volatility out of this because it can impact the price day-to-day, and can work in either direction.  Simply put, increasing volatility puts upward pressure on option prices, and lower volatility decreases it.  That is why you ideally try to sell options when their volatility is high, and buy them when their volatility is low.

But, when you are talking about a lot of time decay (6 months in this example), or a big change in the underlying stock price (-$5 from $140 in this example), volatility may not be the largest factor in the option price change.

delta = changes in underlying stock’s value’s impact on option price
theta = time value, which decreases the option’s value as it approaches expiration
vega = volatility, which increases the option price when it increases, and decreases the option price when it decreases

The biggest mistakes BUYERS of options often make is:

1. They don’t understand volatility’s impact on price, and buy an option when it is high.  Volatility can drop quickly, leaving them baffled on how an option they just purchased dropped in price so fast.

 

2.  They quickly figure out that time value is not on their side.  Time value always rewards the seller of options, not the buyers.

A buyer of an option that wants to make a profit is hoping that the detla (change in stock price) moves enough in the direction they want it to move and/or volatility increases (vega) enough to offset the inevitable time decay (theta).

Conversely, a seller of an option hopes that that the underlying either does not change much or changes the other direction the buyer wants it to move, while theta does its job.  A seller lowers risk by selling when volatility is high, as well.

In terms of delta, the seller has the upper hand because whereas the buyer primarily needs the stock to move enough in one direction to break even before expiration, the buyer will not only win if the stock moves in the other direction, the seller also wins if it doesn’t move at all, or, even if it moves in the direction the buyer wants, but just not “too much”.  “Too much” is the difference in the price at the underlying when they sold the option, and its stock price, known as how far out-of-the-money it is when you sell it.

In other words, when you sell XBI 59 puts while XBI is $65, you will make maximum profit if XBI is at least 59 when the option expires.  This option is $6 out-of-the-money at time of sale.  That means if XBI goes up, you win.  If it stays the same, you win.  If it goes down $6, you still won.  If the options cost $1, the break even is actually $58.  So, the buyer only wins if it goes below $58.  You only lose if it goes below $58.  Considering it is at $65 at the time the option is sold, clearly, the seller always has the greater range in order to win.

The max loss if you place a limit order and buy the stock at $140 is $14,000 for 100 shares.  The max loss if you collect $198 selling a put, and it is exercised (you have to then buy it at $140) is $14,000 – $198, or $13,802.  So, the risk is higher if you buy the stock outright than it is if you just sell the put, due to the premium you collect.

The only downside to selling a put is you limit your profit.  If IBM soars quickly to $150, the stock holder will benefit, but the seller of the put, while being happy because the put will safely drop in value and risk of being exercised, will not gain the value of IBM soaring.  But, the option seller, in this scenario, can quickly close the position at a profit if expiration isn’t near, and then reinvest the capital in another investment.  If you hold your position an average of 4 weeks, then that’s 13 times you’ll re-invest it in a year.

Is a naked put too risky? Consider a vertical spread, instead.  With this,  in addition to selling a put, you’d buy a further out-of-the-money put as protection to limit your loss.  Note that this will reduce the credit you’ll receive by the cost of the further OOTM put.  But, buying a put with a strike of 135 along with selling the 140 will cap your max loss to $5 per share, or $500 for 1 contract.  This can also potentially limit how much buying power your broker reduces from the trade, freeing up more capital to invest.

Note that with indexes and index ETFs, unlike individual companies, indexes never go to $0, although there is some theoretical risk that an ETF can become insolvent.

 

Posted in Investing | Tagged , , , , | Leave a comment

How can Javascript access hardware on Android?

Android1While the Apache Cordova project is providing a cross-platform and plug-in solution to deploying web applications as native mobile apps on Android, iPhones and Windows while giving you access to the hardware such as the camera, GPS and storage via its API, it is only able to provide this capability because of native capabilities on the devices.  How is this possible when normally web applications cannot access native hardware APIs?
 
Android allows you to create or embed web applications inside a native app via a Java class in its SDK called WebView, using its WebKit rendering engine to provide a browser inside your native app.  In this class is a powerful method called
 

public void addJavascriptInterface (Object object, String name)

that let’s you expose your Java class as a Javascript object in the browser.  This is similar, in many ways, to how you can expose Java to an interpretive language running in Java, such as Jython, where Python can run inside Java, and you can expose your Java application to that Python.  This provides the ability to expose virtually any native Android functionality to your embedded web applications, including capabilities you create in Java.
Posted in Android, Mobile | Tagged , , , , | Leave a comment