{"id":4124,"date":"2022-02-28T00:54:58","date_gmt":"2022-02-27T19:24:58","guid":{"rendered":"https:\/\/www.trailingcrypto.com\/support\/?post_type=article&#038;p=4124"},"modified":"2024-03-17T23:06:52","modified_gmt":"2024-03-17T17:36:52","slug":"webhook-signal-automation-tradingview-custom-strategies","status":"publish","type":"article","link":"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies","title":{"rendered":"Webhook Signal Automation &#8211; Tradingview Custom Strategies"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_75 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ce185cc4159\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ce185cc4159\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#Introduction\" >Introduction<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#1_Create_Signal_Template\" >1. Create Signal Template<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#2_Configure_Trigger_options\" >2. Configure Trigger options<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#3_Send_data_to_webhook\" >3. Send data to webhook<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#Webhook_Signal_API_format\" >Webhook Signal API format:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#Tradingview_alert_setup\" >Tradingview alert setup:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#Examples_of_common_use_cases\" >Examples of common use cases:<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#Create_Orders_Signal\" >Create Orders Signal<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#Update_Orders_Signal\" >Update Orders Signal<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#Cancel_Orders_Signal\" >Cancel Orders Signal<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#Exit_Orders_Signal\" >Exit Orders Signal<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#Close_Orders_Signal\" >Close Orders Signal<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\/#Debug_execution_issues\" >Debug execution issues<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Introduction\"><\/span><strong>Introduction<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Earlier we have seen how to integrate external signals in Growlonix via <a href=\"https:\/\/www.growlonix.com\/support\/article\/telegram-signal-bot-private-groups-messages\" target=\"_blank\" rel=\"noreferrer noopener\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Telegram bot<\/mark><\/a> and <a href=\"https:\/\/www.growlonix.com\/support\/article\/email-notification-based-trigger-signal-order\" target=\"_blank\" rel=\"noreferrer noopener\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Email Alerts<\/mark><\/a><\/p>\n\n\n\n<p>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. <\/p>\n\n\n\n<p>Just like other methods of signal automation. This method also requires 3 steps.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create Signal Template in Growlonix<\/li>\n\n\n\n<li>Configure Trigger <\/li>\n\n\n\n<li>Send data to webhook URL from Tradingview or any other app.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Create_Signal_Template\"><\/span><strong>1. Create Signal Template<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>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.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-original=\"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2020\/05\/image-10.png\" alt=\"tradingview strategy\" class=\"wp-image-3556\"\/><\/figure>\n\n\n\n<p><strong>Primary Order<\/strong>&nbsp;\u2013 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)<\/p>\n\n\n\n<p><strong>Secondary Order<\/strong>&nbsp;\u2013 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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Configure_Trigger_options\"><\/span><strong>2. Configure Trigger options<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In the primary order click on Triggers button which will open up Trigger configuration form as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"617\" src=\"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image.png\" alt=\"tradingview automated trading\" class=\"wp-image-4134\" srcset=\"https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image.png 602w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-293x300.png 293w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-468x480.png 468w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-330x338.png 330w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-395x405.png 395w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-278x285.png 278w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><figcaption class=\"wp-element-caption\">webhook trigger setting<\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select trigger type as Webhook<\/li>\n\n\n\n<li>In Configuration type dropdown select &#8220;Generate new provider&#8221; if you are setting up a new signal configuration. you can also use &#8220;Enter existing provider&#8221; if you wish to copy same signals in multiple accounts.<\/li>\n\n\n\n<li>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 <strong>provider Id<\/strong> and second i<strong>s authentication key<\/strong>. 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.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"665\" src=\"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-1.png\" alt=\"tradingview webhooks bot\" class=\"wp-image-4135\" srcset=\"https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-1.png 600w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-1-271x300.png 271w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-1-433x480.png 433w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-1-305x338.png 305w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-1-365x405.png 365w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/02\/image-1-257x285.png 257w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Send_data_to_webhook\"><\/span><strong>3. Send data to webhook<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>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.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Webhook_Signal_API_format\"><\/span><strong>Webhook Signal API format:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><strong>Request Type :&nbsp; &nbsp;POST<\/strong><\/p>\n\n\n\n<p><strong>URL :&nbsp;&nbsp;&nbsp;&nbsp; https:\/\/www.Growlonix.com\/api\/signal<\/strong><\/p>\n\n\n\n<p><strong>HEADER: \u201cContent-Type: application\/json\u201d<\/strong><\/p>\n\n\n\n<p><strong>Request Payload:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    <strong>\"key\"<\/strong>: \"XXXXXXX-XXXXX-XXXXX\",    \n    <strong>\"exchange_name\"<\/strong>: \"binance\", \/\/ tradingview variable {{exchange}}\n    <strong>\"market\"<\/strong>: \"USDT\/AAVE\",   \/\/ tradingview variable {{ticker}} \n    <strong>\"action\"<\/strong>: \"create\", \/\/ possible value - create,edit,close,cancel,exit\n    \"algorithm\": \"day_trade\", \n    \"buyTarget\": \"-20%, -31%, -41%\",\n    \"buyTargetWeight\": \"25, 24, 51\",\n    \"takeProfit\": \"12%, 21%, 33%\",\n    \"takeProfitWeight\": \"51, 30, 29\",\n    \"stopLoss\": \"-30%\",\n    \"tsbTrailing\" : 0.3,\n    \"tslTrailing\" : 0.4,\n    \"sbTrailing\" : 0.251,\n    \"tpTrailing\" : 0.351,\n    \"slTrailing\" : 0.3,\n    \"clientSignalId\": \"1237877676567910150\"    \n}\n<\/code><\/pre>\n\n\n\n<p><strong>&#8220;key&#8221;<\/strong> : replace this with authentication key that you copied\/saved in previous step.<\/p>\n\n\n\n<p><strong>&#8220;clientSignalId&#8221;<\/strong> : &nbsp;(optional) random number given by user to be used later to perform action on trades opened by this particular signal<\/p>\n\n\n\n<p><strong>&#8220;algorithm&#8221;<\/strong> :  This field can be used to configure multiple strategies. While setting up trigger template there is a field <strong>containsAny<\/strong> and <strong>containsAll<\/strong>. Those two fields are used to only accept signal if it contains a set of whitelisted keywords. For example. put containsAny = &#8220;swing trades&#8221;. now signal must contain this keyword in order to execute any action. So we must pass this in our JSON as algorithm = &#8220;swing trades&#8221; for it to trigger the configured trades. <\/p>\n\n\n\n<p>JSON keys marked in bold in above example are mandatory fields. (key, exchange_name, market, action)<\/p>\n\n\n\n<p>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<\/p>\n\n\n\n<p><strong>Success response:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"success\": true,\n    \"data\": \"Signal Successfully Processed\",\n    \"id\": \"61179b5eb188730584f968d5\"\n}\n<\/code><\/pre>\n\n\n\n<p><strong>Error response:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"status\": false,\n    \"msg\": \"Invalid Signal Provider\"\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Tradingview_alert_setup\"><\/span><strong>Tradingview alert setup:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"525\" src=\"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image.png\" alt=\"tradingview webhooks\" class=\"wp-image-4140\" srcset=\"https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image.png 450w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-257x300.png 257w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-411x480.png 411w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-290x338.png 290w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-347x405.png 347w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-244x285.png 244w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><figcaption class=\"wp-element-caption\">Tradingview alert<\/figcaption><\/figure>\n\n\n\n<p>While creating alert in tradingview. Put <strong>https:\/\/www.growlonix.com\/api\/signal<\/strong> in webhook URL field. and Put JSON from previous step in Message box. It is marked with red arrow in above pic.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Examples_of_common_use_cases\"><\/span>Examples of common use cases:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Create_Orders_Signal\"><\/span><strong>Create Orders Signal<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>This is used to open trades for all users who has configured trigger template and configured your webhook signal provider.<\/p>\n\n\n\n<p><strong>Trailing Stop Buy + Take profit<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\"api_key\": \"sensitive_info\",\n\"exchange_name\": \"binance\",\n\"market\": \"USDT\/BNB\",\n\"action\": \"create\",\n\"tsbTrailing\" : 0.3,\n\"takeProfit\": \"380,401\",\n\"takeProfitWeight\": \"50,50\",\n\"tslTrailing\" : 0.4,\n\"clientSignalId\": \"12378776_any_random_number\"\n}<\/code><\/pre>\n\n\n\n<p><strong>Stop Buy + OCO Sell<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\"api_key\": \"sensitive_info\",\n\"exchange_name\": \"binance\",\n\"market\": \"USDT\/BNB\",\n\"action\": \"create\",\n\"buyTarget\" : \"380,385\", \/\/ \"-1%,-3%\",\n\"buyTargetWeight\": \"50,50\",\n\"sbTrailing\" : 0.251,\n\"takeProfit\": \"400,420\", \/\/ \"3%,5%\"\n\"takeProfitWeight\": \"50,50\",\n\"tpTrailing\" : 0.351,\n\"stopLoss\": \"350\", \/\/ \"-10%\"\n\"slTrailing\" : 0.3,\n\"clientSignalId\": \"12378776_any_random_number\"\n}<\/code><\/pre>\n\n\n\n<p><br>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.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Update_Orders_Signal\"><\/span><strong>Update Orders Signal<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>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.<\/p>\n\n\n\n<p><strong>Trailing Stop Buy + Take profit<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\"api_key\": \"sensitive_info\",\n\"exchange_name\": \"binance\",\n\"market\": \"USDT\/BNB\",\n\"action\": \"edit\",\n\"tsbTrailing\" : 0.3,\n\"takeProfit\": \"380,401\",\n\"takeProfitWeight\": \"50,50\",\n\"tslTrailing\" : 0.4,\n\"clientSignalId\": \"12378776_any_random_number\"\n}<\/code><\/pre>\n\n\n\n<p><strong>Stop Buy + OCO Sell<\/strong><br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\"api_key\": \"sensitive_info\",\n\"exchange_name\": \"binance\",\n\"market\": \"USDT\/BNB\",\n\"action\": \"edit\",\n\"buyTarget\" : \"380,385\",\n\"buyTargetWeight\": \"50,50\",\n\"sbTrailing\" : 0.251,\n\"takeProfit\": \"400,420\",\n\"takeProfitWeight\": \"50,50\",\n\"tpTrailing\" : 0.351,\n\"stopLoss\": \"350\",\n\"slTrailing\" : 0.3,\n\"clientSignalId\": \"12378776_any_random_number\"\n}<\/code><\/pre>\n\n\n\n<p><br>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.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cancel_Orders_Signal\"><\/span><strong>Cancel Orders Signal<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code> {\n\"api_key\": \"sensitive_info\",\n\"exchange_name\": \"binance\",\n\"market\": \"USDT\/BNB\",\n\"action\": \"cancel\",\n\"clientSignalId\": \"12378776_any_random_number\"\n}<\/code><\/pre>\n\n\n\n<p><br>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.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exit_Orders_Signal\"><\/span><strong>Exit Orders Signal<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code> {\n\"api_key\": \"sensitive_info\",\n\"exchange_name\": \"binance\",\n\"market\": \"USDT\/BNB\",\n\"action\": \"exit\",\n\"clientSignalId\": \"12378776_any_random_number\"\n}<\/code><\/pre>\n\n\n\n<p><br>This is a combination of \u201cexit\u201d and \u201ccancel\u201d both the actions in either or condition.<br>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.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Close_Orders_Signal\"><\/span><strong>Close Orders Signal<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code> {\n\"api_key\": \"sensitive_info\",\n\"exchange_name\": \"binance\",\n\"market\": \"USDT\/BNB\",\n\"action\": \"close\",\n\"clientSignalId\": \"12378776_any_random_number\"\n}<\/code><\/pre>\n\n\n\n<p>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.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Debug_execution_issues\"><\/span><strong>Debug execution issues<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>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.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"366\" src=\"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-1.png\" alt=\"webhook trading bot\" class=\"wp-image-4145\" srcset=\"https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-1.png 874w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-1-300x126.png 300w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-1-768x322.png 768w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-1-480x201.png 480w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-1-730x306.png 730w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-1-580x243.png 580w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-1-665x278.png 665w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><figcaption class=\"wp-element-caption\">Triggers Table &#8211; Logs button<\/figcaption><\/figure>\n\n\n\n<p>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.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"397\" src=\"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-2-1024x397.png\" alt=\"Webhook Signal Automation\" class=\"wp-image-4146\" srcset=\"https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-2-1024x397.png 1024w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-2-300x116.png 300w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-2-768x298.png 768w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-2-480x186.png 480w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-2-730x283.png 730w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-2-580x225.png 580w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-2-665x258.png 665w, https:\/\/www.growlonix.com\/support\/wp-content\/uploads\/2022\/03\/image-2.png 1344w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Signal Logs page <\/figcaption><\/figure>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>For any query do reach out to us on our support mail.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[69],"article-tag":[184,185,186,187],"class_list":["post-4124","article","type-article","status-publish","format-standard","hentry","article-category-trading-configuration","article-tag-webhook","article-tag-signal-automation","article-tag-tradingview","article-tag-tradingview-custom-strategies"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Webhook Signal - Tradingview Automated Trading - Growlonix<\/title>\n<meta name=\"description\" content=\"Growlonix is the best secure platform which support webhook signal. It&#039;s automates your trades based on the predefined strategies.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Webhook Signal - Tradingview Automated Trading - Growlonix\" \/>\n<meta property=\"og:description\" content=\"Growlonix is the best secure platform which support webhook signal. It&#039;s automates your trades based on the predefined strategies.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies\" \/>\n<meta property=\"og:site_name\" content=\"Growlonix\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/growlonix\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-17T17:36:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2020\/05\/image-10.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@growlonix\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Webhook Signal - Tradingview Automated Trading - Growlonix","description":"Growlonix is the best secure platform which support webhook signal. It's automates your trades based on the predefined strategies.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies","og_locale":"en_US","og_type":"article","og_title":"Webhook Signal - Tradingview Automated Trading - Growlonix","og_description":"Growlonix is the best secure platform which support webhook signal. It's automates your trades based on the predefined strategies.","og_url":"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies","og_site_name":"Growlonix","article_publisher":"https:\/\/www.facebook.com\/growlonix\/","article_modified_time":"2024-03-17T17:36:52+00:00","og_image":[{"url":"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2020\/05\/image-10.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@growlonix","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies","url":"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies","name":"Webhook Signal - Tradingview Automated Trading - Growlonix","isPartOf":{"@id":"https:\/\/www.growlonix.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies#primaryimage"},"image":{"@id":"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies#primaryimage"},"thumbnailUrl":"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2020\/05\/image-10.png","datePublished":"2022-02-27T19:24:58+00:00","dateModified":"2024-03-17T17:36:52+00:00","description":"Growlonix is the best secure platform which support webhook signal. It's automates your trades based on the predefined strategies.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.growlonix.com\/support\/article\/webhook-signal-automation-tradingview-custom-strategies#primaryimage","url":"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2020\/05\/image-10.png","contentUrl":"https:\/\/www.Growlonix.com\/support\/wp-content\/uploads\/2020\/05\/image-10.png"},{"@type":"WebSite","@id":"https:\/\/www.growlonix.com\/support\/#website","url":"https:\/\/www.growlonix.com\/support\/","name":"Growlonix","description":"Best Crypto Trading Bots &amp; Terminal","publisher":{"@id":"https:\/\/www.growlonix.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.growlonix.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.growlonix.com\/support\/#organization","name":"Growlonix","url":"https:\/\/www.growlonix.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.growlonix.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/support.growlonix.com\/wp-content\/uploads\/2023\/11\/Group-44.png","contentUrl":"https:\/\/support.growlonix.com\/wp-content\/uploads\/2023\/11\/Group-44.png","width":8085,"height":1833,"caption":"Growlonix"},"image":{"@id":"https:\/\/www.growlonix.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/growlonix\/","https:\/\/x.com\/growlonix","https:\/\/www.youtube.com\/@growlonix"]}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"nice-template-blog":false,"nice-single-post":false,"nice-template-masonry-blog":false,"nice-template-search":false},"uagb_author_info":{"display_name":"Growlonix","author_link":"https:\/\/www.growlonix.com\/support\/author\/admin"},"uagb_comment_info":5,"uagb_excerpt":"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&hellip;","_links":{"self":[{"href":"https:\/\/www.growlonix.com\/support\/wp-json\/wp\/v2\/article\/4124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.growlonix.com\/support\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/www.growlonix.com\/support\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/www.growlonix.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.growlonix.com\/support\/wp-json\/wp\/v2\/comments?post=4124"}],"version-history":[{"count":17,"href":"https:\/\/www.growlonix.com\/support\/wp-json\/wp\/v2\/article\/4124\/revisions"}],"predecessor-version":[{"id":4501,"href":"https:\/\/www.growlonix.com\/support\/wp-json\/wp\/v2\/article\/4124\/revisions\/4501"}],"wp:attachment":[{"href":"https:\/\/www.growlonix.com\/support\/wp-json\/wp\/v2\/media?parent=4124"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/www.growlonix.com\/support\/wp-json\/wp\/v2\/article-category?post=4124"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/www.growlonix.com\/support\/wp-json\/wp\/v2\/article-tag?post=4124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}