Showing posts with label trading strategies. Show all posts
Showing posts with label trading strategies. Show all posts

Sunday, 19 August 2018

SP500 vs Gold, using their correlation to make a trading strategy (Part 1)


This post is part of a new series in which I will show how to figure out if we can build a strategy using some assets’ correlation. Let me introduce the assets:


S&P500

Mini S&P500 future (continuous contract), daily, Source: TradingView
    Mini S&P500 future (continuous contract), daily, Source: TradingView

The Standard & Poor's 500 is one of the main American stock market index based on the market capitalizations of 500 large companies having common stock listed on the NYSE or NASDAQ. As you can see, this index hasn´t stopped raising since 2011. 

Gold

Comex Gold future (continuous contract), daily, Source: TradingView
    Comex Gold future (continuous contract), daily, Source: TradingView

The Comex Gold is one of the most important futures. You can trade it directly or you can use it to hedge your stock portfolio. Historically this hedge has been successful and has protected the portfolios versus big drawdowns. It´s recommended to have at least a small part of your investments in gold (even if it´s in an exchange-traded fund that tracks this metal)


I reviewed Gold futures and ETF´s last year: Gold Analysis

 


Spread between SP500 and Gold

Spread between SP500 and Gold futures, daily, Source: TradingView
    Spread between SP500 and Gold futures, daily, Source: TradingView

To simplify the calculation, I decided to make the spread as 1 E-mini S&P500 future minus 1 Comex Gold future. As you can see, the relationship was negative before 2013 because the gold price was higher than the S&P. Since then, this spread has raised almost like the US index. This explains that the different QE programs calmed down the uncertainty (so the investors started buying the S&P and started selling or reducing their gold portfolio)


Introduction to the study

Correlation series

For this part, I chose 4 correlation series (20, 60, 120 and 250 days) that represent different time frames. 


Correlation time frames table, own elaboration
      Correlation time frames table, own elaboration

The main reason for choosing this time frames is to make comparisons and to see if I can work out a strategy in the following posts. 



 S&P500 and Gold correlation series, own elaboration
     S&P500 and Gold correlation series, own elaboration

We can’t get any conclusion from this chart apart that the long-term correlation between S&P500 and gold is negative (the most part of the time).  One of the things I would like to study in the following days is if I can build a profitable system based on the correlation series divergences. For now, I can show the different charts with the asset prices and the correlation (The Y left axis represents the price of the assets and the Y right axis represents the correlation coefficient):


 S&P500, Gold, and  20 days correlation serie, own elaboration
     S&P500, Gold, and  20 days correlation serie, own elaboration

This chart doesn’t show any clear relationship. Another problem is that is a short-term correlation that generates a lot of noise in the signals and it´s difficult to know if it´s worth to check this correlation to trade the spread.



S&P500, Gold, and  60 days correlation serie, own elaboration
    S&P500, Gold, and  60 days correlation serie, own elaboration

The 60-day correlation is smoother than the previous one. I think that we can take advantage of the correlation every time that is above 0, however, a statistical study is required. 


 S&P500, Gold, and  120 and 250 days correlation series, own elaboration
  S&P500, Gold, and  120 and 250 days correlation series, own elaboration

As I said before, we can see that the most part of the time these correlations are below 0. Like in the previous chart we can take advantage of the correlation above 0. In addition, I would be interesting to study a trading system based on the 120 days correlations that trigger a trade every time is under -0.2. In terms of correlation’s divergence, we need to backtest it properly.

Sum up

I’ve chosen these assets because they are really important. The S&P500 reflects the US economy and the Comex Gold can be used as an investment or as a hedge vs the main index in a recession. Sadly this post is an introduction. I will analyze the systems proposed using advanced statistics and some backtests. As a reminder, the systems will be based on the correlation and its divergences. 



#trading #investing #correlation #ES #GC #SP500 #Gold #statistics

Sunday, 5 November 2017

What is a credit spread?

Introduction

