Home › Guides › TradingView Bot

TESTING TRAPFREENO ACCOUNTAUTOMATED TRADE BOTSTradingView BotWhy a good backtest can lieEDUCATION ONLY | NO SIGNALSEXAMPLE NUMBERS ARE LABELLEDAUTOMATED TRADE BOTSautomatedtradebots.com
A free page on tradingview bot. Education only, with example numbers labelled.
TESTING TRAP

TradingView Bot

Short answer

A so-called TradingView bot is not one product. It is a chain: a chart condition, an alert, a webhook, a program you run, and a broker account. Each link is built and run by somebody different.

People call a chart plus an alert plus a small program a bot. It is really a chain of separate parts, and the chain is only as reliable as all of them together.

The page explains the idea in plain words, works through the arithmetic with a table, and shows how it hits grid, martingale and DCA bots, then tells you what to check before you run one.

  • A worked example with real arithmetic
  • How it hits grid, martingale and DCA bots
  • How to check for it before you run a bot
  • No advice, no signals, no profit promises

Last reviewed 28 October 2026. Education only, not advice.

Free, no account Runs in your browser Worked numbers shown Not advice Examples labelled

Ready to go further

Next: understand the alert link

The alerts guide goes deeper into delays, duplicates and missed messages, and how to keep a pasted address or key safe.

Read the alerts guideFree, no account
Reading time5 minutes
Worked exampleExact arithmetic
Tools linked0 on this page
Reviewed28 Oct 2026

What is included

  • What it is, in plain words
  • The formula or mechanism, with exact arithmetic
  • How it hits grid, martingale and DCA bots
  • A check you can run before you switch a bot on

Who it is for

  • People who run or plan to run a trading bot
  • Anyone reading a backtest or a bot sales page
  • Readers who want the numbers, not the pitch
  • Not advice, and not a signal service
A made-up chain of five links, each 98 or 99 percent reliable99.0%Best single linkmade up93.2%Whole chain5 links togetherA made-up example. Every link looks good alone; the product of five is lower.
The picture for this page. Example numbers are made up unless the page says they were calculated.

Key facts

  • A so-called TradingView bot is not one product. It is a chain: a chart condition, an alert, a webhook, a program you run, and a broker account. Each link is built and run by somebody different.
  • Reliability multiplies down a chain. In our made-up example every link is 98 or 99 percent reliable, and the whole chain is 93.19 percent. That is about 13.6 failed signals in 200.
  • Backtests assume every signal arrives once, on time and fills at the bar price. The chain does none of those things reliably, so live results differ from the chart.
  • A test plan moves from the chart to a demo account to a very small size. Each step has a pass mark that you write down before you start.
  • The charting site's menus and features change, so this page describes the parts, not the clicks. This is education, not advice.

Picture the signal travelling. A rule on a chart becomes true. An alert notices and sends a message. The message goes over the internet to a program you run. That program checks it and sends an order to a broker. The broker fills it, or does not. Five links, five different owners. The first two belong to the charting site. The third belongs to the internet. The last two belong to you and your broker.

This is the same shape as any other automatic setup, such as the one in a Python trading bot. The difference is that the signal starts on someone else's servers, so you cannot see or fix the first links yourself.

How each link fails

  • The chart condition. A rule may fire in the middle of a bar and then undo itself by the close, so the alert and the finished chart disagree. It can also use data that only exists after the bar ends. See look-ahead bias.
  • The alert. It can be late, repeated or skipped, and an alert may expire or be switched off. See TradingView alerts. The options and limits change, so read the current rules.
  • The webhook delivery. The message crosses the internet. If your server is slow to answer, the sender may try again, which creates a duplicate. If your server is down, the message may be lost.
  • Your receiver. It is a program on a computer or a rented server. It can crash, restart, run out of disk, lose its time setting or handle the same message twice. It also holds a secret key to your broker, which must be kept private.
  • The broker link. The order can be rejected for size, margin or market hours, partly filled, or filled at a worse price. See slippage and requotes. Keys can expire or be revoked.

A worked example with made-up numbers

Give each link a made-up reliability, meaning the share of signals it handles correctly, once, on time. The numbers are invented to make a point, not measured from any real service. The chain works only if all five links work for the same signal, so the chances multiply. The figures below were calculated by us on 29 Oct 2026 and are made up.

