innovations in quant trading strategies andinnovations in quant trading strategies and modelling...

38
Innovations in quant trading strategies and modelling Insights from QuantMinds International 2020 Click here or press enter for the accessibility optimised version

Upload: others

Post on 28-Jun-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Innovations inquant tradingstrategies andmodellingInsights from QuantMindsInternational 2020

Click here or press enter for the accessibility optimised version

Page 2: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Contents & introduction

Click here or press enter for the accessibility optimised version

Page 3: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

ContentsThe future is bright for those who survive

Featuring Marcos Lopez de Prado, True Positive Technologies

Neural networks with asymptotics controlFeaturing Alexandre Antonov, Danske Bank

Can FX hedges of bonds deliver a free lunch?Featuring Jessica James, Commerzbank AG

The right kind of volatilityFeaturing Marcos Carreira, École Polytechnique

Microstructure and information flows between crypto assetspot and derivative markets

Featuring Carol Alexander, University of Sussex & Peking University HSBCBusiness School at Oxford

IntroductionDid you notice that the well-versed ways to make money no longerwork? Old strategies fail because they're no longer relevant. People andmarkets have changed hugely, and quants need to adapt to this newequilibrium. Therefore, innovation, both technological and strategic, are inthe spotlight in this QuantMinds eMagazine.

Exclusive in this edition, we catch up with Prado who is previewing of hisnew book. We learn more about neural networks with Alexandre Antonov,and start to understand and control their extrapolating behaviours. Weexplore with Jessica James what the changing landscape has to offer forquants, while Marcos Carreira shares his observations on the differentmarket players. To top it off, Carol Alexander summarises some of herlatest research into crypto assets and their microstructure.

We hope you will find this eMagazine just as insightful as we did. We'relooking forward to learning more from these experts in May at the nextQuantMinds International. See you there!

The QuantMinds Team

Page 4: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

The future is bright...for those who surviveAn interview with Marcos Lopez de Prado

Click here or press enter for the accessibility optimised version

Page 5: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Cornell University’s Professor Marcos Lopez de Prado is a recognised authorityin machine learning. In addition to his outstanding academic career, for the past20 years he has managed multibillion-dollar funds at some of the largest andmost successful asset managers. He founded True Positive Technologies in 2019,with the proceeds from his sale of several patents to AQR Capital Management,where he was a Partner and its first Head of Machine Learning. CambridgeUniversity Press is about to release his new book, “Machine Learning for AssetManagers”, and we asked him to give us a preview.

Page 6: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Whatever edge you aspire to gain in finance, itcan only be justified in terms of someone elsemaking a systematic mistake from which youbenefit. Without a testable theory that explainsyour edge, the odds are that you do not havean edge at all. A historical simulation of aninvestment strategy’s performance (backtest) isnot a theory; it is a (likely unrealistic) simulationof a past that never happened. (You did notdeploy that strategy years ago, that is why youare backtesting it!)

Only a theory can pin down the clear cause-effect mechanism that allows you to extractprofits against the collective wisdom of thecrowds; a testable theory that explains factualevidence as well as counterfactual cases (Ximplies Y, and the absence of Y implies theabsence of X). Consequently, asset managersshould focus their efforts on researching theories,not backtesting trading rules. Machine learning(ML) is a powerful tool for building financialtheories, and the main goal of my new book is tointroduce readers to essential techniques thatthey will need in that endeavour.

What is the main premise of your new book?

Asset managers should focus theirefforts on researching theories, notbacktesting trading rulesMarcos Lopez de Prado

Page 7: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

As I explained in my previous book, “Advancesin Financial Machine Learning” (Wiley, 2018),backtesting is not a research tool. It is commonfor quantitative asset managers to confoundresearch with backtesting. A backtest cannotprove a theory. A backtest only estimates howmuch a trading rule profits from an observedpattern, but it does not tell us whether thepattern is the result of signal or the result ofnoise. The strategy could be profiting from astatistical fluke. To answer that question, weneed a theory that can be directly tested withgreater depth than a mere historical simulationof a trading rule.

Academic journals are filled with papers whereresearchers backtest a strategy on decades(sometimes centuries!) of data, and presentthose results as evidence that a particularinvestment strategy works. Authors almostnever control for selection bias, and in theabsence of a theory we must assume that thosefindings are false, due to multiple testing.

What’s the worst mistake made by quantitative asset managers?

Page 8: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

