Webhook Signal Automation – Tradingview Custom Strategies (2024)

Table of Contents

Introduction

Earlier we have seen how to integrate external signals in Growlonix via Telegram bot and Email Alerts

In this article we are going to look at how to integrate custom signals using webhook which is the most efficient method out of all the 3 modes of signal connection. This is because there is no third party server involved as in the case of email and telegram causing minor delay and an additional hop in the whole process. This method of connection can be used to automate alerts from Tradingview as well as any other app or your own code (if you are a developer) can be used to trigger trades.

Just like other methods of signal automation. This method also requires 3 steps.

  1. Create Signal Template in Growlonix
  2. Configure Trigger
  3. Send data to webhook URL from Tradingview or any other app.

1. Create Signal Template

Most common used template is Custom-OSO where a signal contains entry price, profit targets, and stop loss price. Other templates could be Market buy, market Sell, or any of the available order types as per the requirement.

Webhook Signal Automation – Tradingview Custom Strategies (1)

Primary Order– Here in Stop Buy I have entered 0.002 BTC per trade as buy amount. So whenever a new signal is detected bot will buy that signal coin equivalent to 0.002 BTC. I have entered a random stop price which will later be replaced with buy price mentioned in signal. (Stop price should be less than current price for LTE)

Secondary Order– I have selected OCO sell as my secondary order. Click on Auto-Vol at the bottom of form to automatically populate sell volume based on buy volume. Enter some random value in stop loss stop price (less than current price), then enter any random value in take profit stop price (greater than current price). These prices will later be replaced with actual prices from signal.

2. Configure Trigger options

In the primary order click on Triggers button which will open up Trigger configuration form as shown below.

Webhook Signal Automation – Tradingview Custom Strategies (2)
  • Select trigger type as Webhook
  • In Configuration type dropdown select “Generate new provider” if you are setting up a new signal configuration. you can also use “Enter existing provider” if you wish to copy same signals in multiple accounts.
  • Enter any value in signal name field and click on save. System will auto generate two values which will be shown later how to use. First is provider Id and second is authentication key. Provider id is only needed if you wish to copy same signal in multiple accounts otherwise it can be ignored. Authentication key has to be passed as a json key value pair in the webhook request payload. we will demonstrate in later steps.
Webhook Signal Automation – Tradingview Custom Strategies (3)

Signal Count field denotes for how many signals to use this trigger config. you can put fairly large number like 10000 to continuously keep opening trades based on same config. Fill other trigger parameters as per need or you can keep them empty. Hover on i icon to see help text along side each input box.

3. Send data to webhook

This section will describe how you can prepare different combination of json parameters to achieve different results. and will also guide how to connect tradingview.

Webhook Signal API format:

Request Type : POST

URL : https://www.Growlonix.com/api/signal

HEADER: “Content-Type: application/json”

Request Payload:

