Runs AlgoBot for Trading Different Strategies on Eternal Python Script. Has capabilities of executing live trades through Alpaca API Trading brokerage account. Looking to implement backtesting capabilities in near future.
- Download the folder where ever you like and keep note of the file path (Ex.
C:/User/Documents/AlgoBot) - Open the folder in your preferred IDE and make sure all dependencies in
funcs.pyare available to import
by usingpip install input_library_namein your terminal. Ensure that Python 3.10+ is installed withpipfunctionality. - Once all required dependencies are installed (this can be confirmed by ensuring there are no errors in the project),
go ahead and open your terminal/command prompt and enter the directory which contains the AlgoBot src code - Type
streamlit run app.pywhile in the appropriate directory and the app should launch after asking for your email (no need to enter it)
- ticker symbol as shown on yahoo finance
- If the ticker trades on the US market, limit hours of script to US market time period
- if ticker is a crypto, timeshift back 4 hours to account for timezone
- if false, don't place trades but simulate, else must connect to Alpaca Brokerage Account
- if connecting to an Alpaca Brokerage Account, input your API Key
- if connecting to an Alpaca Brokerage Account, input your Secret Key
- if ticker symbol on yahoo finance and Alpaca are different, indicate symbol on Alpaca here for orders
- same inputs as yfinance interval parameter; Ex. '5y', '15m', '3mo', '1d'
- choose which trading algorithm you would like to trade on
- indicate whether you will be trading 'long', 'short', or 'both'
- number of shares to trade (make sure trading account has enough or orders will not execute)