TradingView based strategy automation with Capitalise.ai (2024)

Shahar Rabin

  • October 11, 2021

TradingView based strategy automation with Capitalise.ai (1)

Disclaimer

The examples presented in this article are only to be regarded as a technical demonstration when used with the trading system. Accordingly, these examples should not in any way be construed as a recommendation for any type of trading strategy and they do not constitute any form of advice as to the advisability of investing by the use of any trading strategy. Any Investor who uses a trading strategy must build a trading strategy on the basis of independent testing and according to their specific requirements and needs.

Did you know you can automate any trading scenario from TradingView using zero coding?
Our latest addition to the code-free trading automation suite, enables traders with no technical background to easily create automated trading strategies based on TradingView Alerts!

This means a new world of possibilities, as EVERYTHING in TradingView can now be used to test and automate your trading plan using everyday English.

First, what is a TradingView Alert?

TradingView allows the creation of alerts based on any of the chart’s visual elements; lines, prices, indicators, but also sending alerts via the Pine script.
TradingView Webhook is a way of sending a message to a third party when an alert has been triggered.

How does a TradingView alert webhook works?

With any TradingView alert, you can select ‘Webhook URL’ under ‘Alert Actions’.

TradingView based strategy automation with Capitalise.ai (2)

Once selecting this option, you need to provide the webhook URL and message.
The webhook URL is the address to which the alert will be sent. The message is the content of the alert.

How to add a TradingView alert to your automated trading strategy on Capitalise.ai?

On the Capitalise.ai wizard, add the condition ‘Webhook’ to your trading strategy:

TradingView based strategy automation with Capitalise.ai (3)

Once you write ‘Webhook’, you will receive a URL & unique message that refers solely to this webhook condition. Copy them into the required fields on the trading-view alert interface when defining the webhook. Now, when the alert triggers, your strategy condition related to this webhook will be triggered.

Let’s demonstrate with a VWAP trading strategy as an example

VWAP (volume-weighted average price) is a technical indicator used at times when looking to buy into the market below the markets’ average price, and sell above the markets’ average price. Using this logic, we can consider the following conditions as our trading strategy:

Entry

  1. I will go long (buy) each time the price trades below the lower band of the VWAP indicator.
  2. I would seek an entry after the first hour of the trading session, when the price settles, and up until 15:00 eastern time

Exit

  1. I want to close the trade when the price crosses above the higher VWAP band or at a stop-loss of 5%
  2. A trade will not remain open after the market official trading session

This is how the trade would look like on TradingView Charts:

TradingView based strategy automation with Capitalise.ai (4)

In order to automate this trading strategy, we should follow these steps:

  1. Set the appropriate entry strategy on the Capitalise.ai wizard:

    “Between 10:30 AM and 15:00 eastern time if Webhook triggers buy 30 MRNA”

  2. Click the word Webhook and then copy the URL and Message (MSG1)
  3. TradingView based strategy automation with Capitalise.ai (5)
  4. Open TradingView and setup a TradingView alert:
    • Add the VWAP indicator to your chart of choice
    • Open the Alert menu and set the trading-view alert:

      Asset = MRNA
      Crossing Down
      VWAP, Lower Band

      TradingView based strategy automation with Capitalise.ai (6)

    • Under “Options” choose “Once per bar” as we want it to trigger more than once (also in future bars) and ultimately create multiple trades over time. At the same time, we don’t wish to send more than 1 alert per bar.
      It is better if we choose a chart time frame that is smaller than 1 hour.
      TradingView based strategy automation with Capitalise.ai (7)
    • Under Alert Actions choose “Webhook URL” and paste the address you copied on step 3.
      TradingView based strategy automation with Capitalise.ai (8)
    • On the message section, paste MSG1 you copied on step 3
      TradingView based strategy automation with Capitalise.ai (9)
    • Click “Create”
  5. Set the appropriate entry strategy on the Capitalise.ai wizard:

    “Close position if Webhook triggers or at loss of 5% or at 15:59 eastern time”

  6. Copy the URL and message (MSG2)
  7. Open TradingView and setup the exit Webhook trigger – follow the same process but now for when price crosses above the upper VWAP.
  8. Paste the URL and MSG2 under the Webhook URL section
    TradingView based strategy automation with Capitalise.ai (10)
  9. Go back to Capitalise.ai, and set the strategy to run in loop mode (so it can continuously enter and exit the trade automatically)
  10. Click ‘Next’ and verify your strategy on the confirmation page
  11. Test your strategy risk-free using Simulation mode, or run it live and let Capitalise.ai execute your trades directly via your trading account.

Notes:

  • While a strategy is on the entry phase, any webhook message received which belongs to the exit will be ignored. And vice versa, while a strategy is on the exit phase, any webhook message received which belongs to the entry will be ignored
  • Whenever a message is received for a certain webhook, that webhook condition will remain triggered until the entire strategy moves to the next phase (From entry to exit and vice versa)

Controlling multiple strategies from one alert

