NexusFi: Find Your Edge

Home Menu


Automated trading integration Tradingview to Interactive Brokers

Discussion in Platforms and Indicators

    1. trending_up 548 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 2 posts
    2. attach_file 0 attachments

Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now, It is Free
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.

-- Big Mike, Site Administrator

Available coupon codes for premium Elite Membership:
  • If you are a researcher and pay attention to details, you qualify for our 10% discount - "CHARTIST"
  • If you are a veteran or in public/community service, you qualify for 15% discount - "PURPLECHART"
  • If you are 60+ years old, you qualify for our 20% discount - "WISDOM"
  • Discounts are based on the honor system. If we can't trust you to do the right thing, please move along.

(If you already have an account, login at the top of the page)

Search this Thread

Automated trading integration Tradingview to Interactive Brokers

(login for full post details)
  #1 (permalink)
Detroit MI
Posts: 1 since May 2023
Thanks Given: 3
Thanks Received: 0


I am trying to have trade signals created by my Tradingview indicator/bot automatically entered for trade to IBKR. I have confirmed I can manually enter trades, can anyone help me with a webhook or service to make this work? I can't program and willing to pay someone to write the code if needed.

Thank you in advance for your help.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ninzaco snow eagle trading
Gabriel Grammatidis
Trading Reviews and Vendors
Resources to help learn about diversification of algo po …
BollingerPro discussion
The Elite Circle
Can Dump be caught with Algo Trade
Crypto Futures

(login for full post details)
  #2 (permalink)
New York
Posts: 14 since Aug 2022
Thanks Given: 7
Thanks Received: 0

Sent using the mobile app

Reply With Quote
(login for full post details)
  #3 (permalink)
Munich, Germany
Experience: Intermediate
Platform: TradingView
Trading: Forex, Bonds and indexes
Posts: 11 since Jan 2023
Thanks Given: 0
Thanks Received: 6


I just finished implementing my solution and will go into testing mode in the next weeks. I am a software engineer and the solution is programmed by me.

Below are a few details but bare in mind the context: I'm an individual trader not an institutional trader (matters for the solution on the IB side)

Here is the part of the implementation:
- TradingView will send a request to an API hosted in the cloud. The handler of the request performs various validations and if all is good enters a message in a queue
- the queue is processed regularly and if all conditions are met (units, risk, orders or positions already open on instrument etc) an order is being sent to IB

The biggest problem in all this is actually maintaining a valid session with IB on the back-end side. They are behind current standards when it comes to web technologies.
My solution uses the client portal gateway which is rather unstable and they reset the session more often than the documentation says they would.
The login for the session is paired with a two factor authentication so if the session is reset you need to approve the session with your phone. The TFA can't be turned off.

However, often times the reset happens during night and there's nothing to be done there as you can't approve the session during sleep. Without a valid session orders can't be placed.

For institutional traders the protocol used for the session is OAuth and this allows for easier session management but I'm assuming you need to have a company. As far as I know TFA is also optional for institutional traders but I would NOT advice to turn it off.
I have been told by customer service that an OAuth roll-out for individual traders is planned but the road map is not clear.

An alternative would be to implement a different solution based on the IBGateway product but this involves coding very IB centric code which for me is not an option as I want my system to be as much as possible broker agnostic.

If you have any questions, feel free to post a reply.

Best of luck!

Reply With Quote
The following user says Thank You to discountedbugs for this post:

NexusFi Trading Community Platforms and Indicators > Automated trading integration Tradingview to Interactive Brokers

Last Updated on August 2, 2023

© 2023 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts