E-Ratio

Image

 

Edge Ratio or E-Ratio measures how much a trade goes in your favor vs. how much a trade goes against you. The x-axis is the number of bars since the trading signal. A higher y-value signifies more “edge” at that step in time.

BuildAlpha: Measurements are normalized for volatility; this allows us to use e-ratio across all markets and regimes. Once normalized for volatility, 1 signifies that we have equal amounts of favorable movement compared to adverse movement.

In other words, the y-axis is an expression of how many units of volatility more or against you your trade gets. A measure of 1.2 would indicate .2 units more of favorable volatility and a measure of 0.8 would indicate .2 units more of adverse movement.

Build Alpha: The blue line is for the selected strategy’s signal and the red line is for a “random” strategy for the same market. The red line is to serve as a baseline to beat. Ideally, you’ll want to see a blue line above 1 and above the random line.

You may find many “good” strategies, but they may have an E-Ratio less than the red baseline or less than one. This would make us less confident that our signal will withstand the test of time.

Additionally, if E-Ratio falls off a cliff at bar 6… then it probably does not make sense to hold for 15 bars!

Another tool to make sure Build Alpha + Trader = Success.

How to calculate:

  1. Record Maximum Adverse Excursion and Maximum Favorable Excursion at each time step since signal.
  2. Normalize MAE and MFE for volatility. To compare across markets we need a common denominator. Let’s use ATR or a unit of volatility.
  3. Average all MFE and MAE values. Now you should have average MFE and average MAE at 1 bar since signal. Average MFE and average MAE at 2 bars since signal…
  4. Divide Average MFE by Average MAE at each time step.

Originally Posted: https://www.buildalpha.com/e-ratio/

Features of Good Stock Market Investing Tools

Image

Investment is putting money into some plan which an investor believes will generate more money or a nice return on his/her investment. There are different investment instruments also known as financing instruments used for getting loan by pledging them for e.g. share certificate or a promissory note. Various tools which helps you to achieve your financial goals like investing in the equity market or in different bank products are termed as investing tools.

There are different types of trading apps and tools that are available online which helps the investors in getting good result in the market. One such tool is Build Alpha which is helping the industry expert as well as the people who are new to the idea of investing. Build Alpha allows the investor to search for investing strategies across any asset class, analyze risk and reward historically and make estimates of what to expect going forward with advanced (but easy to use) statistical methods.

Alphabuild

What to Look for in a Trading Software?

There are many big and small things that you need to look for in trading software before buying it. Few of the essential features you need to look for when you decide as to which stock analysis tools you want to use. BuildAlpha has all the under mentioned qualities you need to get in your trading software to achieve success in life.

Accurate Test Results

The most essential feature that a trader and investor should look for in software is the accurate analysis of investment and trading strategies. This enables the investor to make the best possible decisions on the most reliable data before risking any hard-earned money in the live markets.

Customizable tools

Another is the need for software which you can customize according to your need. Every trader is different and therefore have different needs and trading patterns. As trading plans vary so drastically, it’s probable to interview different traders and get completely contradictory answers when examined what makes a good research tool. So here is where Build Alpha comes into the scene and help traders who operate on all time horizons, asset classes and markets across the world.

An easy format of the tool

Traders and investors can be most productive if they can easily use the tool. Build Alpha has an intuitive design and layout that offers the most productivity to the investor. The best research tool is worthless if it’s too difficult to work and use. Aim for maximum productivity to ideally achieve maximum returns!

Originally Posted: http://buildalpha.org/features-good-stock-market-investing-tools/

Wall Street Cliche Or Trading Edge?

Image

BuildAlpha: What is Turnaround Tuesday? Is it a Wall Street cliché, media company selling headline, or verifiable trading edge? Maybe all of the above, depending on its usage.

But it has also been a simple trading edge over at least the past 15 plus years or so. Below you will see how the equity indexes perform on Tuesdays.

Turnaround Tuesday

Build Alpha: The idea is that the market tends to reverse a Monday selloff or down day with a strong rally on Tuesday hence the name “Turnaround Tuesday”. If this is the case then we can test this idea and add a simple edge to our arsenal.

Tranding Edge

First, let’s define our “Turnaround”. If Monday’s Close is below Monday’s open then Tuesday should – based on our theory – show positive performance across the stock indexes. On the other hand, Tuesdays following a neutral or positive Monday (close > open) should fare only about randomly or without a strong trading edge.

BuildAlpha: In the charts below, you can see equity curves for Tuesday trading across the major stock indexes. The first chart follows an up Monday, while the second chart follows a down Monday – or our “Turnaround Tuesday” performance. The blue line represents the S&P 500 futures since 2002.

Originally Posted: https://www.seeitmarket.com/turnaround-tuesday-wall-street-cliche-media-fiction-17013/

Trading Trends with Build Alpha

Image

Trading is basically buying and selling of things to capture a change in price. There are many types of trading activities which are there in the market. Due to the development in the technology, there are many softwares and tools made for the convenience of different trading activities. Among all trading activities, trading in stock market requires the utmost help. For this purpose, Build Alpha helps the trader the most. It is one of the leading softwares in the trading market which has done wonders with its expert skills.

With the changing trend of the market every now and then, the human expertise and knowledge is not efficient to analyze all the trends keeping in mind all the factors that affect the trend. This is how the human expert’s evaluation turns vague in front of the software analysis.

Trading software helps in trading and analyzes the movement of the various stocks, currencies and commodities worldwide. Many brokerage houses provide their clients with trading software to buy and sell different financial products like equities, commodities etc. on their own. Many brokerage houses are now itself indulging in the expert assistance of BuildAlpha tool.

This tool does not only provide expert assistance to the ones who have knowledge about the market, but it has proved to be very useful for the ones who are starting from scratch. It has proven to be the best tool for the one who have very little or no skills about trading in the stock market. It gives assistance from starting, if you are someone who is at the intermediate level in the trading world, the software guides you through each step of strategy development.

buildalpha Software

Build Alpha: Trading software can be easily downloaded on your laptop or desktop. Some of the important features of the trading software are discovery of edge, technical and fundamental analysis of the various stocks, commodities, foreign exchange and even cryptocurrencies. Money spent is an investment made on the software and it would be worth every penny.

It has better analysis skills and capabilities than many can do on their own and requires no programming. So if you are entering the stock market and want to invest your funds get yourself a proper tool to give yourself the best chance to succeed. Without guidance operating in the market is never a good idea. There are various patterns you need to know and it will guide you in finding the ones that can help you increase your chances of success.

Originally Posted: http://buildalpha.us/trading-trends-with-build-alpha/

Combining Trading Rules To Smooth Performance

The market is “overbought” or “oversold” are common phrases you will hear across the finance space. However, it is actually extremely rare for these conditions to be true.

Today, we’ll attempt to show how trading rules can provide a better picture of the market while enhancing trading performance.

BuildAlpha: First, let’s simply define overbought as a 14 period RSI of greater or equal to 70.00 and let’s simply define oversold as a 14 period RSI of less than or equal to 30.00.

Below is a chart showing the RSI of the S&P 500’s ETF (NYSEARCA:SPY) with the overbought and oversold levels plotted.

Trading Rules

From January 2002 to May 2017 here are some stats:

  • Days overbought 214 out of 3,878 or only 5.5%
  • Days oversold 60 out of 3,878 or only 1.5%
  • Days in the middle roughly 3,604 out of 3,878 or 92.9%

Of course when these overbought or oversold conditions are true the markets do appear easier to trade as volatility often expands and it seems easier to skim some meat off the bone, if you will. However, many strategy developers and traders focus on these overbought and oversold conditions when in reality it is extremely difficult to be patient 92 to 98+% of the time.

