Bitcoin Forum
May 05, 2024, 09:46:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Trading Discussion / I coded a bot that buys bitcoin every time Elon Musk tweets about bitcoin and op on: March 22, 2021, 01:25:16 PM
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
2  Economy / Trading Discussion / I'm sharing the code of my first crypto trading bot, so you can build your own on: March 16, 2021, 12:37:28 AM
The bot will be trading Bitcoin automatically if the price has increased by more than 3% in the last 10 minutes with a stop loss of 5% and take profit of 8%.
Before deciding on 3% increase and a 10 minute timeframe, I have been testing different variations and it seems that 3% in 10 minutes gives the optimal chance of predicting a strong bullish movement (at least for the next few hours)

**Use Cases*
Use with a demo account - use on a live account at your own risk
Use to test different crypto markets


**Considerations**
The bot can be adjusted to work with multiple cryptos at once.
It currently requires a viable exit strategy, I have tested with both fixed and trailling stop losses and the bot has ben underperforming on bitcoin, however it closed a profitable week on XLM.

Article and guide: https://www.cryptomaton.org/2021/03/14/how-to-code-your-own-crypto-trading-bot-python/

Github Repo: https://github.com/CyberPunkMetalHead/Bitcoin-Surge-Trading-Alpha

Good luck and let me know if you have any questions!
Quote ReplyReport Edit
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!