Skip to content

forbesjon2/tvb

Repository files navigation

About

The purpose of this was, instead of learning pinescript & wrtiting my own script, scraping & recording the performance of some of the many public scripts listed on tradingview. The goal is to find a script that can provide relatively accurate & profitable stock alerts based on its past performance. I ended up with some decent candidates but the ability for scripts to repaint made things more difficult in finding whether or not a particular script should work or not. I stopped near the end where I was going to manually track some scripts and measure them up against the backtests.

about allScripts.py Tradingview has a feature where people can upload their own buy / sell strategies written in pinescript. This code can scrape the individual performance metrics (see the sequential up/down report section) for the scripts listed on a search page with only a part of the URL path provided in a list in allScripts.py.

about main.py Once you find a few good candidates in the results from allScripts.py (filter out the fake ones, read the comments), the next step is to get a list of stocks that you want to test this against. A good script should perform well regardless of the ticker / time or well in some & decent in others. The list I used is in zacks_custom_screen.csv. This is what it's getting the performance data from.

Getting started

download python

1. Add chromedriver to path

Download chromedriver

https://chromedriver.storage.googleapis.com/index.html?path=80.0.3987.106/

once downloaded, place it in the parent directory

Run command

export PYTHONPATH="../"

2. add username and password where directed in run.py

3. Run the following command

pip3 install -r requirements.txt

4. run the program

python3 run.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages