Natural Language Processing & Finance

Natural Language Processing & Finance

Natural Language Processing & Finance There’s more than one meaning for NLP, which you might encounter. If you Google it, one of these is Neuro Linguistic Programming, and techniques of communicating with other folks. Well this post is absolutely nothing to do that! Instead, it’s to do with the NLP, which occupies more of my time, natural language processing.

In a nutshell, it’s about trying to do the types of tasks that humans undertake when dealing with a “real” language, with a computer. 

Sometimes this can involve writing, ie. natural language generation.

This could be related to tasks such as creating chatbots. For a financial firm, these chatbots could be programmed to interact with clients, such as on a market making desk, whether that’s answering questions about markets or executing orders.

In practice, for investors, natural language generation is probably less important than it would be for the sell side. Instead, for those seeking to generate “alpha”, natural language understanding is more important, in other words making sense of text. 

Natural Language Processing & Finance

The idea of using text to trade markets isn’t really new. News for one has always been a big mover of markets, and I doubt many would disagree with that. The difficulty is that there is so much text being generated that could impact markets, is that it is impossible for a human to read it all.

With machines to help us read the news, we can read text from many sources, be it from newswires, social media and the web more broadly. 

The next question is what can NLP help us do? It can help us to structure text, to add tags to texts to make them easier for us to understand. These can range from the timestamp, to understanding which topics a text is about and pretty key, what tradable ticker could be impacted by text.

Natural Language Processing & Finance

Other important tags include understanding the sentiment associated with a text, how novel that text could, the amount of readership a text has got etc. Once we have structured a text, we can then construct all sorts of things, such as indicators or decipher which types of topics are being discussed the most etc.  

The key question with NLP is how much work you want to do versus a vendor? I would argue that particularly when you begin to tackle NLP, having a vendor to do a lot of the heavy lifting is helpful. Yes you can try to do a lot of the “tagging” yourself, but in many cases, a vendor can do it quicker and cheaper.

Natural Language Processing & Finance

This is particularly the case if you don’t have access to a massive quant team with NLP experts. There are also open source tools too for NLP. I’d also say that in some areas, such as macro, NLP hasn’t really been used quite so much. And it isn’t too late to start if you’re an investor who wants to use it. If you’re interested in NLP, take a look at The Book of Alternative Data. Which Alexander Denev and I wrote as well!

Natural Language Processing & Finance Written by Saeed Amen

Over the past 15 years, I have developed algorithmic trading strategies at Lehman Brothers (where I co-developed MarQCuS which had $2bn AUM), Nomura, the Thalesians and Cuemacro. I am the founder of Cuemacro and the co-founder of Thalesians. I have profitably run systematic trading models for market making trading desks. Clients have included Bloomberg, Accenture, CLS, Freepoint Commodities, RavenPack, Cytora, Investopedia, a Chicago prop firm, a large European asset manager and several UK quant hedge funds.

TCA – Cuemacro have developed a Python based FX TCA library, tcapy, a fully open source library. Hundreds of K cheaper than developing your own library!

Research Consulting – Cuemacro provides extensive consulting services across currency, fixed income & equities markets, to create bespoke systematic trading models and deliver quant analysis of markets. Our expertise includes FX hedging, transaction cost analysis (TCA), vol trading models, macro based trading indicators and alternative data based trading strategies.

Data Products – Cuemacro publish data indices to map economic sentiment, such as our Fed sentiment index, using both common and unusual datasets for macro trading, drawing on our expertise in alternative data, as well as trading indices.

Monetising Data – Cuemacro can help your firm, whether it is a data, corporate or financial firm, understand how to monetise your datasets and how to use data more effectively internally. We can create a comprehensive data strategy for your firm.

Books – Trading Thalesians – What the ancient world can teach about trading today (Palgrave Macmillan) – Saeed Amen

– The Book of Alternative Data (Wiley) – Alexander Denev & Saeed Amen

I have presented many conferences like QuantMinds, as well at ECB, Federal Reserve Board, IMF and Bank of England.

Saeed published this article originally for his firm:

So what can NLP do for financial firms? – Cuemacro

Seeking the cues in macro markets

What are the signals we can use to trade macro markets? Cuemacro focuses on macro markets. Furthermore, we use both existing and innovative data sources to create systematic trading strategies, analytics and data indices. In addition, we build our analytics using Python and our open source libraries chartpyfindatapy and finmarketpy. Lastly, we offer several services for clients which include: 

  • Alt Data Products / Creating exciting new datasets for clients. To improve their own trading decisions and understand financial markets better
  • Research Consulting / Writing bespoke quant research papers and developing bespoke models for clients
  • Monetising Alt Data / Helping data companies. And corporate institutions monetise their datasets through research. And marketing services and aiding financial institutions to get into the alternative data age
  • Software / Developing bespoke market analytics. Including for backtesting, visualisation and TCA (transaction cost analysis)
  • Teaching / We offer workshops for clients which include Python for finance and alternative data. We have taught at a number of large banks and funds.

In a trading context, market participants seek to understand the cues to enter into a trade. We seek to find these signals. Given our focus on macro markets, it was natural to put the two ideas to name our company Cuemacro.

Client Portfolio

Lastly, below we give examples of some of the client projects we have done at Cuemacro. In addition, our clients have ranged from data vendors, to asset managers to quant hedge funds over the years, and have been based in both the US and also Europe. Our bespoke projects can range from delivering innovative new quant research for clients to developing analytics platforms for clients to run (such as TCA/transaction cost analysis).

Natural Language Processing & Finance

Natural Language Processing & Finance

  • Bloomberg / The project involved using a large dataset consisting of text, which we processed to construct sentiment scores and FX based trading signals.
  • Their investor anxiety index is based on searches around subjects such as “short selling” which are consistent with investors concerns. We talked about the project on Bloomberg TV.

Natural Language Processing & Finance

  • Over nearly 2 years, we wrote the specifications with our client, and later implemented the framework, both a web based front end and also a back end for computation. Through the course of the project, we solved some crucial issues associated with the computation of large datasets. Elements of the project grew into our tcapy software product. Enterprise licences are available to purchase for tcapy.

Please read Cuemacro’s Privacy Policy here.

Using Ai For Investing : Applying Natural Language Process For Investing

NLP & The Financial Sector NLP & The Financial Sector NLP & The Financial Sector NLP & The Financial Sector