Monday, February 1, 2021

Cartera ETF sectorial europeo Febrero 2021

El pasado viernes actualizamos nuestra Cartera Sectorial europea. La cartera se ha comportado relativamente mejor que el mercado con una rentabilidad del 0.46% en el mes de Enero, frente a la caída del -0.73% del índice Stoxx 600.

Desde el 29/01/2021, la composición de la cartera será una cartera equiponderada de los siguientes ETFs sectoriales:

  • Stoxx Europe 600 Basic Resources
  • Stoxx Europe 600 Financial Services
  • Stoxx Europe 600 Technology
  • Stoxx Europe 600 Telecom

Trading Long Tail days in Eurostoxx 50

 Long tail days in candlesticks are defined as candlesticks with long tail or wick with an smaller body than the tail. It is a bullish/bearish reversal patter also known as Hammer. 


In order to test and validate the use of these formations as a trading strategy, I am going to use the last five years of daily data in the Eurostoxx50. As we will see in the final results, we can  beat the index by using these formations and only staying in the market 30% of the time (we assume we do not get any interest on cash).


Rules:

  • Long_condition: Down long tail is higher than the body and more than double the up tail.
  • Short_condition: Up tail is higher than the body and more than double the down tail.
  • Go long at close if Long_condition is met. Exit at close the following day.
  • Go short at close is Short_condition is met. Exit at close the following day.
 .
I have left the Python code here to show the way it has been tested.


Results:

  • We have 388 trades during this five years period. From those, 225 were long trades and 163 where short trades.
  • The win rate for a long position was 56.44% and the win rate for a short position was 50.9%. That makes an overall win rate for the strategy of 54.12%.
  • Moreover, the average winning points are 27.01 per positive trade and the average losing points per negative trade are 24.19 points.
  • During the 5 year period the index Eurostoxx50 has made 454.91 points, it is a 14.9% return. During the same period the strategy has made 1365 points, is is more than 44% return.
  • To sum up, we have made more than 3x the index return by being in the market only 30% of the time (being in cash the rest of the time with no interest).


However, after all the results we have shown, we must mention that all this can be improved if we define where and when we should trade this “Long tail days”. For example, we can define to trade them only when they appear near a Fibonacci level o major support or resistance levels. Moreover, we can set up some restrictions to trade this formations, such as to impose that the long tail of the day must form a maximum / minimum for the last x days.

On the other hand, as it is important in every trading strategy, money management becomes a very important issue here. Since the long tail can be thought as a near term extreme low/high, this levels can be used as stop-loss in order to set the correct position sizing for the trading strategy.

We have a candidate strategy with an edge, we only need to know how to use that information.


Sunday, January 31, 2021

Rentabilidad Acciones europeas Enero 2021

Finalizado el primer mes 2021, veamos como se han comportado las diferentes carteras de acciones publicadas durante este mes de Enero:



Todas y cada una de las carteras han conseguido batir al índice de referencia durante este primer mes de 2021. La cartera que mejor alfa presenta es la Beta Portfolio, que consigue batir al índice Eurostoxx 50 en más de un 6%.

Para el mes de Febrero mantenemos las carteras sin ningún cambio.

Monday, January 18, 2021

Ratios Cartera Value y Growth

 Continuamos analizando un poco más en detalle la composición de cada una de las carteras de renta variable europea que planteábamos para los diferentes niveles de riesgo que queramos adoptar. Vamos ahora con dos de las carteras cuyo objetivo primordial es la de buscar acciones que están infravaloradas en términos value o que tienen un potencial de crecimiento importante.

Value Portfolio

Se trata de una cartera cuyo objetivo es invertir en acciones con una beta inferior a la media del mercado. Desde inicio en el año 2016, la volatilidad media anual de esta cartera es del 18.71% y la rentabilidad anual es del 12.10%.

La composición actual de la cartera presenta los siguientes parámetros:

  • Dividend Yield = 2.27%
  • Price Earnings Ratio (PER) = 13x
  • Cash Flow Yield = 23%
  • Price Book-Value = 1.4x
  • Current Ratio = 1.45
  • Return on Assets = 12.47%

Se trata de una cartera cuyo objetivo es invertir en acciones con una volatilidad inferior a la media del mercado. Desde inicio en el año 2018, la volatilidad media anual de esta cartera es del 21.59% y la rentabilidad anual es del 16.53%.

