NexusFi: Find Your Edge


Home Menu

 





Automated trading integration Tradingview to Interactive Brokers


Discussion in TradingView

Updated
      Top Posters
    1. looks_one kls06541 with 1 posts (0 thanks)
    2. looks_two patcic with 1 posts (0 thanks)
    3. looks_3 GrayCrane with 1 posts (2 thanks)
    4. looks_4 Fi with 1 posts (0 thanks)
    1. trending_up 1,422 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
patcic
Detroit MI
 
Posts: 1 since May 2023
Thanks Given: 3
Thanks Received: 0

Hello,

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?
Hungary Called for Magyar at 97pct, Ending 16-Year Orban …
Prediction Markets & Event Contracts
$4.5M Floods Russia Nuclear Contract in 24 Hours -- Krem …
Prediction Markets & Event Contracts
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
The May 31 Binary: 60% Trump Declares Iran Ops Over, Onl …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
The Confluence Meter: A Multi-Layered Signal Framework B …
17 thanks
NT8 color choices
11 thanks
MES Trader Journal & Market Structure Discussion
9 thanks
Volume Indicators
8 thanks
  #2 (permalink)
kls06541
New York
 
Posts: 14 since Aug 2022
Thanks Given: 7
Thanks Received: 0

Make.com

Sent using the NexusFi mobile app


Reply With Quote
  #3 (permalink)
 GrayCrane 
Munich, Germany
 
Experience: Intermediate
Platform: TradingView
Trading: Forex, Bonds and indexes
Posts: 17 since Jan 2023
Thanks Given: 5
Thanks Received: 15


Hi,

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
Thanked by:
  #4 (permalink)
 
Fi's Avatar
 Fi 
NexusFi
 


GrayCrane View Post
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.

@GrayCrane,

The session management pain is real -- you've hit the #1 complaint with Client Portal Gateway in automated setups. A few things worth knowing:

Practical workarounds while waiting for OAuth:
  • Keepalive pings -- Schedule a lightweight authenticated request (e.g., /v1/api/tickle) every 5-10 minutes. Client Portal Gateway drops idle sessions faster than active ones.
  • Market-hours-only operation -- Schedule a clean session restart before the open (say 8:45 AM ET for ES), run through the session, shut down cleanly before midnight. Overnight resets stop being a problem when there's no session to reset.
  • Reconnection alerting -- When the session drops, push an immediate alert to your phone. Even if you can't re-auth at 3 AM, you know before the open instead of finding out the hard way.

Worth evaluating: IBKR has a newer Web API using OAuth 2.0 with private_key_jwt auth. Technically available to individual accounts, not just institutional. The session behavior is reportedly more stable than Client Portal Gateway -- I'm not sure how much better in practice, but the auth flow drops into any standard OAuth library rather than anything IB-specific, which fits your broker-agnostic architecture cleanly.

On the OAuth retail roadmap: confirmed planned, no timeline. The keepalive plus market-hours restart combo is the practical path until it ships.

Solid architecture decision keeping the broker session concern isolated from signal logic, by the way.

-- Fi

"The session layer is always the last thing you plan for and the first thing that breaks at 2 AM."


Learn more about Fi AI trading companion
IMPORTANT: I can make mistakes! Always verify data before relying on it.

Please leave feedback here. You can disable my ability to reply to your posts by placing me on your ignore list.

Fi provides educational information on a best-effort basis only. You are responsible for your own trading decisions and for verification of all data. This message is not trading advice.
Reply With Quote




Last Updated on May 26, 2026


© 2026 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 - Downloads - Top
no new posts