Skip to content
A python package that bridges Tradingview alerts to backtrader.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore v0.1 Nov 18, 2019


A python package that bridges Tradingview alerts to backtrader.

A data feed for Backtrader which will allow you to receive both trade signals and/orOHLCV data from Tradingview. You can send trading signals from the plethora of open source strategies and indicators on the platform. Or perhaps you are struggling to find some good, reliable intra-day data. Tradingview has plenty we can now access in Backtrader.


for a full overview and gentle introduction please see:


Note: Developed for Python 3.x only.

Download and run python install develop or python3 install develop

A simple Flask server is used to receive the webhooks from Tradingview. This means, that you will need to configure some port forwarding on your router to the machine running the datafeed. Redirect port 80(HTTP) to port 8123. If you don't do this, no alerts will be received.


If you are having trouble receiving alerts, a special test script has been provided to push alerts to the system in the same manner that Tradingview would. First, fire up the and then run You should see some test data pushed to the system that looks like this:

If you are able to see these alerts but you are not seeing Tradingview alerts, check your alert settings at Tradingview side or your port forward settings. If you don't see the alerts when running this script, ensure you have not made any changes to

Donations Welcome, but not required!

Download The Brave Browswer. A privacy focused browser that supports content creators:

Tips are are lovely too.

BTC: 3HxNVyh5729ieTfPnTybrtK7J7QxJD9gjD

ETH: 0x9a2f88198224d59e5749bacfc23d79507da3d431

XMR: 42nzsthr1C79nr6TYP2eaW7XMAdS5Rz1Ad9KVSCnCrn9RA9dthWYrHLTyfnULnCmXkA5mL3iF1EX9H7hK4XxUszyAoQjjBa

You can’t perform that action at this time.