First, authors must state their theories in clearterms. A strategy is not a theory. A strategy isan algorithm for monetising the patterns thatpresumably arise from a theory. For example,consider a theory that partly explains volatilityas the result of market makers widening theirbid-ask spreads in response to imbalancedorder flow. A strategy may buy straddleswhenever the order flow becomes imbalanced.Even if the strategy is profitable according to abacktest, it does not prove that the patterns aredue to signal. Only a theory can establish themechanism that causes the patterns that thestrategy is presumably profiting from. Testingthe theory involves evaluating its ultimate andinescapable implications. Following the previousexample, we could analyse FIX messages insearch of evidence that market makers widentheir bid-ask spreads in response to imbalacedorder flow. We could also evaluate the profitsof market makers who didn’t widen their bid-ask spread under extreme order imbalance.Furthermore, we could survey market makers

and ask them directly whether their responseto imbalanced order flow is to withdraw fromthe market, and so on. In other words, testingthe theory that justifies the strategy has littleto do with backtesting. It has to do with theinvestigative task of defining the cause-effectmechanism.

Second, once the plausibility of a theory hasbeen established, and only then, we shouldbacktest the strategy proposed to monetise the

theory. Remember, a backtest is merely atechnique to assess the profitability of a tradingrule. In the absence of that theory, a backtestis a data mining exercise that proves nothing.Surprisingly, much of the factor investingliterature suffers from this lack of rigour. To thisday, there is no strong theoretical justificationfor most factors, even though investors havepoured hundreds of billions of dollars on them.ML can help build that economic rationale, asexplained in my new book.

How could this methodologicalmistake be avoided?

Only a theory can establish themechanism that causes the patternsthat the strategy is presumablyprofiting from.Marcos Lopez de Prado

Page 9: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Black-boxes cannot predict a black swan,because a model cannot predict an outcomethat has never been observed before. Only atheory can do that. A theory must be generalenough to explain particular cases, even if thosecases are black swans. For instance, theexistence of black holes was predicted by thetheory of General Relativity more than fivedecades before the first one was observed.Black swans are extreme instances of everyday

phenomena. In the earlier example, marketmicrostructure theory explains how marketmakers react to order flow imbalance, leadingto heightened volatility. The flash crash of May6 2010 was a black swan, however itsmicrostructure was predicted by the O’Hara-Easley PIN theory, going back to 1996. Inconclusion, quantitative models are useful aslong as they are supported by validatedtheories.

How does ML help uncovertheories?

ML methods decouple the specification searchfrom the variable search. What this means isthat ML algorithms find what variables areinvolved in a phenomenon irrespective of themodel’s specification. Once we know whichvariables are important, we can formulate atheory that binds them.

This is an extremely powerful property thatclassical statistical methods (e.g., econometrics)lack. A p-value may be high for an importantvariable because the researchers assumed thewrong specification, leading to a false negative.Given how complex financial phenomena are,the chances that economists can guess a priorithe right specification are slim. ML is the tool ofchoice in most scientific disciplines, and it is timeeconomists modernise their empirical toolkit.

Quant-sceptics argue that statistical models are useless because theycannot predict black swans. What’s your take?

Page 10: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Twenty years ago, one could extract alpha usingExcel, like most factor investment strategiesattempt. You would rank descending stocks byP/E ratios, buy the bottom, and sell the top.Today, those strategies are mostly dead, as aresult of crowding and backtest overfitting. If astrategy is so simple that anyone can implementit, why should anyone assume that there is anyalpha left in that pattern?

Whatever alpha is left in the markets, it is morelikely to come from the analysis of complexdatasets, which require sophisticated MLtechniques. I call this microscopic alpha. Thegood news is that microscopic alpha is muchmore abundant than macroscopic(unsophisticated) alpha ever was. One reasonis, strategies that mine microscopic alpha arevery specific (sometimes even security specific),which allows for an heterogenous set ofuncorrelated strategies. Another reason is, firmschasing macroscopic alpha are a significantsource of microscopic alpha, because thesimplicity of their declared strategies makes

their actions somewhat predictable.Accordingly, even if the individual Sharpe ratioof microscopic alpha were low, their combinedSharpe ratio can be very high.

RenTec is an example of a firm that has beensuccessful at mining microscopic alpha with thehelp of ML, and continues to do so consistently,while traditional asset managers have failed todeliver macroscopic alpha. In short, alternativedata is an important ingredient for success, incombination with ML and supercomputing.

But aren’t ML algorithms moreprone to overfitting?

On the contrary, classical statistical methods aremore likely to overfit, because they derive theirestimation errors in-sample: The sameobservations used to train the model are alsoused to evaluate its accuracy. The reason forclassical methods’ reliance on in-sample errorestimates is that these methods predate theadvent of computers. In contrast, ML methodsapply a variety of numerical approaches toprevent overfitting: cross-validation,regularisation, ensembles, etc.

