kernc / backtesting.py

:mag_right: :chart_with_upwards_trend: :snake: :moneybag: Backtest trading strategies in Python.
https://kernc.github.io/backtesting.py/
GNU Affero General Public License v3.0
5.39k stars 1.05k forks source link

How to change it to run to a dIfferent stock other than GOOG? #1040

Closed josyjr25 closed 1 year ago

josyjr25 commented 1 year ago

Expected Behavior

Actual Behavior

Steps to Reproduce

1. 2. 3.


python code goes here

Additional info

eervin123 commented 1 year ago

just download a dataframe of a stock or asset. Here is a simple colab notebook showing you how to do it with yfinance though I highly recommend spending some time on youtube watching some tutorials. They will help with the learning curve. I posted several good youtube tutorials in the discussion forum a while back. Hopefully you can find them easily.

screenshot for downloading data

image

Notebook here https://colab.research.google.com/drive/1R1PwVESGQ5fuUNr1eaAQJVJ8hP_gBOKz?usp=sharing

kernc commented 1 year ago

I posted several good youtube tutorials in the discussion forum a while back. Hopefully you can find them easily.

They're here: https://github.com/kernc/backtesting.py/discussions/677

eervin123 commented 1 year ago

@josyjr25 there is gold in those tutorials. You absolutely started with the right backtesting library out there. It is simple and straightforward, it is blazing fast and the community is pretty darn friendly.