TradingView Automation Guide
This lesson covers automation on TradingView. This is more complex than, for example, TradeSanta. But it has lots of advanced tools that thousands of traders appreciate.
If you are a complete beginner and never wrote a line of code, I would recommend you to leave this tool for later. But if you are ready, you are welcome!
Let's get started!

Part 1. Quick-Start
Before we wire-up webhooks or let a bot place even a single trade, we need a home base where charts live and strategies run. For me β and for most retail quants β TradingView is that home base. Think of it as Bloomberg-lite in your browser: all the major markets, an ever-growing library of public strategies, plus built-in alerts that can fire off to the outside world (webhooks, e-mail, SMS, Telegramβ¦).
Why TradingView?
Zero-install β everything runs in a tab; no Windows-only desktop hurdles.
Strategy Tester β one click turns any Pine Script into a back-test with detailed stats.
Massive script library β thousands of public indicators/bots to copy, fork or adapt.
Webhooks & automation β TradingView will happily POST a JSON payload the moment your strategy goes long or flat, which is the cornerstone of no-code bot building.
So, let's create an account.
If you already trade on TradingView, scroll down to the Part 2.
Sign-up via email or any other method (Google, Facebook, etc)
TradingView asks for permission Click Grant Access. This simply allows the brokerage portal (or any partner app) to open your TradingView workspace after login.
TradingView launches automatically Within a second or two you should land on a default chartβusually the S&P 500 or BTCUSD.
If this is your first time on TradingView, I recommend you to spend at least 2-3 hours to see how it works and what it is used for. Algorithmic Trading is just one of many features.
Purchase subscription ("Essential" or higher). TradingView itself has a free version, but automation is only available with subscription.
Continue reading whenever you are ready.
Part 2: Hunting for a free, profitable TradingView strategy
To find a free strategy (and maybe edit it later), you should scout the public strategy library.
Open Super-Charts Log in to TradingView, hover Products βΈ Super Charts, click once. A blank chart opens.
Load the Bitcoin daily chart
Search-box (top-left) β type
BTCUSD(or any other currency pair that you want to trade) β choose Index (or a major exchange).Check the timeframe ribbon under the symbol; if it shows anything but 1D click the βΌ arrow and select 1 Day.
Wheel-scroll to zoom in/out; you want a few years of data visible.
Open the Indicators panel Tap
/or click Indicators. In the search field type strategy β TradingView now filters only scripts that output trades (they end with Strategy).

Ignore private or pay-walled code The very first list (under My scripts) is yours; the next headers (Technicals, Community Scripts) are public and free.
Attach a candidate Double-click SuperTrend Strategy (or RSI, MACD, Momentum β try anything). TradingView instantly runs a back-test and pops the Strategy-Tester panel.
Read the scoreboard
Net profit β we want green, ideally triple-digit %.
Max draw-down β stay < 20 % in crypto; that means the equity curve never sank deeper than that.
Win-rate & expectancy β not vital if profit is large, but > 40 % wins feels comfortable.
Declutter the chart Click the βοΈ on the strategyβs name β Style tab β untick Signal labels and Position size so only blue buy β² and red sell βΌ arrows remain.

Reality-check Scroll back. Does every entry make sense? A few losers are fine; whole βwaterfallsβ of red trades are a red flag. When you like what you see, keep the script β weβll automate it next.
Why we need more than TradingView alone?
A TradingView alert can fire a JSON payload the second your strategy flips from flat to long (or vice-versa). But an alert canβt log in to Bybit and press Buy for you β thatβs where a thin βglue-layerβ comes in.
Below is the no-code chain weβll assemble in Parts 3β5:
What each block does
TradingView β runs the SuperTrend Strategy on the 1-day BTCUSD chart; when a blue β² appears it fires
{"ticker":"BTCUSD","action":"buy"}(or"sell").Make.com β catches that webhook, checks ticker is indeed BTCUSD, then sends the correct enterLong or enterShort template to WunderTrading.
WunderTrading Signal-Bot β already knows your Bybit sub-account and its API key. When it receives enterLong it market-buys BTC with 100 % of the USDT balance; on enterShort it sells everything back.
Exchange (Bybit, Kraken, etc.) β executes the orders in real time. You never expose your master account; each bot lives in its own sub-account.
Thatβs the big picture. In the next part weβll build the puzzle from left to right: create the webhook in Make, send a test alert from TradingView, and let Make learn the payload structure. From there wiring the buy/sell branches becomes drag-and-drop easy.
Part 3 β Wiring TradingView to Make.com
(catch a test signal and teach Make what to do with it)
3.1βSetup Make (formerly Integromat)
Create a free account Go to make.com, click Get started, register with Google/e-mail, confirm the mail.
Start a fresh scenario
Dashboard βΈ Scenarios βΈ Create a new scenario (purple β).
Ignore the βChoose appsβ wizard β weβll add modules manually.

