- You will need to have an Autoview webhook ready. If you do not yet have it configured, please refer to this guide: https://use.autoview.com/hc/en-us/articles/17697285690765-Web-Platform-Setup-Guide.
- You will need an openAI chatGPT api key: (Default is GPT-4. You can change the version of chatGPT in the main.py) https://platform.openai.com/account/api-keys
- You will need a crypto.com account and api keys. We recommend creating a sub account to keep this system isolated for recording purposes.
The AI Synergy Trading System is an innovative, Python-based tool that marries the power of Artificial Intelligence with traditional technical analysis to make cryptocurrency trading recommendations. This system is designed to run locally on your computer and utilizes market data alongside the OpenAI GPT language model to provide trade recommendations.
Here's a quick walkthrough of the process:
Data Collection: The
create_indicators_eth.pyscript pulls market data and uses that data to generate various trading indicators. This information is saved in the
Account Overview: The
account_summary.pyscript provides a function for summarizing the state of your trading account. This script doesn't need to be run separately, but it is used by the main script.
Trading Recommendations: Finally, the
main.pyscript guides you through a feedback conversation with the GPT language model from OpenAI. By utilizing the data from
ta_data.csvand your account summary, it provides you with trading recommendations.
- Flow: The first thing it will do is use the data provided and generate a trade recommendation. If it does not recommend a trade, it will wait 5 minutes and repeat until it does. Once a signal has been received, it will await your feedback once the trade has closed. It will then consider your feedback when recommending its next trade. The feedback loop runs indefinitely.
Please note, the scripts need your credentials for crypto.com and OpenAI to function. These should be securely placed in a .env file.
Remember, this tool is meant to be a starting point for your own trading system. The goal is to provide a structure and stimulate ideas that you can evolve upon based on your trading style and risk appetite.
This guide will walk you through the process of installing and setting up the necessary files and environment for your AI Synergy Trading System. We assume you are using either Mac or Windows and have no prior experience with Python or command prompt.
Step 1: Installing Python
Python is the programming language we'll use to run our scripts. To install Python:
- Go to the official Python download page at https://www.python.org/downloads/
- Download the latest version of Python.
- Run the installer, make sure to check the box "Add Python to PATH" before clicking on Install Now.
Step 2: Installing Necessary Libraries
These are the libraries our Python scripts use. To install them, type each command below in the command prompt (Windows) or terminal (Mac) and hit enter:
pip install openai requests pandas python-dotenv tqdm
Step 3: Downloading the Scripts
You can click this download link to get a zip containing all the required files.
Ensure all the Python scripts and the
.env file remain in the same folder.
Step 4: Configuring .env File
Open the .env file with any text editor. Enter your credentials for crypto.com and OpenAI ChatGPT. The format should be:
cryptocom_api_key = "your_crypto_com_api_key"
cryptocom_api_secret = "your_crypto_com_secret_key"
Step 5: Running the Scripts
First, navigate to the folder where your scripts are located in the command prompt (Windows) or terminal (Mac). You can do this using the
cd (change directory) command. For example, if your scripts are in a folder called "trading" on your desktop, you would type:
Alternatively, you can open the folder that contains the files and type `cmd` in the path bar and press enter to open command prompt at this location.
Then, you need to run the scripts in the following order in their own command prompt windows:
python create_indicators_eth.py- This will create the
ta_data.csvfile with market data and indicators, leaving this running will update the data every 5 minutes.
python main.py- This will start the trading bot, which uses
Congratulations! You should now have your AI Synergy Trading System running locally. Happy trading!
Please remember, the AI Synergy Trading System is intended to serve as a starting point and inspiration for your own trading bot development. Always do your own research and make your own investment decisions.