A simple solution is to augment your trading with trading systems that do well in these “common” times or regular conditions. Let’s look at how SPY did during this 92% of the time period the market was not overbought or oversold. The test period covers January 2002 to September 2012 (as we will save Q4 2012 to present day as out of sample data for later testing).

rsi-between

Build Alpha: As you can see that trading in these 92% of the time when the market is neither overbought or oversold is extremely trendless and encompass some serious drawdowns; making life extremely difficult for traders.

Let’s add an 8 period moving average filter and see if we can smooth out performance (performance only based on 100 shares for testing/demonstration purposes).

As you can see the moving average filter makes a significant difference albeit not perfect. That is, trading when prices are below the 8 period moving average produced significantly greater performance than when price was above the 8 period moving average. This is counter-intuitive for sure.

BuildAlpha: The process of continuing to refine and add filter and rules to our trading “system” is part of the strategy development process. It can be long and arduous. To keep this post short and sweet let’s “accept” these two rules (1. RSI between 30 and 70 and 2. Price below 8 SMA) and go ahead and see how this system would have performed on the out of sample data from September 2012 to May 2017.

The strategy holds up quite well and we now have some simple rules to follow/guide our trading in the “doldrums” that occur 92% of the time.

The long and arduous process of refining and adding conditions can be greatly simplified with modern computing power and software. Build Alpha attempts to make this process simple and fast! Build Alpha is trading software designed to create trading strategies from thousands of inputs, filters, and signals for the research-oriented trader and investor – no programming required!

Originally Posted: https://www.seeitmarket.com/combining-trading-rules-to-smooth-performance-16927/

Strategy Validation with Dave Bergstrom

With the toolsets we have available to us today it’s really quite easy to create a trading strategy by just mining market data.

Build Alpha: As we’ve just heard in that opening bit of audio and also from previous podcast guests too, if you try enough combinations you can find something that appears to work purely by chance or by luck.

The challenge however is trying to identify something that could be sustainable.

Something that may persist long enough in the future for us to take advantage of, and hopefully make some money from.

Our guest for this episode, Dave Bergstrom from BuildAlpha, has spent years researching, building, testing, and implementing market making and trading strategies for a high frequency trading firm, CTAs, money managers, individual clients, and even aspiring retail traders.

In this episode Dave is going to share some of his insights into strategy development and validation, including:

  • How adjusting the ratio of in-sample/out-of-sample data can lead to creating different types of strategies
  • Variance testing – what is it and how can it be used in the strategy creation process
  • How E-ratios can be used to determine how an edge decays over time & weed out potentially poor strategies with good backtest results
  • Why volume and volatility are important factors to consider when building trading strategies
  • Loads of other ideas to test and validate the robustness of trading strategies.

Originally Posted: http://bettersystemtrader.com/079-strategy-validation-dave-bergstrom/

5 Lessons From One of the Greatest Traders of All Time

Image

As a quantitative trader, I could not have been more excited for the new book “The Man Who Solved the Markets” by Gregory Zuckerman which details Jim Simons incredible story.

Jim Simons averaged a 66% return over the past 30 years and a 39% return after his 5% management and 44% performance fee (pg 316 of book).

I plowed through the book and had, what I believe, are some major takeaways to share:

1. Edge is important; not the story of why it exists. 

In other words, data mining is ok.

This is something I’ve long defended since the launch of Build Alpha. You do not need a hypothesis or explanation of why a certain investing/trading edge exists if it is statistically relevant or significant.

In my opinion, it is possible we simply cannot comprehend why a pattern or edge exists because it exists in a dimension too complex for our current understanding. Therefore, we should not discard edges that we do not understand.

This is why I (and BuildAlpha) search the market for edges and let the data tell us where the edge is. Remove the human bias, false ‘truths‘ and the need to explain/justify everything with a hypothesis or reason why it is happening. Many of these patterns are ‘overlooked’ because they don’t have an explanation, but have clearly been profitable for Renaissance!

