Automated-Trading-Program
Automated-Trading-Program copied to clipboard
Makes daytrades using the TD Ameritrade API
Links to TD Ameritrade Account and places daytrades based on hard-coded strategies with a pre-defined list of daytrading candidates.
To use the program:
- Create a brokerage account with TD Ameritrade
- Create a developer account with TD Ameritrade
- Enter client ID in redirect.py and Trader.py
- Generate key.pm and certificate.pm files for SSL, add the files to the repo, and enter the file names in redirect.py
- Generate refresh token on the TD Ameritrade developer website and enter the refresh token in Trader.py
- Enter account number in Trader.py
To do daily:
- Enter the EMAs in EMA.json from the current trading day before the next trading day
- Run the program before the market opens To run the program, type the command 'python Trader.py'