TVSBot Blog
Auto trading, technical analysis, quant strategies, crypto — for traders who want to write their own.
Quant Stories3 posts
Bridgewater, CTA, Renaissance, and other institutional storiesKevin Zhou + Galois — Saw Through UST Five Months Early but Only Made $15M
Who was the earliest public warning voice in crypto before Luna collapsed in May 2022? Born in Shanghai, moved to the US at age three, Berkeley MFE. He made $15M, not the rumored 'hundreds of millions' — the lesson is the discipline of being 'right on direction, deliberately small on size'.
Michael Burry — What He's Actually Been Doing in the 17 Years Since The Big Short
The Big Short turned him into a legend. But in the 17 years since 2008 he's fought with the same framework — exiting GameStop early, missing on Tesla, flipping on China tech, the 2023 'Sell' tweet that backfired in 8 weeks, the 2025 AI shorts, and his strangely hands-off stance on BTC.
Bridgewater + Ray Dalio + the All-Weather Strategy
Ray Dalio founded Bridgewater in his own apartment in 1975 and grew it to $124B AUM over 47 years. The design logic of All-Weather, the standout 2008/2010 campaigns, the 2022 retirement controversy, and the fallout from Copeland's 'The Fund'.
Technical Analysis15 posts
RSI, MACD, EMA, Bollinger Bands, candlesticksDo Multi-Indicator Filters Raise Win Rate? (2026)
Stacking RSI + MACD + EMA looks great in backtest but goes silent live — most indicators aren't independent. Here's the math, plus a Pine Script control test.
Donchian vs Keltner vs Bollinger Bands (2026)
Donchian uses highs/lows, Keltner uses ATR, Bollinger uses standard deviation. Get mechanics, best conditions, common misuses, and Pine code to stack all three.
Stochastic vs RSI: Which Overbought/Oversold to Use
RSI uses 30/70, Stochastic uses 20/80. One reads momentum, the other reads where the close sits in the recent range. See which fits your market.
ADX/DMI: Regime Filter to Switch Strategies On/Off
ADX alone whipsaws entries. As a switch: off trend in ranges, mean-reversion in strong moves. Mechanics, thresholds, Pine Script skeleton, two wiring mistakes.
Supertrend Explained: Parameters & Webhook Signals
Why Supertrend beats RSI/MACD for automated trading: tuning its two parameters, avoiding intra-bar flicker, and four checks before wiring a webhook.
Volume Profile POC, VAH, VAL: Pine v6 Direct Access
POC marks a candle's largest-volume row; VAH/VAL bound the Value Area. Pine v6's request.footprint returns all three, plus a runnable script and three traps.
VWAP: Why Institutions Watch It, Retail Misreads It
VWAP is the institutional benchmark for execution quality, not a retail entry signal. Four common misuses, plus when anchored VWAP actually matters.
Bollinger Bands Complete Guide — Not Just 'Sell at Upper Band, Buy at Lower Band'
The indicator John Bollinger created in the 1980s. The principles (why ±2 standard deviations), Squeeze breakouts, the %B indicator, the Walking the Bands phenomenon, and Bollinger's own 19 rules.
Candlestick Patterns Complete Guide — 300-Year-Old Wisdom from a Japanese Rice Trader
Invented by Munehisa Homma in the 1700s and brought to the West by Steve Nison in 1990. Ten classic patterns (engulfing / doji / hammer / shooting star / morning star / evening star / three black crows) with real win rates, Pine auto-detection, and why the win rates in books can't be trusted.
Moving Averages Complete Guide — SMA, EMA, and the Real Meaning of the 200-Day
SMA vs EMA, what 5/20/50/200 each represent, the real win rate of golden/death crosses, multi-MA stacking strategies, and why institutions treat the SMA 200 as sacred.
Ichimoku Cloud Complete Guide — 30 Years of Research by a Japanese Journalist
The 'Ichimoku Kinko Hyo' published by Goichi Hosoda in 1969. Full formulas for the five lines, how to read the cloud, the 'sanrentei' perfect bullish signal, Pine examples, and how it differs from EMA / RSI / BB.
MACD Indicator Complete Guide — The Real Use of Golden/Death Crosses
What the three MACD lines actually do, why a pure cross has only a 50% win rate, zero-line filtering, histogram contraction, and a full divergence-detection implementation.
RSI Indicator Complete Guide — Beyond 30/70
How RSI is calculated, four advanced uses (divergence, the 50 centerline, dual timeframes), Pine code, and an analysis of common mistakes.
Support / Resistance / Supply & Demand Zones — Why Certain Price Levels Matter
The difference between S/R and supply/demand zones, strength tiers, Smart Money / ICT concepts (Order Block / Liquidity Pool / FVG), distinguishing real breakouts from false ones, and Pine auto-drawn lines.
Volume Profile / VWAP / TWAP — The Secret of Institutional Order Flow
Principles behind Volume Profile (volume-by-price distribution), VWAP (volume-weighted average price), and TWAP (time-weighted average price), plus institutional execution logic, crypto's 24/7 special cases, and a Pine VWAP example.
Strategy Types4 posts
Trend, mean reversion, breakout, pairs tradingBreakout Strategy Complete Guide — Donchian / NR7 / Opening Range
Three classic breakout strategies: Donchian Channel (the Turtle core), NR7 contraction, and ORB opening range. Three false-breakout filters: ATR range, volume, and trend direction.
CTA Trend Following Explained — From the Turtle Traders to Crisis Alpha
In 1983 Richard Dennis ran a Wall Street Journal ad to recruit 23 amateurs, trained them for two weeks, and gave each $500K-$2M. Five years later they'd made $175M. The Turtle rules plus Pine code and a Crisis Alpha breakdown.
Mean Reversion Strategy Explained — Why LTCM Lost $4.6B Running It
Ornstein-Uhlenbeck math foundations, four implementations (RSI / Z-score / Bollinger / pairs trading), lessons from the 1998 Long-Term Capital Management collapse, and five safety rules for retail traders.
Pairs Trading / Statistical Arbitrage — How Morgan Stanley Made Its First Fortune in 1980
From cointegration, spread, and Z-Score math foundations to Morgan Stanley's 1986 black-box origins, the LTCM 1998 lessons, the limits of BTC vs ETH pairs in crypto, plus Pine examples and five common retail pitfalls.
Strategy Comparison1 post
Side-by-side strategy comparisons to help you chooseRisk Management3 posts
Kelly criterion, ATR sizing, stop-loss mechanicsDynamic Position Sizing for TradingView Webhook Bots: Percent-of-Equity vs Fixed Quantity
The equity curve in your backtest report is not the same number as the balance sitting in your exchange account. This post compares two common position-sizing approaches for TradingView webhook bots — percent-of-equity and fixed quantity — and where each one causes live orders to drift from what the backtest expected.
ATR Complete Guide — Sizing Positions with Volatility
The volatility indicator Wilder invented in 1978. Four real-world uses (dynamic stops / Turtle position sizing / breakout filtering / trend strength) with Pine examples. Core risk management.
Kelly Criterion and Position Sizing Explained — Why Most People Use 'Half Kelly'
Original Kelly Criterion plus its trading application, the Edward Thorp story, why Half Kelly became industry consensus, and a Pine implementation.
Security6 posts
API keys, platform architecture, attack defenseBybit API Key: Withdraw, IP Allowlist, Sub-Accounts
Secure a Bybit API key: disable Withdraw, bind IP allowlist, run the bot in a sub-account; Bybit V5 blocks sub-account withdrawal via API. Verified August 2026.
TradingView MCP debug port: what it opens, close it
TradingView MCP tutorials say to open --remote-debugging-port=9222. What it exposes locally, the real alert-webhook risk, and when to close it (July 2026).
Secure Bitget API Keys: Sub-account, IP, Passphrase
Secure a Bitget API key with three settings: never tick Withdraw, put it in a sub-account, bind the IP whitelist. Plus Bitget's Passphrase and no auto-expiry.
BingX API Key: No Withdraw, IP Whitelist, 14d Idle
BingX API key setup: disable withdrawal, bind an IP, and note BingX's little-known 14-day idle-deletion rule Binance users miss. Verified July 2026.
The Non-Custodial API Key Permissions Checklist for Crypto Trading Bots
Granting an exchange API key more permission than a trading bot actually needs is a common source of risk. This checklist covers what applies across exchanges: separating trading permissions from withdrawal permissions, IP whitelisting, and sub-account isolation, item by item.
Binance API Key Security: Complete Guide
Disabling withdrawal, IP whitelisting, and 2FA — the three essential practices. How to pick a trustworthy SaaS, how to respond to a leak, and a multi-key sub-account strategy.
AI Automation5 posts
TradingView to Binance: 5-Checkpoint Debug Guide
Alert fired, webhook sent, account didn't move? 5 checkpoints: freq, payload, auth, Binance rejections, execution reports.
Running Trading Bots on Cron With Claude Agent SDK
Anthropic paused the $20 SDK-only credit on 6/15. Subscriptions share a 5-hour window; crashed runs still bill. Pricing, cron cadence, Claude→TVSBot split.
TradingView AI Chart Copilot: Why the Free Plan Cannot Write Pine
After the April 2026 public beta of TradingView AI Chart Copilot, weekly quotas moved to plan-based multipliers. Free cannot write Pine at all — this post reads the official pricing page cell by cell to lay out what each plan can and cannot do.
Claude Code + TradingView MCP: Almost Auto-Trading
TradingView MCP lets Claude Code read charts, write Pine, manage alerts — but never place trades. Not a missing feature; it is a design choice at the MCP layer.
You Generated a Pine Script Strategy With AI — Here's What It Takes to Actually Trade It
AI can turn your trading idea into Pine Script, but what comes out is often an indicator rather than a backtestable, tradable strategy — and it may carry outdated version syntax or repainting issues. This post covers the gap between AI-generated code and a live setup: alert configuration and the webhook-to-exchange wiring AI can't do for you.
Tool Comparison3 posts
3Commas Worth It? Fees, Webhook Tutorial vs Direct
What 3Commas pricing actually buys, the correct TradingView alert flow, and what you save or sacrifice by connecting a webhook directly to an exchange.
Which TradingView Plan Actually Runs Webhooks? A Real-World Breakdown of All 5 Plans (2026)
Read cell-by-cell from the pricing page comparison table: Basic has no webhooks; Essential has webhooks but no multi-condition; multi-condition requires Plus; non-expiring alerts require Premium.
PineConnector Alternatives for Crypto: What Actually Works in 2026
Searching for a PineConnector alternative for crypto? PineConnector doesn't support any crypto exchange at all — it only bridges TradingView to MetaTrader 4/5 for forex. Here's the real breakdown of tools that actually connect to Binance, Bybit, and other exchanges.
Pine Script3 posts
TradingView Backtest: 5 Numbers That Mislead
Pine strategy() has five defaults that change backtest results — Overview's five bold numbers can each be faked. Learn to read the panel and fix defaults.
Pine Script RSI/MACD Divergence: Harder to Code
Pine Script divergence is tricky: ta.pivothigh delays N bars for confirmation, signals before barstate.isconfirmed repaint. Minimal Pine + alert() included.
Pine Script for Beginners — Write Your First Strategy in 30 Minutes
From zero to a working strategy: v6 syntax, indicator vs strategy, alert integration, backtesting, and common errors. Includes a complete cheat sheet.
Automation Gotchas7 posts
Why Grid Trading Loses Money?
Grid trading losses explained: three common mistakes and five self-checks for PTT traders.
TradingView Fibonacci Alerts: Two Webhook Traps
TradingView alerts now attach to Fibonacci retracement/extension drawings and move with them. Two things the docs skip, plus what webhook users should do.
When Fees Eat Your Signals: A Daily Cap Formula
A bot firing 50 signals a day pays 50 pairs of maker/taker fees. Plug your fee rate and per-trade edge into one formula to find your real daily cap.
request.security Lookahead: Backtest vs Live Trades
Pine Script's request.security lookahead can leak future data into backtests, breaking live trades. The mechanism, the docs' fix, and five AI questions.
Pine Script Repainting: Signal Vanished, Order Sent
Alert fires mid-bar, order sent, bar closes, signal gone — that's repainting. Mechanism, the two Pine options, and why webhooks can't save you.
How to Spot a Trading Bot Scam: 5 Signals to Verify
Five signals to spot a trading bot scam: fund custody, API withdraw permission, dry-run, mechanism transparency, sign-up channel. If the first two fail, walk.
Why your TradingView webhook orders open at the wrong size — qty_type=usdt vs margin_usdt explained
Your TradingView alert sends qty=20 + leverage=3, you expect a $60 position, but only $20 opens — the perpetual qty_type semantic trap, five sizing modes compared, with a real Binance fill as proof.
Quant Basics2 posts
Backtest Overfitting: 3 Checks Before Going Live
Backtest looks great, live blows up month one? Overfitting. Split in-sample/out-of-sample, run walk-forward, sweep parameter sensitivity — pass all three first.
What Is Quant Trading? Why It Beats Discretionary Trading
The differences between quant, algorithmic, and high-frequency trading. Renaissance Medallion averaged 39% annualized from 1988-2018 with no losing year in 34 years — why does the world's strongest hedge fund only manage employee money?
Exchange Integration5 posts
Gate CrossEx + TradingView Webhook: Missing Middle
Gate's CrossEx routes one Gate API key to 7 exchanges. TradingView webhooks can't hit it directly — here's the middle piece nobody warns you about.
Bitget Reality API Open 8/11: 1/sec/UID Webhook Cap
Bitget removed Reality Order's whitelist 8/11 — any UTA account can API-trade rToken U.S. stocks. Default cap 1/sec/UID; here's a webhook that avoids 429s.
Binance CM-UM Integration and dualSidePosition: The Complete -4531 Handling Guide
Binance's CM-UM integration for dualSidePosition went fully live on 2026-06-30. UM and CM now share a single setting. When you flip mode, any orphan orders or positions on the CM side get rejected as -4531. This is exactly when it fires and how to route around it.
Bitget UTA v3 API Migration: Why Your Webhook Starts Returning 401
When your Bitget account flips from Classic to UTA v3, webhooks still hitting Classic endpoints start returning 401. Why, when, and how to plan the switch.
Which Exchanges Accept TradingView Webhook Signals? The Honest 2026 List
A straight answer to a question most listicles dodge: which of the 15 major exchanges accept TradingView webhooks natively, which only offer manual chart-trading, and which actually need a third-party bridge to automate anything.
Architecture Analysis3 posts
Where to Put the TradingView Webhook Fan-Out Layer
TradingView alerts send to one webhook URL. Fan-out to Telegram + exchange needs a middle layer — the trade-offs, ordering, and dedup traps to know.
TradingView Watchlist Alerts Now Support Extended Hours — Cross-Session Automated Trading Timing Just Changed
TradingView added extended-hours support to watchlist alerts on 2026-07-02. Here are the four official rules, three concrete impacts on webhook automation, and a self-check UI list.
Why 3Commas Got $22M Stolen, and Why TVSBot's Design Prevents It
Deep dive into the December 2022 3Commas $22M API key leak. Pooling a million keys in centralized custody is a structural single point of failure of custodial bot platforms.
Troubleshooting5 posts
TradingView Notification Schedules Silence Webhooks
TradingView's July 2026 notification schedules suppress every outbound channel — webhooks included — and sticky settings carry them into every new alert.
OKX 54094: Cool-off Rejects REST/WS Webhooks (2026)
Since 2026-07-07, OKX cool-off blocks open/increase on REST, WS, strategy, copy trading, bots (54094); reduce-only closes work; users grandfathered until reset.
Why Pine Script Alerts Don't Remember Anything (and Why That Breaks Naive Automation)
Pine Script re-executes bar by bar — historical bars run once each, but the current unclosed bar recalculates on every tick before it closes — and the script itself has no memory of what it already sent as an alert. This post explains how that property causes automation setups that look reasonable on paper to fire duplicate or missed signals in specific situations.
TradingView Webhook Delay: Official Specs, Common Causes, and What You Can Fix (2026)
We went through TradingView's official webhook specs (timeouts, resends, alert-frequency semantics) plus community-reported delay reports to sort out what's a config mistake you can fix yourself, and what's a structural limit on TradingView's side that you can't.
TradingView Webhook Not Working? A Complete Debugging Flowchart
One flowchart to work through every layer that can silently break a TradingView webhook, from a misconfigured alert to a rejected order on the exchange side, so you stop guessing and start ruling things out.
Reliability1 post
Strategy Monetization1 post
Claude × Pine1 post
Crypto Strategy8 posts
Cross-Exchange Spread Arbitrage — Why Retail Rarely Captures It
Three walls: withdrawal latency, bot speed, and hidden costs. Why Mt.Gox's 1100% spread and FTX's 30% spread couldn't be arbitraged. Quasi-arbitrage approaches still viable for retail: funding rate spreads, triangular arb, and Hyperliquid CEX-DEX.
Crypto Trading Tax Guide — Taiwan / Hong Kong / Singapore Compared
Taiwan's overseas income plus AMT (NT$7.5M threshold), Hong Kong's 16.5% profits tax, and Singapore's 0% capital gains. CRS reporting, the Koinly tool, and the risk of being deemed a 'professional trader'.
Crypto Exchange Deep Comparison — Fees / API / Liquidity / Security
A full comparison of 8 major exchanges: Binance / OKX / Bybit / Bitget / BingX / Gate.io / Hyperliquid / Coinbase. Five recommended combos by trading style (spot holders / short-term perp / funding rate arb / altcoin hunters / privacy-first).
Perpetual Funding Rate Arbitrage Guide — Earn Without Betting on Direction
Funding rate formula comparison across three major exchanges (Binance/OKX/Bybit), a full delta-neutral arbitrage implementation, breakdown of Ethena USDe's $14.8B model, and realistic annualized returns (1-8% in bear markets, 100%+ in bull markets).
Grid Trading Complete Guide — Why LUNA Zeroed Out Every Grid
Arithmetic vs geometric grid formulas, which markets suit grids and which don't, a Pionex vs Binance Grid platform comparison, and lessons from LUNA's three-day collapse to zero in 2022.
Hyperliquid DEX Perpetuals Complete Guide — How a Self-Built L1 Order-Book DEX Works
HyperBFT consensus, CLOB (not AMM), HYPE token design with 0% VC ownership, comparison with dYdX / GMX, API auth via wallet signature, agent wallet permission isolation, and TVSBot referral code.
On-Chain Analysis for Beginners — Reading Glassnode / Dune / Nansen
Four key metrics: Exchange Inflow/Outflow, UTXO Age / HODL Waves, SOPR, and MVRV. The strengths of Glassnode (metrics) / Dune (SQL) / Nansen (address labels), and how to fold on-chain signals into a trading system.
Perpetuals vs Spot — How to Choose a Strategy? Four-Dimension Comparison
Four-dimension comparison: cost, leverage, shorting ability, and tax/compounding. Which strategies fit perpetuals, which fit spot, plus a hybrid 'spot accumulation + perp hedge' implementation.
Retail Playbook1 post
Complete Tutorial1 post
Want to plug your strategy into auto-trading?
TVSBot supports 7 exchanges + Pine Script + one-click multi-account sync.
Sign up free →