top of page

Get auto trading tips and tricks from our experts. Join our newsletter now

Thanks for submitting!

Only third party solutions allow auto trading on TradingView and IBKR

Only 3rd party solutions seem to work with IBKR and TradingView  www.tradingcode.net/tradingview/alert-auto-trade-services

This is all seems to be a potential TradingView bug

reddit.com/r/TradingView/comments/17ag1vp/alert_message_generates_double_quote_like_not/

Get your free trading tech book here  books2 – QUANTLABS.NET

This is the one I am thinking of going with which is based out of Finland. It is Windows based for only IBKR and Binacne support. It also only support stock and forex from IBKR. Other solution limit based on webhook or number of open positions.

traderelay.net

More will be posted here

More instructions to test TraderRelay with test Pine script for a test order

traderelay.net/setup-guide-ib/

I am still waiting for this Tradereplay to create a login user for me. As it was too long and show no trust to rely on, I am across this C#/VB .Net project from using email alerts with GMail.  Here are the updates. I have copied the entire description and comment section to preserve it here. I would also download the files ASAP before the potential of deletion.

Video tutorial from Elephant Trading channel https://www.youtube.com/watch?v=4kpkLjWAVKo

This guy could be a lifesaver if I am able to get working.  I will confirm if this is the case of not.

In this tutorial (more of a show and tell) I use TradingView alerts, created from strategies, to trigger automated trades in the International Brokers (IBKR) platform. I’ve adopted some code and samples (refer to links below), and will share the important snippets of my own code so you can implement into your own solution.

1. Create an IBKR Account 2. Download the IBKR platform here: https://www.interactivebrokers.com/en/trading/tws.php#tws-software 3. Download the IBKR API: https://www.interactivebrokers.com/en/trading/ib-api.php#api-software 4. Create TradingView alerts on your trading strategies, choose to send to your GMail account 5. Download and adjust the GMail API C# sample code to suit:

• Gmail API using .NET C# with Source C… https://www.youtube.com/watch?v=0fTSKtPBLUc 6. Create a new VB.Net (or C#) Windows Forms App solution in Visual Studio 7. Add the NUglify Nuget package 8. Use the IBKR API connect sample source code (and adjust to suit) here: https://www.dropbox.com/s/08cv7y2ryaxl7ng/IBKR%20Connect%20Class.vb?dl=0 and here: https://www.dropbox.com/s/omkje9arhn3… 9. Write your logic and test with TradingView and IBKR TWS – ALWAYS USE A PAPER ACCOUNT FOR TESTING!https://www.dropbox.com/s/omkje9arhn3emyq/ExecuteIBKR.vb?dl=0! 10. Like and share!

Note that large amounts of unread mails in your GMail account will lead to longer processing times with each GMail API call. Reduce the number of unread mails to speed up the process.

Stock market trading can lead to financial loss, you should know what you are doing and be careful when using automated trading systems. Always test using “paper accounts” first!

First comment update:

Pinned by Elephant Trading @elephanttrading3751

Hi All, I’ve updated the source code since this video was posted. The entire solution is now VB.Net, and the GMail connector is now all part of a single solution.

Here is the updated code: hhttps://www.dropbox.com/s/goxoojto353if4k/TDV-IBKR-Bot.zip?dl=0 (THIS IS THE COMPLETE VISUAL STUDIO SOLUTION PACKAGE) You’ll need to provide the correct paths, and email address in App.config, as well as your GMail ClientID. You would also have to adjust the logic in interpreting the results from the emails read. Mine is customised for my own strategies and would work only for my case, so you need to adjust to suit for your strategies in Form1.vb from line 313 up to line 1014.

Also, I’m using a component from spreadsheetgear – a paid component. So you may have to replace it with some other method for recording your trades or use a free spreadsheet component or similar.

The code is a bit messy and not very well refined. It’s a work in progress and may require some refinement, however, this is what I have currently. I’m using a video loop in the app to prevent the computer from going into sleep mode while checking for triggers.

Happy coding!

More from me with more updates:

If you are new to coding, this VB project above may be helpful but for me, it is more work than worthwhile. Note that you have only one email to identify TradingView with. I created a new GMail address for myself for all correspondence from TradingView instead of another email. You need to note that all alert email notification go to this same email. IF you have low volume of trading, GMail should be fine to use. It can easily consider the TradingView server as a spammer if Gmail get overwhelmed from the email sending source. You need to be aware of this. Just remember Gmail can be restricting for many reasons so you may want to go with a dedicated virtual private server email instead.

Note that this article may help you if you choose TradingView alert email notifications.

devdungeon.com/content/read-and-send-email-python

I have made some progress on my own Python script using my own VPS. Once complete I will offer some hints in a separate post and video

0 views0 comments

Comments


bottom of page