NexusFi: Find Your Edge


Home Menu

 





Automated trading integration Tradingview to Interactive Brokers


Discussion in Platforms and Indicators

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




 
Search this Thread

Automated trading integration Tradingview to Interactive Brokers

  #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?
Exit Strategy
NinjaTrader
NexusFi Journal Challenge - May 2024
Feedback and Announcements
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
45 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 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: 15 since Jan 2023
Thanks Given: 3
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:




Last Updated on August 2, 2023


© 2024 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