It is a options strategy that consists of buying one option and selling another option in the same underlying. Both legs, or options, should have the same expiry and a different strike. This represents a neutral strategy, in which you can profit for guessing the future movement or even if the underlying keeps trading in a range. One of the best parts of this strategy is that the investors or traders receive a net credit only for entering into this strategy. And this credit can be used to finance other investments or the margin to trade different products. I wouldn´t recommend using the Premium to make new trades.  In order to apply this strategy, you should have a good knowledge about options. The credit spreads are part of the vertical spreads.

What is the structure of these strategies?


Depending on your thoughts on the future movement of the underlying you can adapt the strategy. If you think that the uptrend will continue in the underlying, you can do a bull put spread. If you are bearish, you should apply a bear call spread.

  • Bear call spread involves selling a call option in the money (because it’s worth to exercise) and simultaneously buying a call option with the same expiry but higher strike.
  • Bull put spread, consists of selling a put option and buying another put option with the same expiry but lower strike.



Steps


The first step is to study the underlying. Once you know if you would buy or sell the underlying, you can have a look at the options available and the time frame you desire. After deciding the strikes and the expiry, you should place the orders. There is an important execution risk if you want to place limit orders because there is the possibility of being filled only in one of the legs. You can ask your trading platform administrators if they support this strategy, in that case, there is no risk of execution because as soon as you are filled in one of the legs they will send a market order to the other leg. At this point, congratulations, you have your credit spread but you should monitor carefully and close the position if it goes against you. You should always respect your risk management rules. Losing a small amount makes you trade tomorrow, and surviving is the most important thing. Check my post about asymmetrical leverage here.

Example



Let´s imagine that we want to apply the strategy we have just learnt in the stock “X”. This is how the “X” is trading. One trader thinks that it had a big rise and he’s showing some weakness in the up-trend. So, he believes that the stock can rise without breaking the resistance highlighted in yellow. And after that, the sellers will be back to the market and this stock will fall.

Own elaboration, Stock “X”, daily
     Own elaboration, Stock “X”, daily

The markets are moving a lot and the trader doesn´t want to take excessive risks with this stock so he decides to make a credit spread. In this case, he will sell the call with 121 as a strike and he will buy the call with a higher strike and the same maturity. After checking the prices he will buy the 123 call.


Strikes used for the bear call spread, own elaboration
     Strikes used for the bear call spread, own elaboration

Once we have the idea, let’s check how the strategy will perform in different scenarios (it’s recommended to do it before entering in the position)


Bear Call Spread payoff, own elaboration

        Bear Call Spread payoff, own elaboration

This is only one example without real prices. As you can see the maximum profit you can get is the net Premium received for the position (In that case we collected 1.1$ for selling the call option at 121 level, and we paid 0.5 for buying the call option at 123 strike). The worst scenario is that the underlying keeps rising because the strategy can lose 1.4$, which is the difference between the strike prices used in the strategy less the net Premium received. (2$ minus 0.6$ = 1.4$)

Conclusion


This is one of the easiest option strategies but a good knowledge about options is required. The advantages are the following:

  • It’s a neutral strategy and the traders can profit from betting the side in which the underlying will go or even from sideways movements in the underlying.
  • You get credit for entering in the strategy.
  • You can hold the position for weeks or months.
  • You can apply this strategy to any kind of underlying, stocks, index, commodities …


The disadvantages are the following:

  • First, a let me repeat myself, deep knowledge is required.
  • You need a trading platform that supports options and with specific functions to avoid the execution risk
  • You should monitor the position and close if it goes against you As always, risk management is one of the most important things


I hope you like it.

Have a good trading!



Disclaimer

I wrote this article myself, and it expresses my own opinions that shouldn't be used as a trading advice. Trading carries considerable risk due to the high leverage involved


#trading #options  #tradingstrategies #verticalspreads #creditspreads

8th day small profit that helps me to keep going in the competition

After a successful week and most importantly from recovering almost $6k, I wanted to consolidate my positive results. My desire was to b...