MOGEMA - An AlgoTrading bot using Machine Learning Algorithm
Introduction
Hello Folks, here I am going to introduce MOGEMA V4 one of my machine learning bots that predicts the future value of cryptocurrencies using a machine learning algorithm and executes the trade accordingly.
Algorithm
Applied the Linear Regression model one of the popular Machine learning models which predict the closing price of the cryptocurrency for the next specified interval time. And execute the trade with calculated Target and Stoploss.
Requirements
Here I am using Binance exchange for trading cryptos. To execute a trade using python script, you need to generate API Key and Secret Key which fetch the real-time price of Cryptocurrency.
Project Structure
This was the Project structure of Mogema V4. I'll explain the functions of each file one by one,
- Config.py - which stores the Authentic Information like Auth Key & Secret Key
- LRAlgo.py - which performs the functions of creating a dataset to train our ML model and also predicts the next closing price and generates the buy signals with calculated Target and Stoploss to exit the position.
- Dataset - It is a directory to store all generated datasets in CSV format.
- Scanner.py - this script scans all USDT pairs(Because here we only trade USDT Pairs) which traded on the Binance exchange.
- TellNotify.py - this script notifies all executed trades, total Profit & Loss, and current position through Telegram Messenger.
- main.py - This was our bot MOGEMA which manages all the above scripts and executes the trade Algorithmically.
- main0.py - It is the same as main.py but used for paper trading and backtesting, which is the bot trades with Virtual Money, not a real penny.
Config.py
IRAlgo.py
This first part of the IRAlgo.py was used to generate and store the datasets in CSV format which is used to train the ML model.
This part predicts the next closing price of a crypto token and generates a signal of whether to enter a trade or not.
The Signal generation code snippet was hidden
Scanner.py
Which Scans the Top Performing Cryptos of last 24 hours
TelNotifier.py
In Order to get All executed trades, total Profit & Loss, and Current position from our Telegram Messenger we need to configure the Telegram Bot API key which was created by the bot father in telegram, and your user id.
Result
Here I'm running this bot in Paper Trading mode on my Terminal
Here you can see the bot go through each crypto and predicts its next closing price.
Limited profit with Cutting loss
Here you can see our first trade was cutting loss which means the loss avoided by the Algorithmic feature of our bot,
MOGEMA
Stands for
Money Generating Machine
Outra
If you want the entire source code of this project, ask me the price through pradeepmprmpr@gmail.com
That's it guys, I hope you got something
Do Support
Github: https://github.com/MPradeepRaj02
Made with 💙 by Fauceter
Comments
Post a Comment