Tag: SPY

Can We Use Mixture Models to Predict Market Bottoms? (Part 3)
PythonQuant

Can We Use Mixture Models to Predict Market Bottoms? (Part 3)

Post Outline * Recap * Webinar Hypothesis * Anaylsis/Conclusions * Jupyter (IPython) Notebook * Github Links and Resources Recap Thus far in the series we've explored the idea of using Gaussian mixture models (GMM) to predict outlier returns. Specifically, we were measuring two things: 1. The accuracy of the strategy implementation in predicting return distributions. 2. The return pattern after an outlier event. During the exploratory phase of this project there were some interestin

READ MORE
Can We Use Mixture Models to Predict Market Bottoms? (Part 2)
PythonResearch

Can We Use Mixture Models to Predict Market Bottoms? (Part 2)

Post Outline * Recap * Model Update * Model Testing * Model Results * Conclusions * Code Recap In the previous post I gave a basic "proof" of concept, where we designed a trading strategy using Sklearn's implementation of Gaussian mixture models. The strategy attempts to predict an asset's return distribution such that returns that fall outside the predicted distribution are considered outliers and likely to mean revert. It showed some promise but had many areas in need of improvement.

READ MORE
Exploring the Relationship Between SPY and TLT
PythonQuant

Exploring the Relationship Between SPY and TLT

In this post I examine the relationship between the SPY and TLT ETFs. This can be considered Part 2.5 of my series exploring the 2-Asset Leveraged ETF portfolio of UPRO and TMF. Thus far I've posted results of the strategy using two implementations: "Inverse Risk-Parity" and "Risk-Parity". I've also covered some key concepts behind investing in leveraged ETFs including convexity, and beta-slippage/decay. Now we can explore the strengths and weaknesses of the strategy. The strategy works because

READ MORE
Equity AnalysisPython

Could SPY ETF Component Participation Have Alerted Us to Sell (Hedge) Prior to the Recent Market Downturn?

This is the Python Code version of a guest post presented here on RectitudeMarket.com. If you would like to read the analysis without the Python code please click the link above. To market pundits and casual observers the recent correction in equity markets appeared as a surprise. Overall headline economic data was positive at best and mixed at worst. Domestically, capital markets had been looking ‘ok’ while most of the major volatility was taking place abroad in emerging markets, and commodity

READ MORE
How to get Free Intraday Stock Data with Python and BarCharts OnDemand API
PythonQuant

How to get Free Intraday Stock Data with Python and BarCharts OnDemand API

To this day the most popular article I have ever written on this blog was "How to get Free Intraday Stock Data with Netfonds". Unfortunately the Netfonds API has really declined in terms of usability, with too many popular stocks missing, and irregular trade and price quotes. Simply put, as the API went down, so did the code. However, all hope is not lost. The wonderful people at BarChart.com have created a well documented, easily accessible API for intraday stock data and even near real-time q

READ MORE
PythonResearch

Get Free Financial Data w/ Python (State street ETF Holdings - SPY)

One issue I frequently encounter during my research is the need to compare an individual stock, or collection of stocks vs its ETF benchmark. To do this I need accurate ETF holdings data. Generally this information is located on the ETF provider's website. However, this information is often inconvenient to access. Most websites including the ETF provider will do something like the following, where they only show the top 10 holdings, when what we really need is accessible only by clicking the hi

READ MORE
Equity AnalysisResearch

How I use Implied Cost of Capital (ICC) as a market valuation tool

What is Implied Cost of Capital? I love the intuition behind the model although I don't use it as proxy for expected returns. I use it as a relative value measure to identify analyst/institutional sentiment between different market sectors at a point in time. The actual calculation of the measure can be somewhat complex and involved. The below equation is the common form of the ICC model. As an active trader my primary concern is practical application and implementation so I simplified an

READ MORE
EducationResearch

What I'm Watching ( Week of 12.29.14 )

This week it's simple. I'm watching/waiting for volume to reenter the market and confirm or reject last week's holiday action. Last week ( SPY, DIA, QQQ ) all traded to new 52 week highs with my short target ( EWC ) bouncing significantly in sympathy. ( OIL ) price action appears to have moderated a little in terms of downside volatility; buyers and sellers that remained haven't shown conviction one way or the other yet. There is good reason to be skeptical of last week's broad market moves.

READ MORE
Equity AnalysisResearch

What I'm Watching ( Week of 12-8-14 )

How long does equity optimism last without correction? Over the weekend I examined the market internals and came away mildly bearish at these levels. Extreme optimism and lack of participation among the broad indexes make this a week ripe for profit taking and I've been aggressive with my trailing stops etc during the last 2 trading sessions. When will OIL finally bounce? Have investors finally capitulated? I'm short oil via the Inverse ETF SCO ( wish I had more size ) however this has been a

READ MORE
ResearchEquity Analysis

What I Saw ( Week of 12.1.14 )

1. Do the airline stocks and oil continue to trend strongly in opposite directions? ANSWER: Simply put, mostly yes. The below chart shows the following stocks ( OIL, AAL, ALK, JBLU, UAL ) relative to the broader market ( SPY ) over the last 5 days. Out of the 4 airline stocks chosen here, only ALK underperformed the market. Using OIL as a proxy for oil, investor sentiment is still negative, and some airlines stocks are continuing to benefit from the plunging price. 2. Do we see a continuation

READ MORE
Equity AnalysisResearch

What I'm Watching ( Week of 12.1.2014 )

1. Do the airline stocks and oil continue to trend strongly in opposite directions? 2. Do we see a continuation of last week's sell off in small caps and does that translate to a mini correction? 3. When risk (high beta small caps/high yield) is sold do we see a continued bid in Utilities and Consumer Staples? 4. Keeping an eye out on high yield bonds ( HYG ) and Investment grade corporate bonds ( LQD ) for clues... What are you watching this week?

READ MORE