{ "key": "XXXXXXX-XXXXX-XXXXX", "exchange_name": "binance", // tradingview variable {{exchange}} "market": "USDT/AAVE", // tradingview variable {{ticker}} "action": "create", // possible value - create,edit,close,cancel,exit "algorithm": "day_trade", "buyTarget": "-20%, -31%, -41%", "buyTargetWeight": "25, 24, 51", "takeProfit": "12%, 21%, 33%", "takeProfitWeight": "51, 30, 29", "stopLoss": "-30%", "tsbTrailing" : 0.3, "tslTrailing" : 0.4, "sbTrailing" : 0.251, "tpTrailing" : 0.351, "slTrailing" : 0.3, "clientSignalId": "1237877676567910150" }

“key” : replace this with authentication key that you copied/saved in previous step.

“clientSignalId” : (optional) random number given by user to be used later to perform action on trades opened by this particular signal

“algorithm” : This field can be used to configure multiple strategies. While setting up trigger template there is a field containsAny and containsAll. Those two fields are used to only accept signal if it contains a set of whitelisted keywords. For example. put containsAny = “swing trades”. now signal must contain this keyword in order to execute any action. So we must pass this in our JSON as algorithm = “swing trades” for it to trigger the configured trades.

JSON keys marked in bold in above example are mandatory fields. (key, exchange_name, market, action)

There is no need to pass all the values given above. You only need to pass the keys you are using other than mandatory fields

Success response:

{ "success": true, "data": "Signal Successfully Processed", "id": "61179b5eb188730584f968d5"}

Error response:

{ "status": false, "msg": "Invalid Signal Provider"}

Tradingview alert setup:

Webhook Signal Automation – Tradingview Custom Strategies (4)

While creating alert in tradingview. Put https://www.Growlonix.com/api/signal in webhook URL field. and Put JSON from previous step in Message box. It is marked with red arrow in above pic.

Examples of common use cases:

Create Orders Signal

This is used to open trades for all users who has configured trigger template and configured your webhook signal provider.

Trailing Stop Buy + Take profit

{"api_key": "sensitive_info","exchange_name": "binance","market": "USDT/BNB","action": "create","tsbTrailing" : 0.3,"takeProfit": "380,401","takeProfitWeight": "50,50","tslTrailing" : 0.4,"clientSignalId": "12378776_any_random_number"}

Stop Buy + OCO Sell

{"api_key": "sensitive_info","exchange_name": "binance","market": "USDT/BNB","action": "create","buyTarget" : "380,385", // "-1%,-3%","buyTargetWeight": "50,50","sbTrailing" : 0.251,"takeProfit": "400,420", // "3%,5%""takeProfitWeight": "50,50","tpTrailing" : 0.351,"stopLoss": "350", // "-10%""slTrailing" : 0.3,"clientSignalId": "12378776_any_random_number"}


This signal format is same as create signal format and can be used to update any or all of the supported fields. One thing worth noting here is you must pass same slientSignalId in update call that you sent in create signal api.

Update Orders Signal

In case of any order having multiple targets. When you are sending update target info then it must contain price of already filled targets for that order. You can only change targets which are not yet filled.

Trailing Stop Buy + Take profit

{"api_key": "sensitive_info","exchange_name": "binance","market": "USDT/BNB","action": "edit","tsbTrailing" : 0.3,"takeProfit": "380,401","takeProfitWeight": "50,50","tslTrailing" : 0.4,"clientSignalId": "12378776_any_random_number"}

Stop Buy + OCO Sell

{"api_key": "sensitive_info","exchange_name": "binance","market": "USDT/BNB","action": "edit","buyTarget" : "380,385","buyTargetWeight": "50,50","sbTrailing" : 0.251,"takeProfit": "400,420","takeProfitWeight": "50,50","tpTrailing" : 0.351,"stopLoss": "350","slTrailing" : 0.3,"clientSignalId": "12378776_any_random_number"}


This action can be used to cancel the entire trade group but only applicable if primary order is not yet filled. In case primary order is already filled then cancel signal will be ignored.

Cancel Orders Signal

 {"api_key": "sensitive_info","exchange_name": "binance","market": "USDT/BNB","action": "cancel","clientSignalId": "12378776_any_random_number"}


This action can be used to force exit the secondary order in case primary order is already filled and secondary order is OPEN state. If primary order is not yet filled then this signal will be ignored.

Exit Orders Signal

 {"api_key": "sensitive_info","exchange_name": "binance","market": "USDT/BNB","action": "exit","clientSignalId": "12378776_any_random_number"}


This is a combination of “exit” and “cancel” both the actions in either or condition.
If the primary order is still pending then the entire trade group will be cancelled. If primary is filled and secondary order is Open then it will force exit the secondary order.

Close Orders Signal

 {"api_key": "sensitive_info","exchange_name": "binance","market": "USDT/BNB","action": "close","clientSignalId": "12378776_any_random_number"}

Our system identifies which trade to edit,close,exit,cancel based on clientSignalId from create signal. If multiple create signal has same clientSignalId then all other actions will be performed on last opened trade having same clientSignalId and matching coin pair.

Debug execution issues

First step to debug any signal related issue is click on logs button inside the triggers table corresponding to the trigger setup you are trying to debug.

Webhook Signal Automation – Tradingview Custom Strategies (5)

Once the signal logs page opens. It will contain last 1000 signals received. Have a look at identified info column to cross check which info has been picked successfully by the system.

Webhook Signal Automation – Tradingview Custom Strategies (6)

If you are a channel admin and have large user base contact us for more info about whitelabeled bot solutions that we offer and other admin features for Signal admin.

For any query do reach out to us on our support mail.

  • Author
  • Recent Posts

Webhook Signal Automation – Tradingview Custom Strategies (7)

Growlonix: Elevate your trading with our AI-powered bots, intuitive terminal, and signal automation—crafted for smart investing and risk management.

Webhook Signal Automation – Tradingview Custom Strategies (8)

Latest posts by Growlonix (see all)

    41vote

    Article Rating

    Webhook Signal Automation – Tradingview Custom Strategies (2024)

    FAQs

    How to automate TradingView strategies? ›

    How to automate TradingView scripts?
    1. Register an account.
    2. Connect you exchange account (API)
    3. Create new bot and configure the settings.
    4. Link your WunderTrading bot with a TradingView alert. The automation process will depend on the type of the trading script.
    5. Start trading with TradingView.

    How do I use Webhooks on TradingView? ›

    How to activate Webhook on TradingView?
    1. Create your strategy on TradingView. Here we use "MA Cross" as an example.
    2. Click "Alert"
    3. Go to [Settings], paste the following in message.
    4. Go to [Notifications], enable webhook URL and input.
    5. Click "Create"
    Oct 5, 2023

    How to connect TradingView strategy to Interactive Brokers? ›

    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 set up signal trading with TradingView Binance? ›

    How to set up a webhook in TradingView with the Binance integration?
    1. Log in to your Binance account and go to the USDⓈ-M trading interface. ...
    2. Go to the [Strategy] tab and choose [Webhook Signal Trading]. ...
    3. Read the notes and click [Confirm and Proceed].
    Sep 13, 2023

    Can I use a trading bot on 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.

    Does TradingView have a strategy tester? ›

    How can I analyze strategy results? When you add a strategy to the chart, additional information will appear in the Strategy Tester tab and can show you a report of your strategies results.

    What is the best broker with TradingView integration? ›

    Which forex brokers offer integration with TradingView?
    • Capital.com.
    • Pepperstone.
    • OANDA.
    • BlackBull Markets.
    • Vantage.
    • Eightcap.
    • easyMarkets.
    • SpreadEX.
    Jul 26, 2024

    Can I automate trading with Interactive Brokers? ›

    Plan Like A Human.

    For the first time, traders of all levels can automate their own unique trading strategies, using everyday English. From managing your daily trades to building complex automated systems - with Capitalise.ai you can automate your trading, zero coding needed.

    Can you link multiple brokers to TradingView? ›

    Traders can set up multiple alerts on TradingView, each connected to a different webhook on TradersPost. This setup enables the simultaneous management of various positions across multiple brokers, including TradeStation, Alpaca, Interactive Brokers, Tradier, TD Ameritrade, Coinbase, and Robinhood.

    Does TradingView support automated trading? ›

    While TradingView itself doesn't offer automated trading, its strengths lie in advanced charting tools and a vast array of indicators, making it an excellent platform for developing and testing trading strategies.

    How do I create a TradingView signal? ›

    III. Create an alert on the TradingView.com website.
    1. Choose the pair and the exchange. ...
    2. Add to the chart indicators and adjust them according to your needs and wishes.
    3. Open an Alert settings. ...
    4. Adjust the Conditions to trigger the alert. ...
    5. Enable Webhooks (valid only for DCA bots) ...
    6. Name an alert and paste the message.

    How do you turn a TradingView alert into a trading strategy? ›

    3 steps to go from indicator to TradingView strategy
    1. Replace the study() function with the strategy() function.
    2. Create entry orders with the strategy. entry() function. ...
    3. Create exit orders based on when our original indicator script triggered its alerts. To close a market position we have two options:
    Jul 6, 2023

    Does TradingView have automatic trendlines? ›

    The "Automatic Trend Lines & S/R Zones Pro " script performs advanced financial chart analysis by algorithmically identifying support/resistance zones and generating trend lines It analyzes historical data, applying calculations like the highest and lowest price points over specified periods (defined by 'PeakOverBar' ...

    How do you program a strategy in TradingView? ›

    Applying a strategy to a chart

    You can use a built-in strategy from the Indicators & Strategies dialog box, or write your own. Notice! When applying strategies to non-standard types of charts (Heikin Ashi, Renko, etc.), it is very important to realize that results will not reflect real market conditions.

    How do I create a strategy alert in TradingView? ›

    How do I create strategy alerts?
    1. Use the “Add Alert” button on the “Strategy Tester” panel:
    2. Use the strategy's drop-down menu:
    3. Select your strategy from the Create Alert dialog:

    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.

    Top Articles
    What does your hobby say about you?
    S&P 500 Returns since 2019
    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
    Doby's Funeral Home Obituaries
    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
    Shasta County Most Wanted 2022
    Energy Healing Conference Utah
    Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
    Aaa Saugus Ma Appointment
    Geometry Review Quiz 5 Answer Key
    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
    Cvs Sport Physicals
    Mercedes W204 Belt Diagram
    '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
    Selly Medaline
    Latest Posts
    Article information

    Author: Rev. Leonie Wyman

    Last Updated:

    Views: 5545

    Rating: 4.9 / 5 (59 voted)

    Reviews: 90% of readers found this page helpful

    Author information

    Name: Rev. Leonie Wyman

    Birthday: 1993-07-01

    Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

    Phone: +22014484519944

    Job: Banking Officer

    Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

    Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.