The Webhook is a powerful feature that opens up many opportunities, one of those is the option to trigger multiple automated strategies from a single alert. This option can be used to:

  1. Trigger multiple conditions in multiple strategies I own:
    For example, I can manage 2 identical strategies, one could be connected to my Binance account and the second one connected to my Interactive Brokers account. This way I can create a scenario that once triggered will buy 0.5 BTC/USDT in my Binance account and at the same time, buy 5,000 USD of GBTC in my Interactive Brokers account.
  2. Risk management :
    We can close all of our positions across all of our accounts with a single trigger.
  3. Managing trading for family and friends:
    If your friend provides you with a webhook ID from his Capitalise.ai strategy, you can manage his trading by sending a TradingView alert to this webhook.
    And you can do that to multiple parties at the same time. Importantly, your friends keep full control of trade size, switching between simulated and real trading, and whether to keep running or stopping this automated managed strategy.

How does it work?

You see, the message we send is of a JSON type, in this JSON we send a list of IDs, This list can (and most times) be with just 1 ID, or, it can have multiple IDs.

  • A message containing 1 ID:
    {“alertId”: “3a89741a-2cea-49c9-a4ce-aef2840738c5”}
  • A message containing multiple IDs:
    {“alertIds”: [“38bb324b-4c2c-4582-b4be-bfecf534eda8”, “d2425ea0-e1b8-4554-a8e0-f2c658899283″,”3a89741a-2cea-49c9-a4ce-aef2840738c5”]}

When sending multiple Webhook IDs, we can trigger many conditions at the same time.

To summarize

There are several ways in which we can use TradingView alerts for trading automation:

  • On the position Entry stage
  • On the position Exit stage
  • On both stages
  • Combining it with other conditions
  • Building scenarios with multiple Webhooks
  • Creating an entry and exit stages that only have webhook as a condition – by this, you are basically using Capitalise.ai connectivity to multiple brokers as an execution agent while managing the execution timing all by yourself.

Automate your TradingView alerts – Try it

TradingView based automation open a world of opportunities. Signup to Capitalise.ai for free via our partner brokers and exchanges and try it!

Get Started With Capitalise.ai >>

I'm an expert in algorithmic trading and automation, particularly in the context of using TradingView and Capitalise.ai. My depth of knowledge in this area is demonstrated by my understanding of the concepts presented in the article by Shahar Rabin, dated October 11, 2021.

The article focuses on automating trading scenarios from TradingView using zero coding, specifically through the integration with Capitalise.ai. The key concepts covered include:

  1. TradingView Alerts and Webhooks:

    • TradingView allows the creation of alerts based on various chart visual elements, including lines, prices, indicators, and Pine script.
    • A TradingView Webhook is a mechanism for sending a message to a third party when a TradingView alert is triggered.
    • The alert's Webhook URL and message are essential components for setting up the communication with external systems.
  2. Capitalise.ai Integration:

    • Capitalise.ai provides a code-free trading automation suite that allows traders with no technical background to create automated trading strategies based on TradingView Alerts.
    • The article details how to add a TradingView alert to a trading strategy on Capitalise.ai by incorporating the Webhook condition.
  3. Automating a VWAP Trading Strategy:

    • The article demonstrates how to automate a VWAP (Volume-Weighted Average Price) trading strategy using TradingView and Capitalise.ai.
    • Specific conditions for entry and exit are defined, such as buying when the price is below the lower VWAP band and selling when the price crosses above the upper VWAP band or reaches a 5% stop-loss.
  4. Setting Up Webhooks for Entry and Exit:

    • Detailed steps are provided for setting up TradingView alerts with Webhooks for both entry and exit conditions.
    • The article emphasizes the importance of copying the Webhook URL and message, which are then used in Capitalise.ai to link the strategy.
  5. Controlling Multiple Strategies with Webhooks:

    • The Webhook feature is highlighted as a powerful tool for triggering multiple automated strategies from a single alert.
    • Use cases include managing conditions in different strategies, implementing risk management across accounts, and controlling trading for family and friends.
  6. JSON Messages and Multiple Webhook IDs:

    • The article explains the structure of JSON messages sent through Webhooks, including examples with single and multiple alert IDs.
    • Multiple Webhook IDs enable the triggering of multiple conditions simultaneously, providing flexibility in trading automation.
  7. Summary and Opportunities:

    • The article concludes by summarizing the various ways TradingView alerts can be used for trading automation, including entry and exit stages, risk management, and combining with other conditions.
    • It encourages readers to explore the opportunities of TradingView-based automation through Capitalise.ai.

In summary, the article provides a comprehensive guide for traders to automate their strategies using TradingView alerts and Capitalise.ai, showcasing practical examples like the VWAP trading strategy and highlighting the flexibility and power of Webhooks in trading automation.

TradingView based strategy automation with Capitalise.ai (2024)

FAQs

How to connect TradingView to Capitalise AI? ›

In order to automate this trading strategy, we should follow these steps:
  1. Set the appropriate entry strategy on the Capitalise.ai wizard: ...
  2. Click the word Webhook and then copy the URL and Message (MSG1) ...
  3. Open TradingView and setup the Webhook trigger: ...
  4. Set the appropriate exit strategy on the Capitalise.ai wizard:

