Starting a Company, MacroPulse

It’s been over a year since I wrote the twenty-five things I’d tell myself ten years ago. Since then I’ve launched MacroPulse, adopted two kittens, moved to London and buzzed off all my hair. This post serves as a reflection of the start of my journey building my company, MacroPulse.

What is MacroPulse?

Before I talk about how I built it, let’s start with what I built. MacroPulse is a low-latency economic data feed and auto-execution program built to trade macroeconomic releases. I get the data directly from the source, and in most cases I’m scraping faster than Bloomberg and Reuters themselves. Low-latency macroeconomic feeds are often gatekept by hefty prices and sold as a B2B product only. With both a modern, cross-platform desktop app and an API feed, I’m aiming to target serious retail traders to provide them with hedge-fund speeds at a fair price.

New MacroPulse Business Card

From a technical point of view the edge is really in understanding the architecture behind the data source: all data providers are racing to get the data first. My method simply finds the shortest (of many) roads to the data, whilst driving the fastest car. I’ve spent over a year understanding the “map” of roads and their advantages and disadvantages. Given a lot of events print once a month, it’s an incredibly tough map to build!

Why MacroPulse?

The most common question I get is: how did you come up with MacroPulse? I’d love to tell you that the idea came to me whilst I was having a shower, although it’s not quite that cinematic. I’ve been at the intersection of trading, finance and tech since I started my career in my late teens. I first spent time at shipping data provider Tradeviews, then worked on NLP projects at financial news provider FinancialJuice. My summer research project at university was investigating how words move the markets. My dissertation project aimed to use news headlines as an additional signal to better forecast the macroeconomic EIA crude oil release. MacroPulse is the first of a few ideas bridging financial markets and engineering that I’ve taken off the shelf and made a reality.

The existing solutions for this piece of tech fall into a couple of baskets, institutional and retail. On the institutional side you have AlphaFlash, Haawks, Bloomberg and Reuters, they’re all decently fast but charge an absurd amount. From a retail point of view there is DataFlash and tradethenews, both of which resell data feeds rather than scraping them from the source, and are therefore slower than MacroPulse. So, the retail market is ripe for the taking, I’ve made a better product at a better price, providing real value and power to retail traders.

Launching & the First Live Release

The advice you’ll usually get is to make a waitlist, so people are waiting for you to release and revenue is guaranteed. I went against the grain and just went for it! Launching the website felt similar to graduating from university, the journey mattered more than the milestone, and the real learning starts now - generating leads, speaking to users, listening to their requests and really homing in on what improvements I can make to the product.

Me and MacroPulse

The first live data release went great, or at least I thought. It was the US CPI in June. I made a demo video, set up the triggers, the CPI numbers were scraped on time and came in pretty much in line with the forecasted values, my triggers fired for the correct market move - and then my broker declined my market order due to a market breaker. So from a structural level MacroPulse fed in the data perfectly, but zooming out I now had to research how to tackle the broker problem.

Sacrifice & Reality

Looking at the bigger picture now, one of the most prominent aspects of building a company is sacrifice. Everyone tells you it’ll be tough and you’ll have no time but you don’t properly realise it until you’re in the situation. I had to balance a full-time job, I had to decline many social invitations, I didn’t take a holiday in 2 years. Often you’re labelled as boring or disciplined. I like to think if you enjoy something in life it’s never time wasted. MacroPulse aligned with my goals, I enjoyed it, and the nature of the grind is an unglamorous period of building before you can eat the fruits of your labour.

The second lesson is the reality, which is that no one is owed anything in life. There’s no success recipe to building a company, there’s a vision, some luck, some talent and a lot of self-belief in something that may or may not work. Even the best poker hands can still lose occasionally. Still, I honestly believe that being optimistically delusional will take you further in life than being told no and being risk-averse ever will.

There’s just no such thing as balance if you want to become an entrepreneur. I’ve spoken to many CEOs and Founders and they often repeat two ideas. The first is that life comes in seasons: some weeks will be 100-hour work weeks and other times you’ll spend more time with your family and friends. The second is that you can’t maximise everything in life: sleep, relationships, work, hobbies, fitness - you’ll have to sacrifice some whilst you maximise another.

Challenges

You need grit, a lot of it. You will want to quit a lot. I had multiple weeks where I started to question if I could ever scrape the data faster than the numbers I had already got. I had multiple conversations where people advised me against MacroPulse and said it was too niche, too difficult, too old (news traders still do exist!) or pointless.

A lot of high-importance macroeconomic events such as CPI are released monthly. If you fuck it up once, there is no second chance until next month, so you have to be resourceful about how you carry out tests, and thus you will learn to create the “testing lab” and spend your life there until you get the results you need.

You wear every hat - I’m an engineer by trade, I’m learning growth and product every day as if I’m back in university, on top of a full-time job. Sales is the most important thing at this stage, no matter how talented you are as an engineer, the outcome always has to be income, there’s no VC money to burn so the goal has to be profitability.

Even if you think your product is the best in the world, there is a good chance you’ll be met with silence after the initial launch. If you haven’t figured out the marketing step, now is the time to learn how to distribute and market your product.

Meet the team & Co-founders

I run a small team bootstrapped from my flat - meet the co-founders. Firstly there is Chai the Bengal, secondly there is Sedona the Maine Coon and finally myself.

Chai the Bengal
Sedona the Maine Coon

