Acceder
Blog Zona Quant
Blog Zona Quant
Blog Zona Quant

Artículos Recomendados: Lookbacks y Timing luck

Artículos Recomendados: Lookbacks y Timing luck


Esta semana quería recomendar dos artículos de Justin Czyszczewski sobre dos temas que hay que tener muy en cuenta a la hora de estudiar sistemas basados en Momentum.

 Abajo tenéis los enlaces:

 

Es verdad que sobre Timing luck he hablado ya bastante, pero siempre viene bien repasar para afianzar conceptos, ver que es lo que dicen otros autores, entender diferentes puntos de vista, etc,

 

Sobre Timing Luck 


JC empieza con una reflexión que aunque cierta, mucha gente ni se la plantea

“Waiting for the end of the month is a strange idea. If price falls below the moving average mid-month, why wait two weeks to act?”

Si somos capaces de tener señales basadas en datos diarios, ¿por qué no aplicamos la efectividad diaria y esperamos tiempo? Como contrapunto diré que esas dos semanas pueden eliminar señales falsas. Una cartera con diferentes entradas diversificadas y aplicadas en diferentes puntos puede ser una forma de suavizar estos efectos y minimizar el timing luck.

 
“It may be true that end-of-month prices are somehow better reflections of market sentiment than intramonth prices. But a strategy that uses only month-end prices needs to justify this choice.”

Si vamos a utilizar data mensual, vale, pero tienes que saber por qué la usas, qué ventajas tiene y qué desventajas.

“ ¿Son los datos mensuales mejores a los diarios? ¿Son las señales mensuales más potentes que las señales diarias? “

Yo además me planteo: ¿Es un mes, una medida arbitraria? ¿Qué ocurre si los meses los formo del día 15 al día 14 del mes siguiente?

 
“Checking the indicator only once a month effectively turns down the volume, and so reduces the number of signals (both correct and incorrect ones).  But by isolating one out of ~21 possible days each month, the 10-month moving average strategy is introducing more room for luck.”

Efectivamente, mirar el indicador una sola vez, reduce ruido, pero da más opción a que todo sea resultado de suerte. A lo mejor el resto de las señales de esos 21 días son mucho mejores, o mucho peores, o simplemente no lo puedes saber, y coger un solo día solo hace que te la estes jugando a una bala.

El además hace un experimento y se encuentra que después del experimento, incluso variando el tiempo, varían los “mejores” días.

“Although these are all the same strategy, the differences between returns are large enough that some would have been fired while others would be moving up the ranks. And these differences are not due to the trend-following strategy, they are the luck of choosing a “better” day of the month.”

Y la solución que propone, es el famoso ensemble de todos.

“A portfolio that included all 20 trend programs would have gotten the average of all returns, ensuring it does not suffer from bad luck.”

También menciona que sería bueno utilizar  ademñas diferentes tipos de señales, medias, growth, valores macro…

“Anyone looking to capture a particular market factor needs to work hard to eliminate the effects of luck.”

Y sobre todo, intentar dejar menos opción a que la suerte influya en los resultados. Ya tiene un impacto muy grande, no añadamos más.

 

Sobre Lookback Periods 


No es algo exento de “Timing luck”, y está relacionado.

“There is also a lot of timing luck in these signals … A strategy that traded a fund based on this indicator on the first of each month would not have sold until the start of April, with the market 16% lower than the end of February. In other words, this one month difference in sell signals between the last day of the month and first day of the month strategies led to a 16% difference in returns.” “This is not due to a systematic difference between the two, it reflects bad luck.”

Pone el ejemplo de lo que podría haber pasado en la última caída de la crisis. Lo cual refuerza aún mucho más lo importante que es diversificar señales para evitar el timing luck.

Pero el hecho de elegir lookback periods, también es muy dependiente de la suerte.

“Using a monthly moving average indicator has the benefit of reducing trades. The traditional 200-day moving average strategy will make many extra trades, increasing whipsaw losses. But it avoids these period wide losses from bad timing. It is worth checking the daily version. How many trades does it require? Will a longer than 200-day lookback period reduce trades while maintaining good returns? What is the cost in trades and benefit in returns to using a shorter lookback period?”

Hay muchas preguntas para hacerse cuando elegimos un periodo de lookback fijo, ya que en sí mismo, escoger solo un parámetro es riesgo de sobreoptimización.

“Using Kenneth French’s online data for market returns, I will compare the returns of this strategy using shorter to longer periods in 5-day increments: from 10-day, 15-day, 20-day, …all the way out to 500-day. Here are the backtested returns of these different periods. The market’s return (buy-and-hold) is shown in black. “

Resultados según la longitud de la MA
Resultados según la longitud de la MA
 

“Interestingly, the optimal period looks to be around 230-250 days, similar to the traditional 200-day period. This is not true for drawdowns, however”

Al final es un trade-off entre más señales falsas y menores Drawdown con el Retorno. Cuanto más larga la señal, más lenta.

Analiza también el hecho de que las efectividades de las señales, esté relacionado con otras características del mercado, como los tipos de interés. Esto es una idea que me gusta. Podemos usar diferentes sistemas en función de diferentes regímenes de mercado. Explotarlo no es fácil, pero tiene que haber alpha ahí.

“There are various factors which may affect relative performance:  Shorter lookback periods do better if the alternative to the market (interest rates) is higher.”


Otro ejemplo que pone es el Black Monday. Aquí las señales largas lo hicieron mejor. Pero no es una realidad que tenga que repetirse.
 
“Luck: Even checking the market every day does not guarantee that large losses will be avoided. On the Friday before Black Monday (October 19, 1987), all lookback periods up to 195 days were negative, meaning they avoided Black Monday’s 17% loss. All lookback periods from 200 to 500 days suffered this loss. But there was no way to know ahead of time that 195 days was the cutoff, and it will presumably be different in the future.”

Resultados en el periodo de 1987-88
Resultados en el periodo de 1987-88

“The shortest timeframes trade more than 30 times a year, which is likely unsustainably costly. Even periods out to 100 days trades more than once a month on average, and trades for all lookback periods longer than 200 days has been increasing since around the year 2000”


Por otro lado, hay que ver también cuanto tiempo tenemos de operativa, y si compensan sus costes.

Como siempre, para mí la conclusión es que hay que diversificar las señales que utilizamos.

Espero que os gusten los artículos. El autor es realmente bueno. Iré recomendando más artículos suyos a medida que profundice.


Si os ha gustado, subscribíos al blog para que os avise cuando haya más publicaciones y artículos recomendados, y dadle a me gusta para que gane visibilidad y pueda llegar a más gente. Os lo agradezco!

Un abrazo.

Ignacio Villalonga

Zona Quant



 
¿Te ha gustado mi artículo?
Si quieres saber más y estar al día de mis reflexiones, suscríbete a mi blog y sé el primero en recibir las nuevas publicaciones en tu correo electrónico
Accede a Rankia
¡Sé el primero en comentar!
Te puede interesar...
  1. ¿Resultados o Procesos?
  2. Que cada uno encuentre su camino
  3. ¿Correlación Positiva VIX – SP500?
  4. Los Quants, esa gente rara
  5. Benchmarks: ¿Héroe o Villano?
  1. ¿Correlación Positiva VIX – SP500?
  2. Los Quants, esa gente rara
  3. Artículo recomendado: Dividendos? Historia e impacto de los Buybacks
  4. Benchmarks: ¿Héroe o Villano?
  5. Son más rentables las empresas más grandes? Compruébalo tú mismo!