A Binance Bot that Trades Macd Crossovers
This bot is intended to be a Proof-of-concept. The developer will not be responsible for Any losses that are made are as a result of using this tool. Understand the risks involved and Only invest amounts you are willing to lose.
Feel free to contribute to the project and propose changes. I will review and accept the good PRs
/CoreFunctions.py - Support functions, such as code to calc MACD, RSI ect /TradingBoy.py - Core Bot Logics
This bot works by executing buy and sell trades, depending on whether or not a MACD crossover has occured on a cryptocurrency market. Be sure to read up on how MACD works and to look at the code in order to understand what is going on.
- python-binance
- numpy
- pandas <= 0.21
Replace the API_KEY and API_SECRET with your own generated keypair for your account.
Change the market you want to trade on by either changing the referenced market manually OR replacing the current market(TRX) with find and replace.
in order to run the bot indefinetely in the background without logging on linux use:
nohup python3 & TradingBot.py
to use in the background in any console environment
python3 & TradingBot.py
Short answer Yes ... and No. In a bear market where the symbol is in a down trend, it tends to lose. In a bull market where the symbol is in a general up trend, it tends to win. The bot can run indefinetely if needed, I ran one bot for well over 10 days on an amazon EC2 instance in seoul.