Can you automate TradingView strategy? ›

Automating the Execution: Once your strategy is ready and tested, you can automate it. Optimus Flow's seamless integration with TradingView means you can base your automated trades on the analysis and signals generated from TradingView charts.

How to create a trading strategy using AI? ›

By carefully selecting the right AI technology, using historical data to train algorithms, monitoring algorithms, and combining AI with human expertise, traders can effectively use AI to improve their trading strategies.

Is the capitalize AI free? ›

Is Capitalise.ai free? Yes – there are no Capitalise.ai fees, no monthly payments, no security deposits, and no credit card information required, whatsoever.

How do I connect TradingView to capital? ›

Step 1 Sign up and create a Capital.com account. Step 2 Find our broker profile on TradingView and click 'Trade. ' Step 3 Log in to Capital.com and complete the connection.

How do I send automated orders from TradingView? ›

It is possible to seamlessly send buy/sell orders from TradingView to BOTS. This can be done by using the Webhook URL option in your TradingView alert box. You can also use strategy alerts to automate your trading. It is important to note that TradingView can only send signals to BOTS - but it cannot receive messages.

How can I automate my trading strategy? ›

You need a strategy to automate the trading system. Consider the following steps:
  1. Formulate rules and conditions for order placement and execution.
  2. Decide on a platform based on the available feature list (or launch your own.)
  3. Apply your rules using platform functionality.
  4. Backtest your system. ...
  5. Start real-life trades.
Mar 15, 2023

Can professional traders use TradingView? ›

We've introduced three most comprehensive packages (Expert, Elite and Ultimate) designed specifically for professional (commercial) users.

How do I turn my TradingView strategy into a bot? ›

Create a Trading Bot from Volume

Right-click the Volume curve, then click “ add flight alert “. This will open a pop-up where you can define your strategy. Below, you will find 4 options, do not check “ Once only “, as this will only create an alert and not a Bot. I advise you “ Once per bar “.

Which AI bot is best for trading? ›

Are you looking for the most advanced, user-friendly AI trading bot to maximize your investments? Look no further than WienerAI. The bot seamlessly merges AI and crypto trading in one to ensure you don't miss out on the big opportunities in the market.

How to capitalise on AI? ›

6 Steps To Capitalize On AI In Your Business
  1. Quantify a positive business value proposition. ...
  2. Establish a machine learning prediction goal. ...
  3. Define specific model evaluation metrics. ...
  4. Prepare the data sources for learning. ...
  5. Generate and train the predictive model. ...
  6. Deploy and evaluate the machine learning model.
Apr 1, 2024

Is it legal to trade with AI? ›

Algorithmic trading is now legal; it's just that investment firms and stock market traders are responsible for ensuring that AI is used and following the compliance rules and regulations.

Who is the founder of Capitalise AI? ›

Amir Shiovich and Shahar Rabin are the founders of Capitalise.ai.

Is there any free AI for trading? ›

EquBot is an free AI tool for stock market india. It utilizes Natural Language Processing (NLP) and Machine Language Algorithm ( MLA) to analyze market information, make investments, and manage portfolios. Equbot aims to improve portfolio performance and utilize investment outcomes through its innovative approach.

How does capitalise AI work? ›

Capitalise.ai monitors real-time market data, technical indicators, and macroeconomics data 24/7 so you don't have to. Seize every opportunity with optimized buying power. Open as many strategies as you want — only strategies that are triggered will use your buying power.

How do I connect my bot to TradingView? ›

To get started, you have to go to Wall Of Traders, then click on Smart Trading and then on TradingView Signal. Then copy the Webhook URL, along with the message. Now create your trade (Take Profit, Stop Loss). Don't forget to click each time, which will allow you to create a bot and not just an alert.

How do you integrate with TradingView? ›

  1. Choosing an Implementation Method for TradingView Integration.
  2. Using the TradingView Widget.
  3. Using the Datafeed URL with Charting Library.
  4. TradingView Widget.
  5. Using Datafeed URL with Charting Library.
  6. Example.

How do I connect my IB to TradingView? ›

Let's Get Started
  1. Once you have an Interactive Brokers account, go to the TradingView website. Select the Trading Panel tab. Click the Interactive Brokers logo to get started. ...
  2. Click Connect.
  3. Simply login to your Interactive Brokers account to start trading. Need help with TradingView? Visit the TradingView Help Center.

How to capitalize on AI? ›

How to better capitalize on AI by understanding the nuances
  1. Deciphering the AI enigma. It's crucial to first grasp the essence of what AI truly is. ...
  2. Debunking AI myths. ...
  3. Moving beyond hype and haste. ...
  4. Embracing AI with clarity and purpose.
Jan 4, 2024

Top Articles
Stake
Vous avez investi dans de l’argent virtuel et vous n’arrivez pas à récupérer votre argent (fraude aux cryptomonnaies)
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Sen. Emmett Berge

Last Updated:

Views: 6159

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Sen. Emmett Berge

Birthday: 1993-06-17

Address: 787 Elvis Divide, Port Brice, OH 24507-6802

Phone: +9779049645255

Job: Senior Healthcare Specialist

Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.