25
Exploiting Market Sentiment to Create Daily Trading Signals Presented by: Dr Xiang Yu LT-Accelerate 22 November 2016, Brussels

Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Exploiting Market Sentiment to

Create Daily Trading Signals

Presented by: Dr Xiang Yu

LT-Accelerate

22 November 2016, Brussels

Page 2: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

OptiRisk Systems Ltd.OptiRisk Systems Ltd.OptiRisk Systems Ltd.OptiRisk Systems Ltd.OptiRisk specializes in optimization and risk analytics and is renowned for its research and development of models and software systems in these domains.

Team:

Prof Gautam Dr Xiang Dr Christina Dr Cristiano Dr Tilman Dr Cormac Dr Christian

Mitra Yu Erlwein-Sayer Arbex-Valle Sayer Lucas Valente

Company Company Company Company foundedfoundedfoundedfounded

Optimisation Optimisation Optimisation Optimisation and risk and risk and risk and risk projects projects projects projects undertaken with undertaken with undertaken with undertaken with Deutsche Bank, Deutsche Bank, Deutsche Bank, Deutsche Bank, Fidelity & Fidelity & Fidelity & Fidelity & Insight Insight Insight Insight Investment.Investment.Investment.Investment.

Worked with Worked with Worked with Worked with UBS, UBS, UBS, UBS, AllocareAllocareAllocareAllocare(part of State (part of State (part of State (part of State Street)Street)Street)Street)

Shift in research Shift in research Shift in research Shift in research direction to News direction to News direction to News direction to News Analytics and Analytics and Analytics and Analytics and Asset & Liability Asset & Liability Asset & Liability Asset & Liability Management .Management .Management .Management .

Release of the Release of the Release of the Release of the landmark landmark landmark landmark publication: “The publication: “The publication: “The publication: “The Handbook of Handbook of Handbook of Handbook of News Analytics in News Analytics in News Analytics in News Analytics in Finance”Finance”Finance”Finance”

Release of the Release of the Release of the Release of the follow up: follow up: follow up: follow up: “Handbook of “Handbook of “Handbook of “Handbook of Sentiment Sentiment Sentiment Sentiment Analysis in Analysis in Analysis in Analysis in Finance”Finance”Finance”Finance”

Began Began Began Began development of development of development of development of trading software trading software trading software trading software based on based on based on based on research results. research results. research results. research results.

20092000 20082005 2011 20162013

Page 3: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

OutlineOutlineOutlineOutline

� Define financial market sentiment

� How is it calculated

� Impact of sentiment

� Predictive properties

� Applications in Finance

� How to trade using sentiment

Page 4: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Define Financial Market Sentiment Define Financial Market Sentiment Define Financial Market Sentiment Define Financial Market Sentiment ----

BackgroundBackgroundBackgroundBackground

� Sentiment analysis captures the mood of markets and provides insight

into upcoming influential events.

� Previous concepts were ambiguous: Investor, media, market

� Pioneer of news sentiment: Tetlock (2007)

� Contrasts with Efficient Market Hypothesis, which is a cornerstone of

modern financial theory.

Page 5: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Define Financial Market Sentiment…Define Financial Market Sentiment…Define Financial Market Sentiment…Define Financial Market Sentiment…

� Traditionally, financial market indicators have been

� VIX – volatility index, fear factor

� Buying & selling ratios

� Liquidity figures….

� Nowadays, sentiment can be measured preciselypreciselypreciselyprecisely.

� Thanks to text analytics, opinion mining, NLP and machine learning.

Page 6: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Define Financial Market Sentiment…Define Financial Market Sentiment…Define Financial Market Sentiment…Define Financial Market Sentiment…

� NewsNewsNewsNews is an event

� News has an associated sentimentsentimentsentimentsentiment

� InvestorsInvestorsInvestorsInvestors are influenced by news sentiment

� Collective response of investors is the market sentimentmarket sentimentmarket sentimentmarket sentiment

� News � investors � markets

Page 7: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Sources of informationSources of informationSources of informationSources of information

� News wires

� Reuters

� Bloomberg

� Social media

� Microblogs (Twitter, Weibo)

� Flickr, YouTube

� Online search information

� Google

� Wikipedia

Page 8: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

How is sentiment calculated?How is sentiment calculated?How is sentiment calculated?How is sentiment calculated?

� From textual content and big data

� Simplified version: 3 steps

1. Entity recognition

2. Classify sentiment using combination of techniques e.g. text mining, NLP,

machine learning

3. Scoring

� Algorithms that can run real-time

� Important to state the perspective

