This bot is designed to buy bitcoin every time Elon musk tweets about bitcoin with the following parameters:
The bot will open a buy position on bitcoin every time Elon mentions bitcoin in his tweet
Take profit is set to 10% and stop loss to 5%
The bitcoin bot will not place another trade if there is already an active trade (can be adjusted)
The bot uses the Tweepy API and a Twitter developer account that you will need access to, as well as a MetaTrader 5 account.
What are your thoughts on this, would you try it?
Guide: https://www.cryptomaton.org/2021/03/21/program-a-trading-bot-to-buy-bitcoin-when-musk-tweets-about-it/
GitHub repo: https://github.com/CyberPunkMetalHead/bitcoin-bot-buy-if-elon-tweets
UPDATE
Many of you have suggested to add a function to detect the Tweet's sentiment to that the bot does not buy bitcoin if Elon's Tweet contains a negative sentiment about it.
I went and looked for an API that can be integrated in my project and found one that works pretty well.
The Bot will now only buy if the Tweet where bitcoin is mentioned has a positive sentiment! Here are the new resources:
Article and Guide: https://www.cryptomaton.org/2021/03/25/program-a-trading-bot-to-buy-bitcoin-when-musk-tweets-about-it-part-2/
GitHub Repo: https://github.com/CyberPunkMetalHead/bitcoin-bot-buy-if-elon-tweets/tree/buy-crypto-if-elon-mentions-crypto-positively