La composición actual de la cartera presenta los siguientes parámetros:

  • Dividend Yield = 2%
  • Price Earnings Ratio (PER) = 16x
  • Cash Flow Yield = 8.2%
  • Price Book-Value = 3.6x
  • Current Ratio = 1.83
  • Return on Assets = 12.75%


La correlación que existe entre las rentabilidades diarias de estas carteras es del 75%, en los dos últimos años.

Thursday, January 14, 2021

Ratios Cartera Beta y Volatilidad

 Vamos a analizar un poco más en detalle la composición de cada una de las carteras de renta variable europea que planteábamos para los diferentes niveles de riesgo que queramos adoptar. Empezamos con dos de las carteras cuyo objetivo primordial es el control de la volatilidad y tratar de minimizar los posibles drawdowns.

Beta Portfolio

Se trata de una cartera cuyo objetivo es invertir en acciones con una beta inferior a la media del mercado. Desde inicio en el año 2016, la volatilidad media anual de esta cartera es del 14.16% y la rentabilidad anual es del 14.41%.

La composición actual de la cartera presenta los siguientes parámetros:

  • Dividend Yield = 0.84%
  • Price Earnings Ratio (PER) = 44x
  • Cash Flow Yield = 10.04%
  • Price Book-Value = 2.93x
  • Current Ratio = 1.14
  • Return on Assets = 4.33%

Se trata de una cartera cuyo objetivo es invertir en acciones con una volatilidad inferior a la media del mercado. Desde inicio en el año 2018, la volatilidad media anual de esta cartera es del 15.52% y la rentabilidad anual es del 8.23%.

La composición actual de la cartera presenta los siguientes parámetros:

  • Dividend Yield = 1.70%
  • Price Earnings Ratio (PER) = 27x
  • Cash Flow Yield = 6.54%
  • Price Book-Value = 3.16x
  • Current Ratio = 1.46
  • Return on Assets = 5.72%


La correlación que existe entre las rentabilidades diarias de estas carteras es del 82%. Sin embargo, la correlación que mantienen con las otras carteras más arriesgadas es mucho menos; por ejemplo, la correlación entre la Beta Portfolio y la Value Portfolio es del 60% en los dos últimos años.

Sunday, January 3, 2021

Compra Acciones Europeas para Q1 2020

Año nuevo para nuestas carteras de valores. En los siguientes links podeis ver la evolución de todas y cada una de las estrategias de acciones europeas:

  • Beta Portfolio, que ha conseguido una rentabilidad del 5.25% en este año 2020
  • Value Portfolio, que ha conseguido una rentabilidad del 2.01% en este año 2020

Aqui teneis la lista de acciones para este primer trimestre del año 2021:




Saturday, January 2, 2021

Z-score Trading System on Ibex 35 with Moving Average

Let's going to have a deeper look at the Ibex Strategy we talked about in the previous post back in November last year. Remember the rules:

  • We are going to use the Spanish Index Ibex 35
  • Calculate the z-score for different periods (week, fortnight)
  • we set a Z-target greater or equal than 1, since we know that 68% of every standard normal distribution is between -1 and 1.
  • We are always long or short. Buying means closing short position and open a new long position, and vice versa.
  • Buy at close of the daily bar when z-score crosses downward through the negative Z-target.
  • Sell at close of the daily bar when z-score crosses upward through the positive Z-target.
  • We are long or short one contract each  day.
  • Commissions are not taken into account.

The questions I want to answer here is: Does it work better when going long or short? Does it work better in a bull market or bear market? To answer those questions we are going to calculate some statistics depending on we are trading long or short, or if the Spanish Ibex 35 is above or below the 200 days moving average (in order to determine if we are in a bull or bear market).




As we can see in the above table, there some interesting statistics we can use in order to improve the expected outcome of this strategy in the future:

  • Both periods show better return in bear markets than in bull markets, but this is especially more significant the the Zfortnight strategy with more than double the average return per trade when the index is below the 200 days moving average than when the index is above the 200 days moving average.

  • Moreover, the average of winner trades are more than 80% when going long in a bull market than going short. However, this difference is not as big when the index is below the 200 days moving average.

Therefore, next step could be to study a "meta-strategy" that accommodates the position sizing depending on if the index is above or below the 200 days moving average and whether the signal has been long or short. In other words, there is an option to apply a better money management to improve the odds of the strategy being even more profitable.