Add the Webhook catcher
Click the big grey + in the middle.
Search βWebhooksβ βΈ choose Custom Webhook βΈ Listen for a new request.
Click Add, give it a memorable name (e.g.
TV_BTC_signals), leave IP restriction empty.Press Save.
Make now shows βWaiting for dataβ¦β and displays a long URL β copy it (clipboard icon).
This is the address TradingView will call every time the strategy fires.

Pause! Keep the Make tab open β it must receive one real alert so it can learn the payload structure.
3.2βSet up the TradingView test alert
(one-minute chart, only for teaching Make)
Jump to a fast timeframe On the BTCUSD chart change the interval to 1 m β this forces the strategy to spit a buy/sell within minutes instead of days.
Open the alert dialog Click the β° Alert button (or hit Alt +A).
Fill the basics

Condition: select your strategy, not βCrossingβ.
Name:
SuperTrend | BTC | 1-min TEST.
Payload (Message box) Delete the default text, paste this JSON:
No spaces after the field names, Make likes it lean.
Point it to Make
Tick Webhook URL in the Notifications block.
Paste the long address you copied from Make.
Create the alert and watch it appear in the right-hand Alerts panel.

β Wait until you see one BUY and one SELL fire in the Alerts log (blue/green flash). Because weβre on the 1-minute chart it normally happens within 2-3 minutes.
Delete the test alert once both directions have triggered β we donβt want the 1-minute bot to trade real money later.
3.3βContinue the Make setup
Confirm Make caught the sample Switch back to the Make tab. The Webhook bubble should now display βSuccessfully determinedβ and show two keys: ticker and action. Click OK.
Branch the flow β buy or sell
Hover the Webhook module βΈ small wrench icon βΈ Add router. You now have one input and two empty outputs.
Add a filter for the correct symbol

Click the tiny funnel on the line between Webhook and Router.
Name:
Only_BTCUSD.Condition: ticker βββ equals βββ BTCUSD βΈ OK.
Prepare placeholders for later β no coding! After listening to the sample Make now auto-suggests
tickerandactiontokens you can drag into any future module.

Save the scenario (but keep it OFF) Click Save top right, name it
SuperTrend_BTC_NoCode. Weβll finish the HTTP calls to WunderTrading in the next part; for now your Webhook + Router skeleton is ready and understands the test alert structure.
Checkpoint
Webhook bubble shows Successfully determined
Make knows the JSON keys.
A Router with two arms
Ready to send BUY and SELL down separate paths.
Filter Only_BTCUSD before the router
Accidental ETH/LTC alerts are ignored.
If that matches your screen β congrats, the TradingView β Make half of the pipeline is alive.
Part 4 β Plugging WunderTrading into Your Exchange
4.1βCreate / connect a Bybit spot sub-account
Using a clean sub-account keeps the botβs money separate from your manual trades and lets us trade 100 % of the balance without fear.
Log in to Bybit (or any other available crypto exchange). β If you donβt have an account yet, open one. β Complete KYC if the platform asks; youβll need API access later.

Open the sub-account manager β’ Avatar βΈ Sub-account βΈ Create sub-account βΈ Standard βΈ Unified trading. β’ Username must be globally unique β I prefix my initials, then the strategy name, e.g.
β’ Click Confirm. The empty sub-account appears in the list.

(Optional) Seed it with test funds β’ Transfer βΈ Across sub-accounts. β’ From: any spot account that holds USDT (or USDC) βΈ To: MK_SuperTrend_BTC. β’ Amount: 100 USDT is plenty for a first run.
Why spot, not futures? This guide is about low-stress, non-leveraged swing trading. Futures add funding fees, liquidation risk, and dramatically higher engineering risk. Master spot first β add leverage later if you really need it.
4.2βGenerate an API Key + Secret for WunderTrading

In the sub-account list press API Management (or Manage βΈ API).
Create New Key βΈ System-generated.
Third-party application βΈ WunderTrading (important: API keys tied to a listed partner do not expire).
Permissions
Scope: Read + Write
Products: Unified trading (Spot) only β leave Derivatives unchecked.
Submit βΈ pass 2FA / e-mail confirmation.

Copy the API Key and Secret immediately β the secret is shown once and never again. β Keep the browser tab open until youβve pasted them into WunderTrading.
4.3βAttach Bybit to WunderTrading
Sign in at wundertrading.com (new users start on a 7-day Pro trial β enough for live testing).
Sidebar βΈ Exchange Accounts βΈ Connect exchange βΈ choose Bybit (Spot).
Paste the API Key and Secret you just created.
Account nickname β paste the exact sub-account name (
MK_SuperTrend_BTC).Connect. β WT does a quick permission check; if you seeded the sub-account youβll see its USDT balance in the list.

4.4βBuild a TradingView Signal-Bot in WunderTrading
The Signal-Bot provides two unique webhook payloads β enterLong and enterShort. Those are what weβll paste into Make so the routerβs BUY and SELL branches can hit the correct endpoint.
Sidebar βΈ Signal Bot βΈ Create bot βΈ TradingView bot.