Here are a few quotes to drive home takeaway #1:

“Simons and his researchers didn’t believe in spending much time proposing and testing their own intuitive trade ideas. They let the data point them to the anomalies signaling opportunity. They also didn’t think it made sense to worry about why these phenomena existed. All that mattered was that they happened frequently enough to include in their updated trading system, and that they could be tested to ensure they weren’t statistical flukes”. (pg 109)

“Simons and his colleagues hadn’t spent too much time wondering why their growing collection of algorithms predicted prices so presciently. They were scientists and mathematicians, not analysts or economists. If certain signals produced results that were statistically significant, that was enough to include them in the trading model” (pg 150).

“I don’t know why the planets orbit the sun. That doesn’t mean I can’t predict them” – Simons (pg 151).

“More than half of the trading signals Simons’s team was discovering were non-intuitive, or those they couldn’t fully understand. Most quant firms ignore signals if they can’t develop a reasonable hypothesis to explain them, but Simons and his colleagues never liked spending too much time searching for the causes of market phenomena. If their signals met various measures of statistical strength, they were comfortable wagering on them.” (pg 204).

“Volume divided by price change three days earlier, yes, we’d include that” – Simons (pg 204)

2. Everyone struggles with discipline and following their system. Even the Greatest of All Time (G.O.A.T)

Discipline is key and the ability to consistently follow your system(s) can be the difference between winning and losing. We all believe discipline becomes easier if you have more reliable edges or have grown your account quite a bit, but Jim Simons would probably argue that is simply not true!

BuildAlphaIn Dec 2018, Simons (worth approx. $23B at the time) called his advisor and wanted to override his systems (pg 308). The systems that have created the most incredible track record in history.

In the “Quant Quake” of 2007, Simons overrode his systems before the eventual rebound. One employee was quoted as saying it cost the firm money (pg 260). Moral of the story.. follow your system and trust your research! Everyone struggles with this, but we must.

Note: Majority of his career Simons was actually the one advocating to NOT override the systems and may be a large part of his success. These were just two small examples.

“Trust the model. We have to let it ride; we can’t panic” – Simons (pg 216)

3. Surround yourself with a great team

This one should be obvious, but no one becomes the G.O.A.T alone. Brady has Belichick, Jordan had Pippen, Kobe had Shaq, Ruth had Gehrig, etc.

A large portion of the book chronicles how Jim sought out help from brilliant individuals, hiring them away from prestigious positions (science, tech and academia) by offering to double their salary. I won’t go over every individual, but a lot of chapters in this book are dedicated to the spectacular individuals that helped create the incredible returns which give Jim Simons the G.O.A.T title.

He recruited great talent to his team. Surround yourself with those that are experts in things you are not or inspire you to push past your limits.

Incorporate different approaches to your own similar to how Simons did. Trading is a lonely business at times.. you don’t need a hedge fund to build your own team.

4. Build strategies using different data.

Sure price and volume are great but the book mentioned other areas of alternative data Renaissance found useful.

Here are some simple ideas the book mentioned:

– sentiment

– correlations and relative moves

– number of times a stock’s ticker appears in major publications (regardless of sentiment)

Additionally, here is a previous See It Market blog I did using Commitment of Traders report to generate a trading signal: https://www.seeitmarket.com/how-to-improve-market-returns-using-alternative-data-17806/

5. Edge doesn’t have to be big.

Renaissance searched for “overlooked” edges and joked about a 50.75% win rate while utilizing the law of large numbers to win in the long-run.

Often times we get caught up searching for the holy grail or the perfect entry/exit for our trading or strategy development. But even with all these PhDs, RenTech was excelling trading a nearly 50% winning system to generate such astronomical returns. Much more can be gained by combining and adding unique smaller edges together than wasting time hunting for the perfect holy grail strategy!

 “We’re right 50.75 percent of the time… but we’re 100 percent right 50.75 percent of the time. You can make billions that way” (pg 272)