I decided to embark on this journey myself, not because I thought it was better to not have a co-founder but because I knew I would enjoy the process and put my all into it. Finding a co-founder is incredibly difficult, and hiring is one of the toughest things you’ll ever do running a company, because why would someone else care more about your vision than you? They don’t need to, nor do they have to. Added overheads and responsibilities early on are largely noise, and the goal of any bootstrapped business is revenue. There are no funding rounds for me or unicorn status, just an insane amount of belief.

Because I have full ownership of the project, I love being able to be as hands-on as possible, and this situation allows me to flex my technical knowledge. After all, if you don’t enjoy what you do, how long can you do it for realistically before getting miserable?

Interested in Starting a Company?

As mentioned earlier, there is no blueprint. I have my life philosophies (the twenty-five things) and a dream. If you do want to go down this path and have enough self-delusion, keep validating your product and build something of value.

Building a brand is made up of daily decisions. People overestimate the launch, the campaign and the opening. The result of hundreds of decisions is what really contributes to building anything great.

What’s Next?

Firstly, a quick trip through East Asia to enjoy the fruits of life. I’ll be visiting Hong Kong, Taipei, Shanghai and Beijing to touch a bit of grass. Secondly, scale - MacroPulse proved it has legs, got to keep the ball rolling now and work on sales.

Finally, to the friends who kept sending invitations even when the answer was usually no, and to everyone who gave me their time and advice along the way - thank you. If you think you have the drive to work with me on MacroPulse or projects like this, please contact me, I’m always willing to grab coffee and/or have a chat, virtually or in London.

Bachelor's Thesis

My Bachelor’s Thesis is titled “Inventory Forecasting in the Crude Oil Market using Natural Language Processing”, the research takes weekly U.S. Crude Oil Inventories forecasts to future inventory values using deep neural networks, incorporating inventory driver features and novel natural language features derived from breaking financial news headlines to improve forecasting. The hypothesis was that news headlines surrounding oil would enhance forecasting accuracy of US oil inventory values.

Crude oil is the most traded commodity in the world, with $1.45T being traded in 2022, thus has an enormous amount of liquidity, providing trading opportunities. The original motivation for this thesis was to find the correlation between inventory movement and market movement by forecasting the inventory ahead of time using news headlines to achieve returns from the non-linear relationship. However, my final dissertation leaned towards exploring the relationship between news neural network models, headline sentiment, and inventory values, rather than post-inventory market movement.

My research used the Energy Information Administration’s (EIA) weekly reports on crude oil inventories, which offer insights into U.S. oil supply levels on a weekly basis. I also leveraged the weekly preliminary report from the American Petroleum Institute’s (API). These weekly inventory reports help investors gauge the balance between supply and demand in the crude oil market.

EIA Release Numbers & Market Movement on October 18th 2023.

The dataset is as follows: 159 weekly economic events were sampled with 25,530 headlines from FinancialJuice. A pre-trained DistilRoBERTa model that was trained on the Financial Phrasebank dataset, was used to generate aggregate time-decayed sentiment values and word embeddings, further processing was done to reduce dimensions using PCA so our models would not fall short to the curse of dimensionality. Extensive hyperparameter tuning was done using Bayesian optimisation techniques and an expanding window technique was used to ensure consistency in results of training, and showing how well the best models perform over time.

Transformer model results on test data, using max pooled embeddings passed through a linear layer.

Results from the models are largely inconclusive, likely due to three things. Firstly, the nature of financial news headlines being short in text and lacking context. Secondly, the Pre-Trained model having context of the Financial Phrasebank dataset, rather than a text corpus that better represents the supply and demand dynamics of the crude oil market. Thirdly, the small sample size of 159 release events. The lowest mean squared error transformers achieved was 5.16 with PCA-reduced max-pooled embeddings with a linear dense layer. The LSTM models underperformed, this is likely due to the nature of Transformers being able to handle contextual awareness better.

There was a lot of learning to be done with this project. The scope was extensive, and I made too many assumptions on how the data would perform. In hindsight, the typical “throw a neural network at it” approach did not work well, and time would be better spent exploring the dataset and running smaller trial tests, before batch throwing lots of tensors through a neural net, and brute-forcing hyper-parameter optimisation. On this note, the signal-to-noise ratio may have been too high, by processing the textual embeddings so many times, there was not conclusive testing applied to see how effective each signal being input was, and checking if the data was becoming less effective which each embedding function being applied. In fact, the neural network without any sentiment and embeddings outperformed others.

However, this research proposes a lot of promise, as a fine-tuned time-series deep neural network model with an augmented dataset would be expected to handle the task more effectively, mitigating weaknesses of a pre-trained model, utilising the strength of models built for time-series data and using the natural language expertise of transformer neural network models. In addition, US indices are much more sensitive to news, whereas commodities are more prone to long-term macroeconomic outlooks. This study demanded significant expertise in artificial intelligence, data science, finance and statistics, all fields which I am both passionate about and aim to pursue as I progress in my career.

Trading Copier

Trading Copier Thumbnail

The Telegram Trading copier was a project built using Python, where trading signals were extracted from various Telegram channels using the Telegram API, and translated into real trades with a take profit and stop loss, sending the packet of information to a broker with an API call, making a market or limit order.

It then keeps track of every trade using an SQL database and decides the next correct state for each trade using a websocket of streaming tick data, processing information for every tick for all instruments that currently have a pending order or open position using REST and Streaming APIs. Includes over 10000 lines of code and upwards of 10 active Telegram channels.I’ve also built a framework for this project to backtest signals using 5s historical candle data.

This served as my introduction to computational finance and was pivotal towards reinforcing a test-driven development mindset. Real trades mean real wins, as well as real losses. Extensive testing saved a considerable amount of potentially lost money by catching bugs in the code.