Google guy builds bot that earns money from Trump tweets

Sometimes it's that simple
 By 
Stan Schroeder
 on 
Original image replaced with Mashable logo
Original image has been replaced. Credit: Mashable

President Donald Trump spends a lot of time on Twitter, and he often tweets about publicly traded companies. These tweets often cause the stock prices of these companies to rise and fall sharply — for example, when Trump tweeted negatively about Lockheed Martin, the company's stock price plummeted.

Now, Max Braun, the head of software for Google X's Robotics division, decided to put Trump's itchy Twitter finger to good use: He built a fully automated bot that analyzes Trump's tweets and buys or shorts a company stock depending on whether Trump praised or disparaged it.

Amazingly, this actually works. Trump tweets about companies a lot, and the market appears to be quite predictable when he does. As you can see in Braun's table below (which is a simulation, not an actual list of trades), the bot is earning money more often than not.

Original image replaced with Mashable logo
Original image has been replaced. Credit: Mashable

"You’ll see that it sometimes misses a company or gets a sentiment wrong, but it also gets it right a lot. The trading strategy sometimes leaves you up and sometimes down," Braun wrote in a blog post Monday, warning that anyone who decides to use this for profit could also end up losing money (which is why some professionals are wary of using similar tactics).

Interestingly, Braun's not the first to build an automated trading system based on Trump tweets; advertising agency T3 has a similar project, though their bot only shorts stocks.

Just like T3, Braun says he's donating any profits he makes off this project to charity; in his case, it's the American Civil Liberties Union, the National Resources Defense Council and Planned Parenthood.

Amazingly, Braun claims he coded the first working version of the bot on a single plane ride. He invites developers to improve on his code, which is available on GitHub.

If you just wanna check how Braun's bot is doing, you can follow its trading recommendations on Twitter.

via The Next Web

Stan Schroeder
Stan Schroeder
Senior Editor

Stan is a Senior Editor at Mashable, where he has worked since 2007. He's got more battery-powered gadgets and band t-shirts than you. He writes about the next groundbreaking thing. Typically, this is a phone, a coin, or a car. His ultimate goal is to know something about everything.

Mashable Potato

Recommended For You
10 of the coolest and weirdest 'Pokémon Pokopia' builds we've seen so far
A house in Pokopia with a bunch of Pokémon in it

Reddit addresses bot problems, ID verification
Reddit logo

I read this website's free AI-written YA novels so you don't have to
Three AI-generated novel covers for 'the Starless Crown,' 'the Probability Garden,' and 'the Unraveling of Whispers.'

How I make six figures on OnlyFans without taking my clothes off
woman sitting on top of a pile of cash getting filmed with a phone with an onlyfans sticker

What's the average adult creator's salary?
xxx neon sign

More in Life
How to watch Chelsea vs. Port Vale online for free
Alejandro Garnacho of Chelsea reacts

How to watch 'Wuthering Heights' at home: Margot Robbie and Jacob Elordi's controversial romance now streaming
Margot Robbie and Jacob Elordi embracing in still from "Wuthering Heights"

How to watch New York Islanders vs. Philadelphia Flyers online for free
Matthew Schaefer of the New York Islanders warms up

How to watch Mexico vs. Belgium online for free
Israel Reyes of Mexico reacts

How to watch Brazil vs. Croatia online for free
Vinicius Junior #10 of Brazil leaves

Trending on Mashable
NYT Connections hints today: Clues, answers for April 4, 2026
Connections game on a smartphone

Wordle today: Answer, hints for April 4, 2026
Wordle game on a smartphone

NYT Connections hints today: Clues, answers for April 3, 2026
Connections game on a smartphone

NYT Strands hints, answers for April 4, 2026
A game being played on a smartphone.

The biggest stories of the day delivered to your inbox.
These newsletters may contain advertising, deals, or affiliate links. By clicking Subscribe, you confirm you are 16+ and agree to our Terms of Use and Privacy Policy.
Thanks for signing up. See you at your inbox!