Aren’t financial datasets too shortfor ML applications?

They may be too short for some deep neuralnetworks, but there are plenty of ML algorithmsthat make a more effective use of the data thanthe classical statistical methods. For example,the random forest algorithm tends to performbetter than logistic regression, even on smalldatasets, among several reasons because it ismore robust to outliers and missing data.

What’s your view on alternative data?

Page 11: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

TPT helps bring asset managers into the Ageof AI. We develop customised investmentalgorithms for institutional investors. Mypartners and I founded TPT by popular demand.In less than one year, we have been engagedby firms with a combined AUM that exceeds $1trillion. This reception has surpassed our wildestexpectations, so we are very pleased with theindustry’s desire to modernise.

You founded True Positive Technologies (TPT) last year. How does TPThelp investors?

I’m more concerned about the state of affairsin academia. Economics students should beexposed to modern statistical methods,following the trail of students from otherdisciplines. The study of basic econometricsshould be complemented with advancedcourses in ML. The complexity of alternativedatasets is beyond the grasp of econometrics,and I fear that students are only being trained tomodel (mostly irrelevant) structured data.

Page 12: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Neuralnetworks withasymptoticscontrolHow can our knowledge ofasymptotics translate intocontrol over the extrapolatingbehaviour of NNs?

Click here or press enter for the accessibility optimised version

Page 13: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Applications of artificial neural networks in quant financehave met various challenges, one of which is our currentinability to control the extrapolation behaviour of NNsbeyond the range of training points. In the working paper"Neural Networks with Asymptotics Control", AlexandreAntonov, Michael Konikov, and Vladimir Piterbargdemonstrate how the knowledge of asymptotics can betranslated into control over the extrapolating behaviour ofNNs, and in this article, Alexandre Antonov, Chief Analyst,Danske Bank, explores the key concepts supporting thispaper.

Page 14: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Significant advances in machine learning (ML), deep learning (DL), andartificial neural networks (ANN or NN) in image and speech recognitionfuelled a rush of investigations as to how these techniques could beapplied in finance in general, and in derivatives pricing in particular. Typicalexamples of this genre include [AK], [MG], [HMT], [FG].

The main idea of these papers is to use NNs to speed up slow functioncalculations. A typical procedure involves training the NN offline on asample of learning points calculated from the true model (or, in pre-NNlanguage, fitting a functional form defined by an NN to a sample of functionvalues over a collection of function arguments, often multi-dimensional),and then using the NN as an approximation to the true model during on-line pricing and risk management calculations.

It has generally been observed that NNs, once trained, do a good jobinterpolating between the points they were trained on (fitted to). However,extrapolation behaviour beyond the range of training points is notcontrollable in a typical NN, due to their complex non-parametric nature.In this paper, we provide a detailed description on this absence ofextrapolation/ asymptotics control. Starting with an extensive intuition onthe Kolmogorov-Arnold theorem underlying a standard feed-forwardmulti-layer NN, we demonstrate how an information about asymptotics islost.

The absence of extrapolation control is a significant limitation of the NNapproximation approach to financial applications. The obvious one is

Page 15: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

stress testing. Financial models often need to be evaluated with the valuesof input variables that are significantly different from the current marketconditions. Changes of regime are common in financial markets. Moreover,input values in stress scenarios, required for sound risk management,would routinely fall outside the range of the training set, with unpredictableextrapolation. Needless to say, there are many other reasons why it isimportant to control extrapolation of NNs in financial applications.

One of the possible solutions to this problem is, of course, sampling theinput variable space widely enough so that any possible future value ofinput variables falls within the sample range (interpolation) and neveroutside (extrapolation). It is not hard to see that this is not a fullysatisfactory solution as one does not know a-priori what future values willbe required. Additionally, large ranges of input values need a large numberof learning points to cover, slowing down learning. More importantly, usinglarge ranges for input variables would likely make the fit for moderate, i.e.non-extreme, values of inputs worse, as the NN would try to balance thequality of fit between all the training points.

Fortunately, for many financial applications, in addition to the ability tocalculate function values for moderate values of inputs, we also often knowasymptotics of these functions for large values of parameters. This is truefor e.g. SABR fitting ([MG], [HMT]) and values of many types of products inderivatives pricing ([FG]). The aim of this paper is to demonstrate how theknowledge of asymptotics can be effectively translated into control over

Large ranges of input valuesneed a large number oflearning points to cover,slowing down learningAlexandre Antonov

Page 16: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

the extrapolating behaviour of NNs.

