[fusion_builder_container hundred_percent=”no” equal_height_columns=”no” menu_anchor=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” background_color=”” background_image=”” background_position=”center center” background_repeat=”no-repeat” fade=”no” background_parallax=”none” parallax_speed=”0.3″ video_mp4=”” video_webm=”” video_ogv=”” video_url=”” video_aspect_ratio=”16:9″ video_loop=”yes” video_mute=”yes” overlay_color=”” video_preview_image=”” border_size=”” border_color=”” border_style=”solid” padding_top=”” padding_bottom=”” padding_left=”” padding_right=””][fusion_builder_row][fusion_builder_column type=”1_6″ layout=”1_6″ spacing=”” center_content=”no” link=”” target=”_self” min_height=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” hover_type=”none” border_size=”0″ border_color=”” border_style=”solid” border_position=”all” border_radius=”” box_shadow=”no” dimension_box_shadow=”” box_shadow_blur=”0″ box_shadow_spread=”0″ box_shadow_color=”” box_shadow_style=”” padding_top=”” padding_right=”” padding_bottom=”” padding_left=”” margin_top=”” margin_bottom=”” background_type=”single” gradient_start_color=”” gradient_end_color=”” gradient_start_position=”0″ gradient_end_position=”100″ gradient_type=”linear” radial_direction=”center” linear_angle=”180″ background_color=”” background_image=”” background_image_id=”” background_position=”left top” background_repeat=”no-repeat” background_blend_mode=”none” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=”” filter_type=”regular” filter_hue=”0″ filter_saturation=”100″ filter_brightness=”100″ filter_contrast=”100″ filter_invert=”0″ filter_sepia=”0″ filter_opacity=”100″ filter_blur=”0″ filter_hue_hover=”0″ filter_saturation_hover=”100″ filter_brightness_hover=”100″ filter_contrast_hover=”100″ filter_invert_hover=”0″ filter_sepia_hover=”0″ filter_opacity_hover=”100″ filter_blur_hover=”0″ last=”no”][/fusion_builder_column][fusion_builder_column type=”2_3″ layout=”1_1″ background_position=”left top” background_color=”” border_size=”” border_color=”” border_style=”solid” border_position=”all” spacing=”yes” background_image=”” background_repeat=”no-repeat” padding_top=”” padding_right=”” padding_bottom=”” padding_left=”” margin_top=”0px” margin_bottom=”0px” class=”” id=”” animation_type=”” animation_speed=”0.3″ animation_direction=”left” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” center_content=”no” last=”no” min_height=”” hover_type=”none” link=””][fusion_text columns=”” column_min_width=”” column_spacing=”” rule_style=”default” rule_size=”” rule_color=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=”” animation_type=”” animation_direction=”left” animation_speed=”0.3″ animation_offset=””]
U.S. Markets:
The major indexes recorded mixed returns, as investors weighed record downturns in economic data against hope that progress in containing the coronavirus might soon result in a partial reopening of the economy.
The technology-heavy NASDAQ Composite outperformed by a wide margin, as did growth stocks relative to value shares.
The NASDAQ gained 6.1% last week, while the Dow Jones Industrial Average rose 2.2%.
By market cap, the large cap S&P 500 rose 3.0%, but the mid cap S&P 400 and small cap Russell 2000 finished down -1.6% and -1.4%, respectively.
International Markets:
Canada’s TSX rose 1.4%, while the United Kingdom’s FTSE finished down -1.0%.
On Europe’s mainland, France’s CAC 40 ticked down -0.2%, while Germany’s DAX rose 0.6%. In Asia, China’s Shanghai Composite rose 1.5% and Japan’s Nikkei gained 2.0%.
As grouped by Morgan Stanley Capital International, developed markets rose 0.3% while emerging markets gained 2.6%.
Commodities:
Gold finished the week down in the face of the strength in the equities markets, declining -3.1% to $1,698.80 an ounce.
Silver also finished the week down, declining -4.7% to $15.30 per ounce.
Oil managed a partial rebound from last week’s plunge. West Texas Intermediate crude oil rose 10% last week to $25.03 per barrel.
The industrial metal copper, viewed by some analysts as a barometer of global economic health due to its wide variety of uses, gained 3.8% last week – its fourth consecutive week of gains.
U.S. Economic Highlights:
The number of Americans filing for initial unemployment benefits fell by 1.370 million to 5.245 million last week, but the number was still far above the weekly filings seen just over a month ago that were in the low 200,000s. Over the past four weeks, a total of 22.034 million workers have filed for unemployment benefits. That number is consistent with an unemployment rate approaching 20%.
How soon most of the newly jobless Americans get back to work will depend on how quickly the economy reopens. President Trump announced federal guidelines on how states can begin to ease restrictions, though many governors say they are not ready to do so with the number of COVID-19 cases still rising.
Confidence among the nation’s home builders plunged to its lowest level since 2012 as the coronavirus outbreak weighed on construction activity. The index from the National Association of Home Builders (NAHB) fell a staggering 42 points to a reading of just 30 in April – down from 72 the month prior. The decline was the largest monthly change in the index’s 30-year history.
The monthly index is based on a monthly survey in which the NAHB asks builders to rate various measures regarding the real-estate market as “good,” “fair,” or “poor.” Index readings above 50 indicate improving confidence, while a figure below that threshold would signal the opposite. This is the first time since 2014 that the index has dropped below 50.
On a regional basis, builders were the least optimistic in the Northeast, where the index fell 45 points to 19. The Midwest followed with an index of 25. Builders in the South and West were slightly more upbeat, but still had a very poor view of the housing market.
The outbreak of the coronavirus triggered a record -8.7% plunge in March sales at U.S. retailers as large swaths of the economy shut down. The Commerce Department reported sales fell for a second month in what’s likely to be a prolonged period of weakness for an industry that relies heavily on foot traffic and shopping. The reading was even worse than the consensus estimate of -8.0%. Last month’s plunge in sales was more than double the biggest single month decline during the Financial Crisis of 2007-2009.
According to government figures, sales plunged -27% at auto dealers and -17% at gas stations, two of the biggest segments of the retail industry. Excluding those categories, sales fell a smaller -3.1%, but the damage was still unprecedented. Receipts plunged 50% at clothing stores, -26.5% at restaurants and -20% at department stores.
Industrial production plunged -5.4% in March, the most since January 1946 and worse than the consensus of -3.5% as many plants either shut down or greatly reduced their operations amid the COVID-19 pandemic. Durable goods manufacturing fell -9.1%, led by vehicle output which plunged -28%, the most since January 2009. Nondurable manufacturing (goods expected to last less than 3 years) was off by a lesser -3.2%.
Year-over-year industrial production fell -5.5%, its steepest drop since November 2009. The capacity utilization rate declined a record -4.3% to 72.7%. There was more idle capacity across all three industrial production sectors, but the utilization rate was the lowest in the manufacturing sector.
In the city of Brotherly Love, business activity plunged to a record low this month. The Philadelphia Fed reported its Index of General Business Activity declined -43.9 points to -56.6. The reading was much worse than economists’ forecasts of a 30 point decline. Nearly all of the individual indicators were in deep recession territory. New orders, shipments, and hours worked all contracted at record rates.
However, one bright spot was the outlook for growth in the next six months. The index for Future Activity rebounded 7.8 points to 43.0. That suggests manufacturers in the region expect the recession to be short, and growth to return by the end of the year.
It was a similar story in the New York area. The New York Fed reported its Empire State manufacturing index had its second consecutive record decline as the New York-area continued to bear the brunt of the coronavirus pandemic. The Empire State business conditions index collapsed a record -57 points to -78.2 this month. The reading was the lowest on record. Economists had expected a decline of just -35 points. New orders and shipments both declined at a record pace. The only bright spot in the report, similar to the report from Philadelphia, is that firms expect conditions to improve over the next six months.
Chart of the Week:
The stock market’s most favorable six-month period is coming to an end, and unfortunately, there’s not much to show for it.
The six-month pattern, known by both the “Halloween Indicator” and the market mantra to “Sell in May and Go Away”, is based on the historical tendency of the market to produce its highest returns during the predominantly winter months and lower average returns during the summer months.
Further, in summers following losing winter periods, the returns are not just lower but, on average, negative. In presidential election years (like 2020), the effect isn’t very pronounced, yet still slightly negative. The chart below, from Mark Hulbert via Marketwatch.com, illustrates the phenomenon.
Market Indicators:
Counting-up of the number of all our indicators that are ‘Up’ for U.S. Equities, the current tally is that three of four are Positive, representing a multitude of timeframes (two that can be solely days/weeks, or months+ at a time; another, a quarter at a time; and lastly, the {typically} years-long reading, that being the Cyclical Bull or Bear status).
After the March 23rd lows, US equities have rebounded over 20%. Numerous indicators are telling us that the market is due for a rest or retracement.
Volatility has started to rise again – possibly indicating that investors are starting to wonder if Fed inflows can keep the current rebound afloat.
A review of the major S&P 500 sectors shows the market is currently slightly overbought, with Consumer Staples, Telecom, Gold Miners and Healthcare in overbought status.
Meanwhile, the NYSE Bullish Percent Index has reversed back down after bouncing up from the March 23rd lows:
Source: Riverbend Investment Management, StockCharts
The more volatile Nasdaq 100 has also reversed back down from a very overbought level:
Source: Riverbend Investment Management, StockCharts
Week Ahead:
Monday: Earnings: IBM, HAL
Tuesday: Housing UK Claimant Count Change N/A exp, 17.3k prior German ZEW Economic Sentiment -40.0 exp, -49.5 prior U.S. Existing Sales 5.35 mln exp, 5.77 mln prior Earnings: LMT, KO, NFLX
Wednesday: UK CPI y/y +1.5% exp, +1.7% prior Japan Flash Manufacturing PMI N/A exp, 44.8 prior Earnings: T, DAL, KMB
Thursday: Global PMIs France Flash Services PMI 25.1 exp, 27.4 prior German Flash Manufacturing PMI 39.0 exp, 45.4 prior U.S. Flash Manufacturing PMI N/A exp, 48.5 prior U.S. Flash Services PMI N/A exp, 39.8 prior Earnings: INTC
Friday: U.S. Durable Goods Orders m/m -12.0% exp, +1.2% prior
[/fusion_text][fusion_code]PHN0eWxlPgogI19mb3JtXzE3M18geyBmb250LXNpemU6MTRweDsgbGluZS1oZWlnaHQ6MS42OyBmb250LWZhbWlseTphcmlhbCwgaGVsdmV0aWNhLCBzYW5zLXNlcmlmOyBtYXJnaW46MDsgfQogI19mb3JtXzE3M18gKiB7IG91dGxpbmU6MDsgfQogLl9mb3JtX2hpZGUgeyBkaXNwbGF5Om5vbmU7IHZpc2liaWxpdHk6aGlkZGVuOyB9CiAuX2Zvcm1fc2hvdyB7IGRpc3BsYXk6YmxvY2s7IHZpc2liaWxpdHk6dmlzaWJsZTsgfQogI19mb3JtXzE3M18uX2Zvcm0tdG9wIHsgdG9wOjA7IH0KICNfZm9ybV8xNzNfLl9mb3JtLWJvdHRvbSB7IGJvdHRvbTowOyB9CiAjX2Zvcm1fMTczXy5fZm9ybS1sZWZ0IHsgbGVmdDowOyB9CiAjX2Zvcm1fMTczXy5fZm9ybS1yaWdodCB7IHJpZ2h0OjA7IH0KICNfZm9ybV8xNzNfIGlucHV0W3R5cGU9InRleHQiXSwjX2Zvcm1fMTczXyBpbnB1dFt0eXBlPSJkYXRlIl0sI19mb3JtXzE3M18gdGV4dGFyZWEgeyBwYWRkaW5nOjZweDsgaGVpZ2h0OmF1dG87IGJvcmRlcjojOTc5Nzk3IDFweCBzb2xpZDsgYm9yZGVyLXJhZGl1czo0cHg7IGNvbG9yOiMwMDAgIWltcG9ydGFudDsgZm9udC1zaXplOjE0cHg7IC13ZWJraXQtYm94LXNpemluZzpib3JkZXItYm94OyAtbW96LWJ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AgICAgICAgbm9fZXJyb3IgPSBlbGVtLmNoZWNrZWQ7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgbm9fZXJyb3IgPSBmYWxzZTsKICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZWxlbXMubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgaWYgKGVsZW1zW2ldLmNoZWNrZWQpIG5vX2Vycm9yID0gdHJ1ZTsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgaWYgKCFub19lcnJvcikgewogICAgICAgICAgdG9vbHRpcCA9IGNyZWF0ZV90b29sdGlwKGVsZW0sICJQbGVhc2Ugc2VsZWN0IGFuIG9wdGlvbi4iKTsKICAgICAgICB9CiAgICAgIH0gZWxzZSBpZiAoZWxlbS50eXBlID09J2NoZWNrYm94JykgewogICAgICAgIHZhciBlbGVtcyA9IGZvcm1fdG9fc3VibWl0LmVsZW1lbnRzW2VsZW0ubmFtZV0sIGZvdW5kID0gZmFsc2UsIGVyciA9IFtdOwogICAgICAgIG5vX2Vycm9yID0gdHJ1ZTsKICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGVsZW1zLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICBpZiAoZWxlbXNbaV0uZ2V0QXR0cmlidXRlKCdyZXF1aXJlZCcpID09PSBudWxsKSBjb250aW51ZTsKICAgICAgICAgIGlmICghZm91bmQgJiYgZWxlbXNbaV0gIT09IGVsZW0pIHJldHVybiB0cnVlOwogICAgICAgICAgZm91bmQgPSB0cnVlOwogICAgICAgICAgZWxlbXNbaV0uY2xhc3NOYW1lID0gZWxlbXNbaV0uY2xhc3NOYW1lLnJlcGxhY2UoLyA/X2hhc19lcnJvciA/L2csICcnKTsKICAgICAgICAgIGlmICghZWxlbXNbaV0uY2hlY2tlZCkgewogICAgICAgICAgICBub19lcnJvciA9IGZhbHNlOwogICAgICAgICAgICBlbGVtc1tpXS5jbGFzc05hbWUgPSBlbGVtc1tpXS5jbGFzc05hbWUgKyAnIF9oYXNfZXJyb3InOwogICAgICAgICAgICBlcnIucHVzaCgiQ2hlY2tpbmcgJXMgaXMgcmVxdWlyZWQiLnJlcGxhY2UoIiVzIiwgZWxlbXNbaV0udmFsdWUpKTsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgaWYgKCFub19lcnJvcikgewogICAgICAgICAgdG9vbHRpcCA9IGNyZWF0ZV90b29sdGlwKGVsZW0sIGVyci5qb2luKCc8YnIvPicpKTsKICAgICAgICB9CiAgICAgIH0gZWxzZSBpZiAoZWxlbS50YWdOYW1lID09ICdTRUxFQ1QnKSB7CiAgICAgICAgdmFyIHNlbGVjdGVkID0gdHJ1ZTsKICAgICAgICBpZiAoZWxlbS5tdWx0aXBsZSkgewogICAgICAgICAgc2VsZWN0ZWQgPSBmYWxzZTsKICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZWxlbS5vcHRpb25zLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIGlmIChlbGVtLm9wdGlvbnNbaV0uc2VsZWN0ZWQpIHsKICAgICAgICAgICAgICBzZWxlY3RlZCA9IHRydWU7CiAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9IGVsc2UgewogICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBlbGVtLm9wdGlvbnMubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgaWYgKGVsZW0ub3B0aW9uc1tpXS5zZWxlY3RlZCAmJiAhZWxlbS5vcHRpb25zW2ldLnZhbHVlKSB7CiAgICAgICAgICAgICAgc2VsZWN0ZWQgPSBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpZiAoIXNlbGVjdGVkKSB7CiAgICAgICAgICBlbGVtLmNsYXNzTmFtZSA9IGVsZW0uY2xhc3NOYW1lICsgJyBfaGFzX2Vycm9yJzsKICAgICAgICAgIG5vX2Vycm9y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LCB0cnVlKTsKICAgICAgICAgICAgfSk7CiAgICAgICAgICB9IGVsc2UgaWYgKGlucHV0LnR5cGUgPT0gJ3JhZGlvJyB8fCBpbnB1dC50eXBlID09ICdjaGVja2JveCcpIHsKICAgICAgICAgICAgKGZ1bmN0aW9uKGVsKSB7CiAgICAgICAgICAgICAgdmFyIHJhZGlvcyA9IGZvcm1fdG9fc3VibWl0LmVsZW1lbnRzW2VsLm5hbWVdOwogICAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgcmFkaW9zLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgICAgICBhZGRFdmVudChyYWRpb3NbaV0sICdjbGljaycsIGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgICAgICB2YWxpZGF0ZV9maWVsZChlbCwgdHJ1ZSk7CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pKGlucHV0KTsKICAgICAgICAgIH0gZWxzZSBpZiAoaW5wdXQudGFnTmFtZSA9PSAnU0VMRUNUJykgewogICAgICAgICAgICBhZGRFdmVudChpbnB1dCwgJ2NoYW5nZScsIGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgIHZhbGlkYXRlX2ZpZWxkKHRoaXMsIHRydWUpOwogICAgICAgICAgICB9KTsKICAgICAgICAgIH0gZWxzZSBpZiAoaW5wdXQudHlwZSA9PSAndGV4dGFyZWEnKXsKICAgICAgICAgICAgYWRkRXZlbnQoaW5wdXQsICdpbnB1dCcsIGZ1bmN0aW9uKCkgewogICAgICAgICAgICAgIHZhbGlkYXRlX2ZpZWxkKHRoaXMsIHRydWUpOwogICAgICAgICAgICB9KTsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgIH0KICAgIHJlbW92ZV90b29sdGlwcygpOwogICAgZm9yICh2YXIgaSA9IDAsIGxlbiA9IGFsbElucHV0cy5sZW5ndGg7IGkgPCBsZW47IGkrKykgewogICAgICB2YXIgZWxlbSA9IGFsbEluc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aWYgKHZhbGlkYXRlX2Zvcm0oKSkgewogICAgICAvLyB1c2UgdGhpcyB0cmljayB0byBnZXQgdGhlIHN1Ym1pdCBidXR0b24gJiBkaXNhYmxlIGl0IHVzaW5nIHBsYWluIGphdmFzY3JpcHQKICAgICAgZG9jdW1lbnQucXVlcnlTZWxlY3RvcignI19mb3JtXzE3M19zdWJtaXQnKS5kaXNhYmxlZCA9IHRydWU7CiAgICAgICAgICAgIHZhciBzZXJpYWxpemVkID0gX2Zvcm1fc2VyaWFsaXplKGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdfZm9ybV8xNzNfJykpOwogICAgICB2YXIgZXJyID0gZm9ybV90b19zdWJtaXQucXVlcnlTZWxlY3RvcignLl9mb3JtX2Vycm9yJyk7CiAgICAgIGVyciA/IGVyci5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKGVycikgOiBmYWxzZTsKICAgICAgX2xvYWRfc2NyaXB0KCdodHRwczovL3JpdmVyYmVuZGludmVzdG1lbnRtYW5hZ2VtZW50LmFjdGl2ZWhvc3RlZC5jb20vcHJvYy5waHA/JyArIHNlcmlhbGl6ZWQgKyAnJmpzb25wPXRydWUnKTsKICAgIH0KICAgIHJldHVybiBmYWxzZTsKICB9OwogIGFkZEV2ZW50KGZvcm1fdG9fc3VibWl0LCAnc3VibWl0JywgZm9ybV9zdWJtaXQpOwp9KSgpOwoKPC9zY3JpcHQ+[/fusion_code][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container][fusion_builder_container hundred_percent=”no” hundred_percent_height=”no” hundred_percent_height_scroll=”no” hundred_percent_height_center_content=”yes” equal_height_columns=”no” menu_anchor=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” status=”published” publish_date=”” class=”” id=”” border_size=”” border_color=”” border_style=”solid” margin_top=”” margin_bottom=”” padding_top=”” padding_right=”” padding_bottom=”” padding_left=”” gradient_start_color=”” gradient_end_color=”” gradient_start_position=”0″ gradient_end_position=”100″ gradient_type=”linear” radial_direction=”center” linear_angle=”180″ background_color=”” background_image=”” background_position=”center center” background_repeat=”no-repeat” fade=”no” background_parallax=”none” enable_mobile=”no” parallax_speed=”0.3″ background_blend_mode=”none” video_mp4=”” video_webm=”” video_ogv=”” video_url=”” video_aspect_ratio=”16:9″ video_loop=”yes” video_mute=”yes” video_preview_image=”” filter_hue=”0″ filter_saturation=”100″ filter_brightness=”100″ filter_contrast=”100″ filter_invert=”0″ filter_sepia=”0″ filter_opacity=”100″ filter_blur=”0″ filter_hue_hover=”0″ filter_saturation_hover=”100″ filter_brightness_hover=”100″ filter_contrast_hover=”100″ filter_invert_hover=”0″ filter_sepia_hover=”0″ filter_opacity_hover=”100″ filter_blur_hover=”0″][fusion_builder_row][/fusion_builder_row][/fusion_builder_container]