LinkMade-up reliabilityTypical fault
Chart condition99%Fires on a bar that later changes, or never fires
Alert service99%Late, retried or skipped
Webhook delivery98%Message lost on the way or answered too slowly
Your receiver program99%Crashes, restarts, or handles a repeat twice
Broker link98%Order rejected, partly filled or key expired
Whole chain93.19%Product of the five numbers: 0.99 x 0.99 x 0.98 x 0.99 x 0.98

Each link alone looks fine. Together they are 93.19 percent, which means 6.81 percent of signals go wrong somewhere. Over 200 signals that is about 13.6 failures. Some are harmless, like a missed entry. Some are not, like a missed exit or an order sent twice. A backtest that treats the chain as perfect will be too kind by this much and more, because it also ignores fill prices.

Made-up reliability of each link in the chain, in percent99%Chartmade up99%Alertmade up98%Webhookmade up99%Receivermade up98%Brokermade upA made-up example, not a measurement of any real service.
Every made-up link is 98 or 99 percent reliable. The chain of all five is lower than any one of them.

A test plan before any money

Write the pass mark for each step before you start, so you do not move the goalposts after seeing the result. Each step should be repeated for long enough to see the faults, which are rare by nature. Do not skip a step because the one before went well.

StepWhat you doPass mark to write down first
1. Chart onlyRun the rule on history with honest costs. See backtesting.Still sensible after doubling the costs
2. Alerts to a logSend alerts to a program that only writes a log and places no orders.Every alert logged once; list late, repeated and missing ones
3. Demo accountLet the program send orders to a demo account.Position always matches what the program thinks it is
4. Fault drillsSwitch the program off mid-trade. Send one message twice. Send a bad one.No double orders; no open position left unknown
5. Very small sizeTrade the smallest size the broker allows, with a daily loss limit.Fills and costs close to the demo; limits hold
6. ReviewCompare the real trade list with the chart report, trade by trade.Every difference explained

Read the steps against backtesting, forward testing and paper trading. A demo account is better than nothing but its fills are often kinder than a real account, so a small real size comes last, not first.

Safety rules for the chain

  • Keep every webhook address and broker key private. Use a key that can trade but cannot withdraw.
  • Make the receiver ignore repeated messages and refuse anything without a shared secret.
  • Put the limits in the receiver, not only on the chart: a maximum size, a maximum number of orders a day and a daily loss limit. See daily drawdown rules.
  • Give every position a stop at the broker, so a failed chain cannot leave it unprotected. See stop loss orders.
  • Check the account by hand each day at first, and keep a log of every message and every order.

What this setup cannot tell you

Getting every link working does not mean the rule has an edge. A chain can work perfectly and carry a bad idea. It also cannot make a backtest honest. The rule still has to survive new data and real costs. See overfitting.

FAQ

Frequently Asked Questions

What is a TradingView bot?

The phrase usually means a chart rule that sends an alert to a program, which then sends orders to a broker. It is a chain of separate parts owned by different people, not a single product.

Does a TradingView bot trade by itself?

Not on its own. The chart only raises an alert. A separate program has to receive it and place orders, and you have to build, run and watch that program.

Why does a bot behave differently from the chart backtest?

The backtest assumes each signal arrives once, on time and fills at a bar price. In the live chain, messages are late, repeated or lost, and fills carry spread and slippage.

How do I test a TradingView bot safely?

Move in steps: chart with honest costs, alerts to a log, a demo account, fault drills, then a very small size. Write down the pass mark for each step first.

What is the biggest risk in the chain?

There is no single one. A missed exit that leaves a position open and a duplicate that doubles size are two of the costliest. Limits and a stop at the broker protect against both.

Are the numbers on this page real?

Example numbers are made up to show how the maths works, and the page says so. A figure only counts as exact when the page says it was calculated on a stated date. Nothing you enter in a calculator leaves your browser.

Can I use this to decide whether to run a bot?

It can show whether a bot's numbers hold together and how much an account can lose. It cannot say what the market will do, and it is not advice. Use it to ask better questions, then read the terms of your own broker or exchange.

Is this financial advice?

No. It is general education. The numbers are made up, and it does not consider your situation.

Know the Risk Before You Run It

Free calculators and guides, added every week. Leave your details and we will email you when new ones go up.

Trading carries a risk of loss