Namely, to approximate a multi-dimensional function while preserving itsasymptotics we come up with two steps. As the first one, we find a controlvariate function that has the same asymptotics as the initial function. Onstep two, we approximate the residual function with a special NN that hasvanishing asymptotics in all, or some, directions.

The apparent simplicity of the plan hides a number of complications thatwe overcome in this paper. Specifically, we make two critical contributions –our main technical results -- that make this programme work. For step one,we show how to construct a universal control variate, a multi-dimensionalspline that has the same asymptotics as the initial function. For step two,we design a custom NN layer that guarantees zero asymptotics in alldirections, with a fine control over the regions where the NN interpolationis used and where the asymptotics kick in.

In passing, we note that multi-dimensional interpolation is not the onlyapplication of NNs in quantitative finance; papers [KS], [BGTW], [GR], [HL]explore other applications that are beyond the scope of this paper. Still,they may benefit from some of the ideas presented here.

More details as well as intuitions and multiple illustrations can be foundin our SSRN paper:A. Antonov, M. Konikov and V. Piterbarg, "NeuralNetworks with Asymptotics Control", 2020, SSRN working paper

References[BGTW] H. Buehler, L. Gonon, J. Teichmann, B. Wood. "Deep Hedging", 2018,

arxiv. Control Signal Systems (1989) 2: 303.

[FG] R. Ferguson and A.D. Green, "Deeply Learning Derivatives", 2018, SSRN

working paper

[HL] P. Henry-Labordere. "CVA and IM: Welcome to the Machine", March 2019,

Risk Magazine

[HMT] B. Horvath, A. Muguruza and M. Tomas, ``Deep Learning Volatility'' 2019,

SSRN working paper

[AK] A. Kondratyev, "Curve dynamics with artificial neural networks", 2018, Risk

[KS] A. Kondratyev, C. Schwarz. "The Market Generator", 2019, SSRN working

paper,

[MG] W. McGhee, "An Artificial Neural Network Representation of the SABR

Stochastic Volatility Model" (2018), SSRN working paper

[GR] G. Ritter. "Machine learning for trading". October 2017, Risk Magazine,

pp.~84-89

Page 17: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Can FX hedges of bonds deliver a free lunch?Under just the right circumstances, the elusive free lunch may temporarily appear on the table

Click here or press enter for the accessibility optimised version

Page 18: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

We all know that in the markets, there is no such thing as a free lunch. Risk-free returnsdon’t exist – and if they did, even briefly, they would be traded on until they disappeared.Except sometimes, somehow, under just the right circumstances, the elusive free lunchmay temporarily appear on the table… In this article, Jessica James, Managing Director,Senior Quant Researcher, Commerzbank, explores how.

Page 19: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

I would like to talk aboutgovernment bond yield differentials.At the time of writing, US 2ygovernment bonds deliver about1.5%. Similar EU bonds are giving-0.6%. Investors in high grade debtbased in Europe are enviouslyglancing over the pond.

Why don’t they sell some EU bondsand buy the US bonds? Ah, says

your Finance 101 lecturer, becauseof the FX risk. If a EUR basedinvestor buys a US bond, the FXrates can swing by several percentin a few days or weeks – wiping outthe carefully calculated interest ratedifferential. The FX risk overwhelmsthe trade.

Well then, why does the investor nothedge the FX risk of the trade? Once

more, the Finance 101 lecture noteshave an answer – because the costof hedging will exactly offset theinterest rate differential. So ourinvestor sadly regards hisunderperforming portfolio andwonders what to do. But! His notesare from pre 2008 days – and thesedays, things are a little different.

The FX hedge in the post crisis world isaffected by the cross currency basis, whichmeans that sometimes, the FX hedged dealis a lot more interesting.Jessica James

Page 20: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

As a EUR based investor, the higheryields currently available for USbonds across the tenor range areattractive. How could the EUR basedinvestor take advantage of this?

In a financial market with no capitalcharges or regulatory and XVAissues, then it would not be possibleto preserve any kind of yield pick-up by investing in a foreign bondand then hedging the FX risk. The‘theoretical’ forward FX rate would,in the pre-2008 crisis days, havealmost exactly cancelled out theyield pick-up, though there mighthave been some credit spread

available. But even this was small.

Now, however, there exists ingeneral a substantial cross-currencybasis, meaning that the arbitragerelationship between FX spot andforward, and interest rates, hasbroken down to an extent, duepartly to demand for differentcurrencies and partly to regulatoryactivity which restricts arbitragetrades. The actual cross currencybasis is usually expressed as adifference to the non-USD interestrate of the currency pair, though itcould equally well be expressed asa spread to the USD rate or to the

FX spot or theoretical forward rate.Additionally, credit spreaddifferentials have become far moresignificant since the crisis, and mayprovide additional pick-up indifferent industries and tenors.