Bonus:

Build Alpha: Money isn’t the be all end all. He’s had tremendous tragedy in his personal life. Remember to enjoy LIFE while on the financial quest we are all on! The market isn’t going anywhere.I enjoyed the book and hope you do/did as well.

Originally Posted: https://www.seeitmarket.com/5-lessons-from-one-of-the-greatest-traders-of-all-time-jim-simons/

Tracking Sigma Scores Of Price Changes For Regime Shifts

Measuring price moves is the name of the game.

However, measuring price moves given recent context can add additional benefits to your trading performance.

Build Alpha: At times, the market can get very quiet which can make a 1% price drop feel like a 10% price drop (think summer trading). At other times, a 10% price drop can feel like a 1% price drop (think 2008). This is a driving force in why I often prefer to view price moves in standardized form and expressed as “sigma” moves. A sigma score basically tells you how many standard deviations can fit between the mean and the current price move. To calculate sigma you simply subtract the mean from the underlying value and then divide that difference by the standard deviation.

Sigma = (X – Mean) / Stdev

In our case we will have X = the natural log of the one bar price change or log(close[t] / close[t-1])

The astute reader would question the lookback period used to calculate the mean and standard deviation of X used in our sigma calculation, and that brings us to a very unique indicator I often view.

I personally like to track the rolling window of one month (22 trading days) and one year (252 trading days). I then like to compare the one month sigma score of price changes to the one year sigma score of price changes. This gives an indication of how current volatility compares to more long-term volatility.

Below is a plot of the sigma score calculated on a rolling monthly basis and on a rolling yearly basis. You can see the monthly sigma scores stay “bounded” between -4 and +4 whereas the yearly sigma scores vary a tad more.

tracking-sigma

All of this is great, but how can we use this and why am I telling you about this…

Build AlphaWell when the monthly sigma minus the yearly sigma difference becomes greater than 1.5 we start to identify some key trading periods or moments in the S&P 500. For example, the instances where the difference between the monthly and yearly sigma reach 1.5 or more include the peak in 2007, the bottom in 2008, the flash crash in 2010, the European Debt Crisis of 2011, and the ETF meltdown of 2015.

tracking-sigma-

Yesterday, May 17, was a significant down move but we are not near “significant” moments in history (yet) as the yearly sigma score stays subdued. This is definitely something to keep an eye on if this volatility persists throughout the summer.

Over at Build Alpha, I produce software that automatically creates systematic trading and investing strategies, allows the validation and testing of each strategy, and generates exportable and executable code for each strategy – no programming necessary.

Originally Posted: https://www.seeitmarket.com/tracking-sigma-scores-of-price-changes-for-regime-shifts-trading-16878/

Free Friday 9 – Intermarket Signals

In this week’s Free Friday strategy (#9) I display a strategy built using inter-market signals. Inter-market signals/analysis is the ability to generate trading signals and filters for a primary market based on what another market may be doing.

For example, you may only want to buy the stock market when gold is trading lower or when bonds are below their 200 simple moving average.

Build Alpha now let’s you test these exact sort of scenarios and build strategies taking into account up to 3 markets (plus Vix). This specific strategy was built for SPY (S&P500 ETF) but takes into account Gold (GLD ETF) and holds for a maximum of 2 days.

There are no other exit rules or sophisticated risk management; all trades assume only a 100 share position for testing purposes.

FreeFriday9

The entry:

1. $SPY’s 2-period RSI <= 90
2. Gold’s 50 period simple moving average is greater than Gold’s 200 period simple moving average
3. Gold closed below both its 10 period simple moving average and its 50 period simple moving average

The exit:
Exit after holding for 2 days

FreeFriday9_Stats

FreeFriday9_Monte

Originally Posted: https://www.buildalpha.com/free-friday-9-intermarket-signals/