Skip to content

Converting TradingView PineScript Alerts into Interactive Brokers Orders

License

Notifications You must be signed in to change notification settings

PlusGenie/ib-gateway-docker

 
 

Repository files navigation

Introduction

This repository is a customized version of Interactive Brokers Gateway Docker , forked to meet specific requirements for educational materials.

About Interactive Brokers Gateway Docker

Interactive Brokers Gateway Docker is a docker image that enables the running of the Interactive Brokers Gateway Application without any human interaction on a docker container.

The original project can be found on GitHub at Interactive Brokers Gateway Docker

About this Repository

This repository allows for the quick launch of TradingBoat using Docker. TradingBoat is a trading platform that receives alert messages via webhooks from TradingView and translates these into orders for Interactive Brokers. TradingBoat utilizes NGROK, Flask (TVWB), Redis, TBOT, and the IB Gateway as depicted in the images below.

Some of the environment variables used for the Docker configuration are inherited from the Interactive Brokers Gateway Docker project. Additionally, this repository introduces its own environment variables that control other components such as NGROK, Flask, Redis, and TBOT.

TradingBoat-Docker

 

How to Run Tbot on TradingBoat Docker

How to Build Docker

Clone the repository:

git clone https://github.com/PlusGenie/ib-gateway-docker

Copy dotenv into the root directory:

cd ib-gateway-docker
cp stable/tbot/dotenv .env

Open the dotenv file using a text editor and update the values of:

TWS_USERID: The account name used to log in to TWS / IB Gateway

TWS_PASSWORD: The password used to log in to TWS / IB Gateway

VNC_SERVER_PASSWORD

NGROK_AUTH: Authentication Token for NGROK as needed.

Once these steps are complete, you can run Tbot on Tradingboat Docker using the following command:

docker-compose up --build

After the docker starts, you can use two interfaces. Firstly, use VNC Viewer to access IB Gateway. Secondly, use the web application to track orders from TradingView to Interactive Brokers.

How to Access IB Gateway through VNC server

Please use VNC Viewer to access the IB Gateway via the VNC server.

VNC Server: 127.0.0.1:5900

VNC_Viewer

VNC_Viwer_IB

How to Access Web App and Ngrok

After running docker-compose successfully, you can access the web application using a browser. The Dockerfile pulls the source of the web application from https://github.com/PlusGenie/tradingview-webhooks-bot .

Then go to http://127.0.0.1:5000

WEBAPP_TVWB_TBOT_DECODER

Demo

Here's how to launch TBOT on TradingBoat using Docker in just 5 minutes. Watch the demo on YouTube.

Reference



About

Converting TradingView PineScript Alerts into Interactive Brokers Orders

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 60.7%
  • Shell 39.3%