Page 9: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Motivation Motivation Motivation Motivation –––– Sentiment vs. PricesSentiment vs. PricesSentiment vs. PricesSentiment vs. Prices

Source: Tetlock, Saar-Tsechansky and Macskassy (2008).

Page 10: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Motivation Motivation Motivation Motivation –––– Sentiment vs. PricesSentiment vs. PricesSentiment vs. PricesSentiment vs. Prices

Stock price of Walt Disney Co. and Twitter on 26 September 2016.

Source: Bloomberg

Headline: “Disney said to be working with adviser on potential

Twitter bid”

Page 11: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Impact of sentimentImpact of sentimentImpact of sentimentImpact of sentiment

������� � = ��� � �, �(�) � ∈�����

� � ��

��� ���(�)

�������(�) = ��� �(�, �(�))� ∈�����

� � ��

���(���(�))

• It is the aggregated aggregated aggregated aggregated sequence of news driven sentiment that moves

investors and markets

• The impactimpactimpactimpact depends on (i) numbernumbernumbernumber of news items and (ii) the decaydecaydecaydecay of

news sentiment over time

Page 12: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Impact of sentimentImpact of sentimentImpact of sentimentImpact of sentiment

�� � � = �� � 0 ��� !�Sent(0)

½Sent(0)

Time (mins)

90

Page 13: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

�'

Impact of sentimentImpact of sentimentImpact of sentimentImpact of sentiment

