A basic trading bot in Python using Mean Reversion.
The strategy will buy and sell 1 share of VOO depending on Bollinger Bands.
Full tutorial on medium: https://ryankemmer.medium.com/
- Clone this repository
git clone [email protected]:ryankemmer/MeanReversionTradingBot.git
- Change current directory to the repo folder
cd MeanReversionTradingBot
- Within the folder, create a file called "auth_params.py, that specifies your TDA API KEY, account number, and callback url like so.
API_KEY = <Your API Key> + '@AMER.OAUTHAP'
ACCT_NUMBER = <Your TDA Account Number>
CALLBACK_URL = <Your Callback URL>
-
Update the scheduler to run during market hours in your time zone.
-
Start running the code
python main.py