Skip to content

Converting TradingView PineScript Alerts into Interactive Brokers Orders

License

Notifications You must be signed in to change notification settings

mporenta/tradingview-webhooks-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Customized TradingView Webhooks Bot for Educational Materials

This repository is a customized version of robswc/tradingview-webhooks-bot, forked to meet specific requirements for educational materials.

TVWB

Tradingview-webhooks-bot (TVWB) is a small, Python-based framework that allows you to extend or implement your own logic using data from Tradingview's webhooks. TVWB is not a trading library, it's a framework for building your own trading logic.

The original TVWB can be found on GitHub at robswc/tradingview-webhooks-bot: a framework for trading with tradingview webhooks!

What is this repository?

This web application is based on TVWB, but has been customized to meet specific needs.

Redis Pub/Sub or Redis streams

It registers a single event and action, and then receives pre-defined TradingView messages, pushing them into Redis Pub/Sub or Redis streams. The application serves as a Redis Publisher or Redis Stream Adder.

TradingView messages are demultiplexed by the web application according to clientID (IBKR clientID), and are directed to different Redis channels or streams.

A custom PineScript library

TradingView's webhooks are generated by a custom PineScript library, PineTradingbotWebhook

Reading Order Tracking from Database

This web application can read TradingView webhook alerts or IBKR contracts (orders) from an SQL database, and display them on web pages. However, the SQL database is created by a separate application, TBOT, which is not part of this repository.

A Role on Tradingboat

In the image below, this web application is represented by the red box:

webapp-tvwb-flask

Installation

If you choose to install TradingBoat using Docker from https://github.com/PlusGenie/ib-gateway-docker, the customized TVWB application will be automatically installed within Docker containers.

If you are new to this customized TVWB, we recommend considering the Docker installation from https://github.com/PlusGenie/ib-gateway-docker to gain a comprehensive understanding of the application.

Demo

Additionally, this is a demo video showcasing the functionality of the web application.

Web application demo

WEBAPP-DEMO-720P.mov

Reference



About

Converting TradingView PineScript Alerts into Interactive Brokers Orders

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 61.1%
  • Python 36.2%
  • JavaScript 2.1%
  • CSS 0.6%