( 1 2 3 4 5 6 7 8 9 | 10

News 3News 1

(�� �(�), 1)

News 2 (�� �(�), 2)

(�� �(�), 3)

�3 �4

t

Page 14: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Predicting Volatility with NewsPredicting Volatility with NewsPredicting Volatility with NewsPredicting Volatility with News

5� = 6 + 8� ,where 8� = 9�:�.

9�' = ;< + ;38��3' + =39��3' + >3���������3+>'���������3(+>4��?@ABC?��3) + D�

where 9�' is the volatility at time t, 8��3' is the lagged log-return residuals, 9��3' is the lagged

volatility, ���������3and ���������3 are the positive and negative news impact score of the

previous time interval respectively, and D� is the error term.

Page 15: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Predicting Volatility with NewsPredicting Volatility with NewsPredicting Volatility with NewsPredicting Volatility with News

-4,5

-4

-3,5

-3

-2,5

-2

-1,5

-1

-0,5

0

0,5

AIG American

Express

BAC JPM Barclays Llodys RBS Standard

Chartered

Volatility Residuals for Finance Companies

Residuals market data + news

data (blue)

Residuals market

data only (red)

Page 16: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Predicting Volatility with NewsPredicting Volatility with NewsPredicting Volatility with NewsPredicting Volatility with News

Other news parameters to consider:

� Newsflow

� Expected vs. unexpected news

� News by sector

Depending on properties of news parameter, apply:

� T-GARCH

� e-GARCH

� GJR-GARCH

Page 17: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Applications of Sentiment Analysis in FinanceApplications of Sentiment Analysis in FinanceApplications of Sentiment Analysis in FinanceApplications of Sentiment Analysis in Finance

� Prediction of

� asset behaviour - returns, volatility and liquidity

� economic activity

� commodity prices

� Risk management

� Regulation

Page 18: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

How sentiment analysis affects tradingHow sentiment analysis affects tradingHow sentiment analysis affects tradingHow sentiment analysis affects trading

� Removes all limitations on:

� Speed

� Information sources

� Financial instrument coverage

� Ultimately, tries to beat the market & other participants

� Best at low frequencies – daily, intraday

Page 19: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

SSD SignalsSSD SignalsSSD SignalsSSD Signals

Daily trading signals

SSD Analytics Engine

Sentiment Analytics Engine

Page 20: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

SSD SSD SSD SSD –––– Second Order Stochastic DominanceSecond Order Stochastic DominanceSecond Order Stochastic DominanceSecond Order Stochastic Dominance

� What is the goal the investor wants to achieve?

Given her knowledge (historical asset prices, news…), she wants to select

promising assets and construct a portfolio E (long/short), where the predicted

return distribution has several nice features (e.g. high expectation, low variance,

low downside risk [value-at-risk, CVaR, …)

� The challenge for her is to select a desired portfolio amongst many.

� � Stochastic dominance is a

method of stochastic ordering

and an approach in

stochastic decision theory.

Page 21: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

1.1.1.1. The SES portfolio is rebalanced every day with (adjusted) closing prices and only assets that are part of The SES portfolio is rebalanced every day with (adjusted) closing prices and only assets that are part of The SES portfolio is rebalanced every day with (adjusted) closing prices and only assets that are part of The SES portfolio is rebalanced every day with (adjusted) closing prices and only assets that are part of

the index are considered. the index are considered. the index are considered. the index are considered.

2.2.2.2. We assume a yearly risk free rate of 2%.We assume a yearly risk free rate of 2%.We assume a yearly risk free rate of 2%.We assume a yearly risk free rate of 2%.

3.3.3.3. Transaction costs of 5 basis points for both buying and selling. Transaction costs of 5 basis points for both buying and selling. Transaction costs of 5 basis points for both buying and selling. Transaction costs of 5 basis points for both buying and selling.

4.4.4.4. Money management at 50% of markMoney management at 50% of markMoney management at 50% of markMoney management at 50% of mark----totototo----market portfolio value.market portfolio value.market portfolio value.market portfolio value.

5.5.5.5. We reshape the reference distribution to achieve an improved positive skewness.We reshape the reference distribution to achieve an improved positive skewness.We reshape the reference distribution to achieve an improved positive skewness.We reshape the reference distribution to achieve an improved positive skewness.

For each test we present a graphic with the portfolios performance and a table with further statistics. The

The tables contain the following columns:

Excess RFR (%):Excess RFR (%):Excess RFR (%):Excess RFR (%): Annualised excess return over a risk-free rate, given in percentage.

Sharpe RatioSharpe RatioSharpe RatioSharpe Ratio: Annualised Sharpe ratio of portfolio returns.

SortinoSortinoSortinoSortino RatioRatioRatioRatio: Annualised Sortino ratio of portfolio returns

Max drawdown (%):Max drawdown (%):Max drawdown (%):Max drawdown (%): maximum drop in portfolio value, in percentage.

Max. rec. daysMax. rec. daysMax. rec. daysMax. rec. days: Maximum number of days for the portfolio to recover from a drop in value.

Performance of SESPerformance of SESPerformance of SESPerformance of SES

Page 22: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

FTSE100 ResultsFTSE100 ResultsFTSE100 ResultsFTSE100 Results

PortfolioPortfolioPortfolioPortfolioFinal Final Final Final

valuevaluevaluevalue

Excess Excess Excess Excess

RFR (%)RFR (%)RFR (%)RFR (%)

Sharpe Sharpe Sharpe Sharpe

ratioratioratioratio

SortinoSortinoSortinoSortino

ratioratioratioratio

Max Max Max Max

drawdown drawdown drawdown drawdown

(%)(%)(%)(%)

Max. rec. Max. rec. Max. rec. Max. rec.

daysdaysdaysdays

FTSE100FTSE100FTSE100FTSE100 1.07 1.91 0.10 0.15 22.06 379

SESSESSESSES 1.14 5.64 0.40 0.57 12.49 227

Page 23: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

EUROSTOXX ResultsEUROSTOXX ResultsEUROSTOXX ResultsEUROSTOXX Results

PortfolioPortfolioPortfolioPortfolioFinal Final Final Final

valuevaluevaluevalue

Excess Excess Excess Excess

RFR (%)RFR (%)RFR (%)RFR (%)

Sharpe Sharpe Sharpe Sharpe

ratioratioratioratio

SortinoSortinoSortinoSortino

ratioratioratioratio

Max Max Max Max

drawdown drawdown drawdown drawdown

(%)(%)(%)(%)

Max. rec. Max. rec. Max. rec. Max. rec.

daysdaysdaysdays

EUROSTOXX50EUROSTOXX50EUROSTOXX50EUROSTOXX50 1.04 2.05 0.09 0.12 21.14 186

SESSESSESSES 1.16 14.00 0.72 1.10 16.23 186

Page 24: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

SummarySummarySummarySummary

� Computing power available nowadays makes it possible to accurately

calculate the sentiment of markets.

� Masses of text, multitude of sources and the whole crowd.

� Predictive value have been found in many applications across many

financial instruments.

� We found sentiment data to be most powerful in predicting volatility.

� This information then enhances the portfolio selection decision using

optimisation models for trading purposes.

� All in a fully automated process.

� Taking subjective information to build an objective system.

Page 25: Exploiting Market Sentiment to Create Daily Trading Signals Xiang Yu.pdfSentiment analysis captures the mood of markets and provides insight into upcoming influential events. Previous

Thank you!Thank you!Thank you!Thank you!

The Handbook of Sentiment Analysis in Finance

Edited by Prof Gautam Mitra and Dr Xiang Yu

Available on Amazon or on www.optirisk.com/publications