We would execute the hedge in theswap market, which has slightlydifferent rates from the governmentbonds (though they are correlated),and we would include the basisswap. The (US) basis swap is theextra cost of borrowing US dollarsvia a currency swap compared towhat it should be purely accordingto interest rate differentials.

Maturity-matched hedges

Page 21: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

The mechanics of the package arethus: the EUR based investorexchanges EUR for USD, buys theUSD bond, and puts on a maturity-matched FX hedge. Simplistically,assuming a 1-year period, andwithout worrying about couponpayments, we can write this asbelow.

FX is the FX rate at the start of thedeal

FR1 is the 1 year forward FX rate forthe bond maturity

As said, we are not worrying abouthedging the interest rate risk. Thus

But from the arbitrage basedconstruction of the forward rate FR,we know that

Where R1 is the EUR interest rate,and R2 is the USD interest rate forthe bond tenor.

Thus EUR hedge cost is given by

R2 is the USD swap rate, but weactually now need to adjust it by thebasis swap amount. Thus

What, then, will the cost of hedging be?

Page 22: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Because (1) and (2) areapproximately equal to each other,it can be calculated either way,depending on the data which isavailable. One would usually useequation (2) as the basis swap isexplicitly incorporated, but if onewished to use the spot and forwardFX rates, then it is possible toexpress the quantity [R2 + Rbasis - R1] in terms of these FX rates as inequation (1), because the forwardFX rate in the market doesincorporate the basis.

It’s not difficult to extend this to themulti-year case. We know that for nyears,

So the total EUR hedge cost overthe whole deal is given by

…if we use a binomial expansionand take only the first order. Oncemore of course we actually need toinclude the basis swap so the actualannual cost will be P[R2 + Rbasis -R1].

So we may now calculate a hedgedyield pick-up which is actuallyaccessible to the EUR basedinvestor. It is FX hedged andrelatively risk free. Note that

equation (3), where the hedge costis expressed in terms of the FX spotand forward rates, is a novel way ofcalculating hedge cost. It is usefulin that it is an alternative way ofarriving at the answer from otherdata series than those usually used.

Page 23: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

From now on, we can omit theprincipal amount P in expressionsas it will always cancel on bothsides of the equation and there isno loss of generality in expressingall quantities as percentages.

Once we have the hedge cost, wemay derive the annualised yieldpick-up very simply, as below

As previously discussed, in aperfectly efficient market, this wouldbe zero, but in the ‘real world’ it isoften substantial.

In practice, we may derive this yieldpick-up three ways

(1) Using bond yields, swap rates,and cross-currency basis swaps

(2) Using asset swap spreads, 3s6sbasis swaps, and cross-currencybasis swaps

(3) Using bond yields and spot andforward FX rates

Where, for a EUR investor buying aUSD government bond,

B1 = EUR bond yieldB2 = USD bond yieldR1 = EUR swap rateR2 = USD swap rateRbasis = XCCY basis swapA1 = EUR asset swapA2 = USD asset swapC1 = 3s6s basisFX = spot foreign exchange rateFRn = forward foreign exchange ratefor tenor nn = tenor in years

Note that the 3s6s basis (ie., thedifference between swap ratesreferenced to 3m and 6m Libor)may sometimes be needed if theother interest rates differ in theircoupon frequency, and that theasset swap spread is A1 - A2 ratherthan A2 - A1 because it is alwaysquoted as a positive spread overthe government bond. Additionally,one may need to be careful of thesign of the basis swap which isusually quoted as a spread to thenon-USD interest rate, so if thebasis-adjusted EUR interest rate islower than the actual rate, then thebasis swap will be a negativenumber.

Practical calculation of maturity-matched yield pick-up

Page 24: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Having done all of this, we see in the graph below that the three ways of calculating the yield pick-up matchbeautifully!

Maturity-matched FX hedged yield pick-up for 2y USD bonds vs EUR vsGerman bonds, in bp | Source: Commerzbank Research, Bloomberg

It’s obvious that the ‘pick-up’ is not always positive – the point one can makeis that a negative pick-up from the perspective of one currency of a pair isa positive one from the other currency’s perspective. But the fact that attimes, certain investors have been able to lock in a pick-up of 50 bp or moredoes make one think that just occasionally, lunch comes without a bill.

Now, this is of course not the whole story. We’ve assumed that the investorcan short EUR government bonds in the repo market without cost, which isnot true. And these pickups are only strictly available if the investor holdsthe bonds until maturity – two years, in the above example. This does notsuit the majority of portfolio managers. However, it is good to think that intoday’s world, many of the old certainties which are no longer true give wayto far more interesting situations.