General tab
Name β again, mirror the sub-account:
MK_SuperTrend_BTC.Exchange β Bybit.
Account β select the MK_SuperTrend_BTC sub-account.
Pair β
BTC/USDT.Time-frame β
1D(matches our chart).
Order settings
Order type β Market (fast & simple).
Position size β
100 %(converts the entire available USDT to BTC on a buy, and vice-versa on a sell).Max positions β
1.Keep positions open β off (unchecked).
Create bot and Save.

Immediately hit Edit again β a new panel called TradingView alerts template appears:
Enter long
{ "side":"buy", "amount_type":"percent","amount":"100" }
Enter short
{ "side":"sell", "amount_type":"percent","amount":"100" }
Under each template youβll also see the Webhook URL β one URL, two bodies. Copy the URL now; weβll need it twice in Make.
Tip: If you plan several bots (ETH, SOL, etc.) keep a Notion page with their names β’ sub-accounts β’ webhook URLs β’ enterLong / enterShort bodies β saves hunting later.
4.5βBack to Make β finish the HTTP calls

BUY branch (left output of the router)
Open the empty HTTP β Make a request module.
Method:
POSTURL: paste the Signal-Botβs webhook URL.
Body type:
Raw.Content-type:
application/json.Request content: paste the Enter long JSON from step 4.
SELL branch (right output)
Same setup, but paste the Enter short JSON.
Save βΈ give the scenario a clear name (
SuperTrend_BTC_Make2WT).Turn the scenario ON (top-right toggle). β Green check-mark = active listener.
4.6βQuick health-check
WunderTrading
Bot status shows Waiting for signal. Exchange balance visible.
Make
Scenario switch = ON. Webhook queue = 0/0.
TradingView
The 1-minute test alert was deleted. Only the **SuperTrend
If all three nodes are green, your first no-code TradingView bot is fully wired:
Next market open/close generated by the SuperTrend strategy will:
Hit Makeβs webhook,
Flow through the BUY or SELL branch,
Call WunderTrading,
Market-buy or market-sell 100 % of the sub-account balance.
How are you doing? We are almost there!
Part 5 β βProduction Modeβ
Simple guard-rails that keep your bot running (and warn you when it doesnβt).
5.1βRenew the TradingView alert every 60 days

Free & Pro alerts expire. If the webhook stops firing, Make never receives a signal and the whole chain silently dies.
Routine
When you create/modify the alert, open the Expiration picker and push it out 2 months.
Immediately drop a recurring reminder into Google / Outlook: Renew BTC SuperTrend 1D alert β TradingView β repeat every 2 months, 1-day early.
Youβll need ~60 seconds: open alert βΆ Edit βΆ click Expiration calendar βΆ push date βΆ Save.
5.2βHeartbeat e-mail from Make
Make can ping you once per day to prove the scenario is still ON and webhook quotas arenβt exhausted.
Open your SuperTrend_BTC_Make2WT scenario.
Click the empty canvas, choose Tools βΈ Scheduler.
Drag it above the Webhook, set:
Run once every day at 08:00 UTC (or whatever suits).
After the Scheduler add Email βΈ Send an e-mail.
From:
notifications@make.com(pre-configured).To: your main inbox.
Subject:
Make heartbeat β SuperTrend_BTC.Body:
Save βΆ Turn scenario back ON.
Now your inbox proves every morning that Make is alive. Didnβt arrive? β Investigate before New York opens.
5.3βLightweight P&L log in Google Sheets
You donβt have to build a full-blown dashboard; one append-only row per execution is enough.
1. Create a Google Sheet
Timestamp
webhook reception time
Side
BUY / SELL
Qty BTC
Amount executed
Price
Fill price (avg)
Balance USDT
Balance after trade
2. Add a Sheets βAppend rowβ inside Make
In Make hit + after the routerβs BUY branch.
Choose Google Sheets βΈ Add a row.
Connect your Google account (OAuth popup).
Pick the spreadsheet and the
Logsheet.Map fields:
Timestamp β
{{now}}Side β static βBUYβ (do same for SELL branch with βSELLβ).
Qty BTC + Price + Balance β drag from WT webhook JSON (
amount,price,balanceUSDT).
Every fill instantly lands in Sheets β you can chart P&L or reconcile taxes later.
5.4βThree closing tips
Version labels β any time you tweak filters or JSON bodies, clone the scenario and append _v2, _v3β¦
Roll-back in 1 click if the new logic misbehaves.
Withdraw regular profits to another wallet.
Reduces capital at risk and makes performance βrealβ.
Stay curious, but add bots slowly.
One clean, monitored bot beats five half-configured ones.
Youβre live π
That was hard, I know. It may take several attempts to make it. If needed, you may watch other guides on YouTube or ask TradingView support. I tried to make this guide as simple as possible, but I understand that it still takes time to figure out.
Last updated