Using Artificial intelligence to Backtest TSLA
I created a bot that when you enter a stock name, will proceed to backtest that stock using a custom strategy with 2 years of historical stock data. Today I decided to try it out on Tesla (TSLA). Here is a simplified chart of the results.
Is this good? Not really, this is only a meager 2% gain in 2 years, but it is a good start to how I want my bot to perform. Of course, past performance is not indicative of future results.
Backtesting using a custom program is better due to many reasons, such as:
1. Custom strategies. You can build whatever strategy you want inside, fit it with stop losses and take profits, and boom, it will run and churn out results automatically.
2. Flexibility. You can change buying power, stocks to buy, you can even shove multiple stocks inside at one time and let the program run for a couple minutes, get coffee or go touch some grass, and come back to see the total profits.
It's amazing how you can get years of data in seconds using a simple python script.
Disclaimer: Investing carries risk. This is not financial advice. The above content should not be regarded as an offer, recommendation, or solicitation on acquiring or disposing of any financial products, any associated discussions, comments, or posts by author or other users should not be considered as such either. It is solely for general information purpose only, which does not consider your own investment objectives, financial situations or needs. TTM assumes no responsibility or warranty for the accuracy and completeness of the information, investors should do their own research and may seek professional advice before investing.
- diggydog·2022-05-03Well done. From which source you pull the data?2Report
- highhand·2022-05-03for Tesla, the bot is Musk. need to input data into Musk to churn out the results [Happy]1Report
- Desw·2022-05-25[强] [财迷] [强]LikeReport
- 点金胜手Max·2022-05-04ok1Report
- _J_R_·2022-05-04Nice1Report
- Magneto·2022-05-03Okay.LikeReport
- Skyjieni·2022-05-03GoodLikeReport
- Skyjieni·2022-05-03GoodLikeReport
- Prost·2022-05-03Nice1Report
- Skyjieni·2022-05-03YeahhyeahLikeReport
- GhordofWar·2022-05-03gr8LikeReport
- Popo123·2022-05-03Nice1Report
- CL_Wong·2022-05-03OkLikeReport
- GhordofWar·2022-05-03okLikeReport
- Skyjieni·2022-05-03Yeah1Report
- GhordofWar·2022-05-03good2Report
- GoodLife99·2022-05-03great!1Report
- AshlynnLee·2022-05-03[Like]LikeReport
- SG58·2022-05-16ok1Report