References[1] For an in-depth discussion of what the basis is, see Commerzbank’s Rates

Radar “More interest in cross-currency basis swaps”, March 2017

Commerzbank AG London Branch is authorised by the German Federal Financial

Supervisory Authority and the European Central Bank. Commerzbank AG

London Branch is authorised and subject to limited regulation by the Financial

Conduct Authority and Prudential Regulation Authority.

Page 25: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

The right kind ofvolatilityHow do market makers make money?

Click here or press enter for the accessibility optimised version

Page 26: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Years ago, Rebonato was discussing the2007 Quant Apocalypse (I think), andhe paraphrased the infamous “thewrong type of snow” from a British Railinterview to say that what happenedwas “the wrong kind of volatility”. Allthe time we hear that proprietarytrading firms make money withvolatility, and that periods with lowvolatility are bad for them. So, MarcosCosta Santos Carreira, PhD Candidate,École Polytechnique, investigates: isthere a right kind of volatility formarket makers? And how do marketmakers make money?

Page 27: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

For that we will have to look at how marketswork and try to model some of these features,starting with a contract where prices trade atcertain prices only; the difference betweenthese values is known as the tick value (e.g. 0.01for US equities); so prices are multiples of thetick value (represented in our papers as α).Those not familiar with this subject might haveheard about the decimalisation in US equities atthe end of the 90s, where 1/8s and 1/16s weredropped in favor of the 0.01 price increment.

This discretisation means that what we observe(repeated trades at the same price, discreteprice changes and the times between thesechanges) is representing some kind of hiddenprocess, where agents make decisions basedon variables like the order book imbalance (i.e.whether the size of the order book on the first(top) level(s) is bigger on the bid (ask) side thanon the ask (bid) side.

So let’s assume that there are three types ofagents: (i) market makers, who try to postliquidity on the top of each queue to capture

the spread as (ii) noise traders cross the spreadwithout depleting the existing liquidity at theprice level traded; the traders who deplete theexisting liquidity on one side of the order bookare (iii) informed traders. We are adapting thedefinition from the paper From Glosten-Milgrom to the whole limit order book andapplications to financial regulation.

As the tick value gets lower, more tradesbecome informed; as the tick value gets higher,more trades become noise. But what elsecontributes to it?

Well, volatility should play a role; after all, themore volatile an asset is, the more the price willchange, leading to faster price changes and awider range of prices over a trading day.

As the tick value gets lower, moretrades become informed; as the tickvalue gets higher, more trades becomenoise. But what else contributes to it?Marcos Costa Santos Carreira

Page 28: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

We have already looked at the relationshipbetween volatility and tick sizes in the paper Anew approach for the dynamics of ultra highfrequency data: the model with uncertaintyzones and 3 years ago in the presentationMicrostructure Of A Central Limit Order Book InFX Futures; we know that the number of pricechanges in a trading day is proportional to thesquare of the volatility and to the square of theinverse of the relative tick value (α divided by theasset price). We also know that the parameterη, defined as ½ multiplied by the ratio betweenthe number of continuations and the numberof alternations (where continuations refer toconsecutive price changes with the same signand alternations refer to consecutive pricechanges with opposite signs) plays a role in thenumber of trades.

We’ve been conducting further research withthe help of the CME, and looking at thedecreasing volatility of FX future contracts westarted to notice that the number of trades andthe trade durations (times between pricechanges) seemed different than expected; theanswer is that, at the end of the day, priceswill not be the same as of the opening; so abetter way to model the evolution of the hiddenprice process is to look at the effect of boththe volatility and the trend of the process;remember that usually in financial mathematicsthe time t multiplies the trend μ but also thesquare of the volatility σ; so a big reduction inσ makes the trend more important; so whencounting the number of price changes one willfind more continuations than expected.

More articlesfrom Marcos Costa SantosCarreira

The right way to be wrong:learning interest rateinterpolation

Learn this about options:pricing is hedging

A soft introduction torough volatility

Page 29: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Our new formulas can account for thisdifference, and more important we can nowunderstand better the role that volatility andtrend play. For a market maker, the volatilityσ is good, as it leads to alternations and theopportunity to earn a fraction of the spread onaverage; but the trend μ is bad for the simplestrategy of posting liquidity in the top of thebook; so, following some of the ideas of FromGlosten-Milgrom..., we can think about the valueof being on the top of the queue as somethingclose to (1-2η)/(1+2η) on average; but becauseη can become quite large if the price movesrelentlessly in one direction, we can see thatthere is no value in being a market maker inthis situation, and market makers might become

market takers. The parallels between therelative roles of the trend μ and the volatilityσ and the ratio between informed trades andnoise trades are stricking (in fact, we will arguethat the ratio r on From Glosten-Milgrom...should be equal to 2η), and that trying to inferthe parameter η from the price changes andrice durations is equivalent to infer the recentvalues of μ and σ, which is equivalent to trying toinfer the proportion of informed trading. Moredetails will be discussed in the presentation atQuantMinds International.

We hope that this model will be of interest toregulators and exchanges. For regulators, using

this approach might lead to a faster diagnosticthat continuous trading might be failing toprovide adequate liquidity and price discovery(as the trend itself becomes the information)and an auction might be reasonable whensudden moves happen; this would be betterthan to wait for a 5% or 10% price move. Forexchanges, it would help them not only to betterchoose the appropriate tick values but tomonitor which factors (volatile volatilities,relative presence of informed traders likeinstitutional investors, etc.) are in play. And ithelps one to understand that, because the pricechanges are a consequence of both μ and σ,that not every volatility is the right kind ofvolatility for market makers.

Page 30: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Microstructure and information flows betweencrypto asset spot and derivative markets

Which crypto instrument on which exchange is the first to incorporate new information?

Click here or press enter for the accessibility optimised version

Page 31: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Professor of Finance at the University of Sussex BusinessSchool and leader of the Quantitative Finance and Fintechresearch group, Carol Alexander is presenting some path-breaking results at QuantMinds International 2020 –starting with the complex task of analysing price discoveryamong the hundreds of crypto spot and derivativesplatforms which, for the past year, have had an averageaggregate monthly trading volume of well over $500billion1.

Page 32: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Since the 1980s, a massive amountof academic research on thesequestions aims to provideinformational advantages to high-frequency traders. They arerelatively easy to answer fortraditional assets like financialfutures/ETFs, gold, fiat currencies,energy and commodities.Compared with crypto, the tradingis slower, the volatility lower, andthere are only a few instrument-types in each asset class, typicallytraded on just one venue.

However, bitcoin and othercryptographic coins and tokensform a new class of financial asset

with some very novel andinteresting properties, including themarket microstructure. They maybe traded 24/7 and 365 days peryear, either ‘off-chain’ on hundredsof different centralised exchangesor transferred directly ‘on chain’using smart contracts on theEthereum chain or other publicblockchains via peer-to-peer (P2P)trading venues called decentralisedexchanges.

Few of these venues are regulated,yet a wealth of limit order andtransaction data are freely available,providing a level of transparencythat is quite unique. As a result,

crypto assets and their derivativeshave become the ideal testingground for studying marketmicrostructure and price discovery,all the way from leader identificationto optimal trade execution basedon machine-learning algorithms.

About the data. For decentralisedexchanges, block explorers givedetails of each transaction in everyblock, pseudo-anonymised withhexadecimal numbers representingwallet addresses in the P2Pnetwork. For centralised exchanges,although nothing is recorded on thechain2, there is even more data. A

wealth of free VWAP coin price andcap-weighted crypto market indicesare freely available, although someare better quality than others3.

Also, most platforms have an APIwhich allows order book data to bedownloaded directly at very highfrequency. Data and softwareprovider CoinAPI links withhundreds of crypto spot andderivatives exchanges, offeringhistorical and streaming order bookand trades in tick-by-tick or highestgranularity data from all majorcentralised (and decentralised)exchanges.

Which crypto instrument on which exchange is the first to incorporate new information? Where are themost informed traders located? How long do traders on other platforms have to profit from the leadersreaction to news?

Page 33: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Information share metrics for pricediscovery are derived from N-dimensional vector error correctionmodels (VECMs) based on very high-frequency time series. Each day, myPhD student Daniel Heck hascalibrated such a model to Ndifferent minute-by-minute returnsand then calculated the metrics foreach market on that day. The sumof the N individual informationmetrics is 1 and the higher themetric for a particular market, themore influential its price discoveryrole on that day. Then we roll

forward 24 hours and repeat,getting a picture of the influencethat different markets have on‘discovering’ the common efficientbitcoin price, and how thisleadership evolves over a period oftime.

Here I’ll focus on the metric calledthe ‘generalised information share’(GIS). I’ll be discussing the latestresults for a selection of VECMsduring the first part of my talk atQuantMinds.

But in this article I’ll present just two VECMs, with N = 2 and 8respectively: The first is for the regulated ‘institutional’ bitcoin futuresexchanges (N = 2, with CME and Bakkt); and the other (with N = 8) isfor all the most influential instruments from the unregulated bitcoin spotand derivatives exchanges, and the CME. The figures below summariseour results.

Page 34: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Figure 1: Generalised Information Shares and Volumes: CME and BakktBitcoin Futures

Bakkt, a subsidiary of ICE, eventually launched their (physically-settled)bitcoin futures in September 2019, after considerable media coverage.However, after an initial surge of interest, they have (as yet) failed tocapture market share from the CME. In January 2020 the ADV on Bakktfutures was only $12 million, compared with $450 million on CME futures.So, it is not surprising that about 95% of new information – on institutionalbitcoin platforms – is led by traders on the CME.

However, the vast majority of off-chain bitcoin trading is on unregulatedexchanges. In fact, since its inception in 2017 and until very recently, theBitMEX perpetual swap was by far the strongest leader of bitcoin pricediscovery4. But during the last 12 months the situation has changed. To seethis, consider Figure 2, which depicts the GIS for an 8-dimensional VECM.These 8 bitcoin spot and derivatives markets are colour coded and orderedby their final GIS on 31 January 2020.

Figure 2: Generalised Information Shares for Bitcoin Perpetual Swaps,Futures and Spot

Page 35: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

First, it is evident that the CMEfutures (shown in yellow) onlyaccount for about 6% of totalbitcoin price discovery in thissystem. And even though the Huobiexchange didn’t introduce their(quarterly) futures until 2019, thiscontract has recently become theoverall price leader. Its GIS (shownin dark blue in Figure 2) has rapidlygrown to take the major share,standing at over 20% on 31 Jan2020. And its trading volume issecond only to the BitMEXperpetual swap (ADV: $2.8 billion onHuobi futures vs $3.2 billion onBitMEX perpetual swap). To putthese volume figures in context, forthe three spot markets shown inFigure 2 (Coinbase, Bitfinex, andBitstamp) the ADV in total is only$200 million.

But of all the platforms consideredhere, OKEx is perhaps the mostinteresting. By the end of January

2020 their quarterly futures (lightblue) and perpetual swap (mid blue)together accounted for over one-third of bitcoin price discovery. Yet,with an ADV of about $1.5 billion– $1.1 billion on the futures and$400m on the perpetual – they haveless than one-sixth of the tradingvolume.

Huobi and OKEx attract better-informed players in bitcoin markets.Located in Singapore and HongKong respectively, most institutionsare not allowed to trade on theseexchanges. Nevertheless, they canlook into their order book for high-frequency trading signals. Forinstance, if you trade on Coinbase(or CME, or Bitstamp, etc.) howmany minutes do you have to profitfrom following a large upward ordownward price jump on the OKExperpetual? How long do you havefollowing a similar move in Huobifutures?

I’ll be discussing these results during my talk onWednesday 13 May. Hope to see you there.

References:[1] See the CryptoCompare Exchange Review, December 2019

[2] On- and off-boarding the exchange is only captured on a blockchain if it is in

cryptocurrency. Transfers in fiat currency are not recorded.

[3] See Alexander C. and M. Dakos (2020) ‘A Critical Investigation of

Cryptocurrency Data and Analysis’ Quantitative Finance. 20:2, 173-188.

[4] See Alexander C., Choi, J., Park, H., and S. Sohn (2020) ‘BitMEX Bitcoin

Derivatives: Price Discovery, Informational Efficiency and Hedging Effectiveness.’

Journal of Futures Markets. 40 (1). pp. 23-43. ISSN 0270-7314.

Carol Alexander is Professor of Finance at the University of Sussex Business

School and leader of the Quantitative Finance and Fintech research group.

At Sussex she supervises collaborative research on crypto assets and their

derivatives with a team of PhD and other research students. For further

information see http://www.sussex.ac.uk/profiles/2765

Page 36: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

Acknowledgements

Click here or press enter for the accessibility optimised version

Page 37: Innovations in quant trading strategies andInnovations in quant trading strategies and modelling Insights from QuantMinds ... backtesting trading rules Marcos Lopez de Prado. ... Excel,

We would like to thank the experts featured in this QuantMinds eMagazine for sharing their expertise withus. We look forward to hearing more about what latest research and insights at QuantMinds International inMay 2020.

Marcos Lopez de Prado

Professor of Practice atCornell University, and Co-

Founder & CIO, True PositiveTechnologies

Alexandre Antonov

Chief Analyst, Danske Bank

Jessica James

Managing Director, SeniorQuantitative Researcher,

Commerzbank AG

Marcos Costa SantosCarreira

PhD Candidate, ÉcolePolytechnique

Carol Alexander

Professor of Finance,University of Sussex andVisiting Professor, PekingUniversity HSBC Business

School at Oxford

Find more expert insights on the QuantMinds content home >>